Class Actor
java.lang.Object
nz.ac.vuw.ecs.swen225.gp6.domain.TileAnatomy.AbstractTile
nz.ac.vuw.ecs.swen225.gp6.domain.TileGroups.Actor
- All Implemented Interfaces:
Tile
- Direct Known Subclasses:
Hero
an actor abstract class that all moving creatures must inherit, including hero.
-
Field Summary
Fields inherited from class nz.ac.vuw.ecs.swen225.gp6.domain.TileAnatomy.AbstractTile
info -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class nz.ac.vuw.ecs.swen225.gp6.domain.TileAnatomy.AbstractTile
info, symbolMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nz.ac.vuw.ecs.swen225.gp6.domain.TileAnatomy.Tile
damagesHero, obstructsEnemy, obstructsHero, ping, replaceWith, setOn, type
-
Constructor Details
-
Actor
constructor for an actor, set initial facing direction to Up and initial tileOn to floor tile.- Parameters:
info- instance of tileInfo for an actor
-
-
Method Details
-
tileOn
this gets the tile that the actor will replace when moved.- Returns:
- tile under actor
-