Class MilkPuddle

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

public class MilkPuddle extends Tile
Represents a tile that kills the player.
Author:
Abdul
  • Constructor Details

    • MilkPuddle

      public MilkPuddle(Maze.Point tilePos)
      Default constructor, sets the position of the tile, and obstructiveness to false.
      Parameters:
      tilePos - Point to set the position field to.
  • Method Details

    • deleteTile

      public void deleteTile()
      Description copied from class: Tile
      Called when a tile is removed or replaced. This method is not abstract because not all tiles will need special code to run on deletion.
      Overrides:
      deleteTile in class Tile
    • toString

      public String toString()
      Overrides:
      toString in class Object