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
ConstructorDescriptionGummyGuard
(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
getSpeed
Methods inherited from class nz.ac.vuw.ecs.swen225.gp22.domain.Entity
getDir, getPos, hasAction, id, move, move, move, move, moveAndTurn, pollAction, setDir, setPos
Methods 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:Entity
Non-player entities will act based on how often this is called.- Specified by:
ping
in classEntity<GummyGuard>
-
unping
public void unping()Deprecated.Description copied from class:Entity
Undoes the effects of ping().- Specified by:
unping
in classEntity<GummyGuard>
-
deleteEntity
public void deleteEntity()Deprecated.Description copied from class:Entity
Called when an entity is removed. This method is not abstract because not all entities will need special code to run on deletion.- Overrides:
deleteEntity
in classEntity<GummyGuard>
-