Class Octopus
java.lang.Object
com.csse3200.game.entities.Entity
com.csse3200.game.minigames.maze.entities.mazenpc.MazeEntity
com.csse3200.game.minigames.maze.entities.mazenpc.Octopus
AnglerFish represents a non-playable character (NPC) in the maze mini-game.
It is a hostile entity that chases the player and attacks it.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.csse3200.game.entities.Entity
Entity.EnemyType
-
Constructor Summary
ConstructorsConstructorDescriptionOctopus
(Entity target, MazeEntityConfig config) Constructs an AnglerFish entity with the given target and configuration. -
Method Summary
Methods inherited from class com.csse3200.game.entities.Entity
addComponent, create, dispose, earlyUpdate, equals, getCenterPosition, getComponent, getEnabled, getEnemies, getEnemyType, getEvents, getId, getPosition, getScale, hashCode, isEnabled, isNormalEnemy, isPlayer, scaleHeight, scaleWidth, setEnabled, setEnemies, setEnemyType, setIsNormalEnemy, setIsPlayer, setPosition, setPosition, setPosition, setScale, setScale, specialDispose, toString, update
-
Constructor Details
-
Octopus
Constructs an AnglerFish entity with the given target and configuration.- Parameters:
target
- The entity that this AnglerFish will chase (e.g., the player).config
- The configuration stats for this NPC, such as health and attack power.
-