Class InfoField

java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.domain.Tile
nz.ac.vuw.ecs.swen225.gp22.domain.InfoField

public class InfoField extends Tile
Represents a tile which will give the player additional information if they are on it.
Author:
Abdul
  • Constructor Details

    • InfoField

      public InfoField(Maze.Point tilePos, String infoText)
      Default constructor, sets the position of the tile, and obstructiveness to false.
      Parameters:
      tilePos - Point to set the position field to.
      infoText - The text that will be displayed.
  • Method Details

    • getText

      public String getText()
      Returns:
      The info text of this tile.
    • toString

      public String toString()
      Overrides:
      toString in class Object