Class BouncyPad
java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.domain.Tile
nz.ac.vuw.ecs.swen225.gp22.domain.BouncyPad
Represents a tile that makes the player jump by 2 tiles
in a direction.
- Author:
- Abdul
-
Constructor Summary
ConstructorDescriptionBouncyPad
(Maze.Point tilePos, Entity.Direction dir) Default constructor, sets the position of the tile, obstructiveness to false, and the direction of the bounce pad. -
Method Summary
Methods inherited from class nz.ac.vuw.ecs.swen225.gp22.domain.Tile
getPos, isObstructive, setObstructive, setPos
-
Constructor Details
-
BouncyPad
Default constructor, sets the position of the tile, obstructiveness to false, and the direction of the bounce pad.- Parameters:
tilePos
- Point to set the position field to.dir
- The Direction the player will get bounced in.
-
-
Method Details
-
getDir
- Returns:
- The Direction the player will get bounced in.
-
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 classTile
-
toString
-