Class GummyGuard
java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.domain.Observable<S>
nz.ac.vuw.ecs.swen225.gp22.domain.Entity<S>
nz.ac.vuw.ecs.swen225.gp22.domain.EnemyEntity<GummyGuard>
nz.ac.vuw.ecs.swen225.gp22.domain.GummyGuard
Deprecated.
A basic enemy that moves back and forth.
Is not used by the game, as we moved on to
using jar files for enemies.
- Author:
- Abdul
-
Nested Class Summary
Nested classes/interfaces inherited from class nz.ac.vuw.ecs.swen225.gp22.domain.Entity
Entity.Action, Entity.Direction -
Field Summary
Fields inherited from class nz.ac.vuw.ecs.swen225.gp22.domain.EnemyEntity
imageMap -
Constructor Summary
ConstructorsConstructorDescriptionGummyGuard(Maze.Point entityPos, Entity.Direction facingDir) Deprecated.Default constructor, sets the position, direction, and speed of the enemy. -
Method Summary
Methods inherited from class nz.ac.vuw.ecs.swen225.gp22.domain.EnemyEntity
getSpeedMethods inherited from class nz.ac.vuw.ecs.swen225.gp22.domain.Entity
getDir, getPos, hasAction, id, move, move, move, move, moveAndTurn, pollAction, setDir, setPosMethods inherited from class nz.ac.vuw.ecs.swen225.gp22.domain.Observable
addObserver, removeObserver, updateObservers
-
Constructor Details
-
GummyGuard
Deprecated.Default constructor, sets the position, direction, and speed of the enemy.- Parameters:
entityPos- Point to set the position field to.facingDir- Direction to set the direction field to.
-
-
Method Details
-
ping
public void ping()Deprecated.Description copied from class:EntityNon-player entities will act based on how often this is called.- Specified by:
pingin classEntity<GummyGuard>
-
unping
public void unping()Deprecated.Description copied from class:EntityUndoes the effects of ping().- Specified by:
unpingin classEntity<GummyGuard>
-
deleteEntity
public void deleteEntity()Deprecated.Description copied from class:EntityCalled when an entity is removed. This method is not abstract because not all entities will need special code to run on deletion.- Overrides:
deleteEntityin classEntity<GummyGuard>
-