Class ElectricEel
java.lang.Object
com.csse3200.game.entities.Entity
com.csse3200.game.minigames.maze.entities.mazenpc.MazeEntity
com.csse3200.game.minigames.maze.entities.mazenpc.ElectricEel
Eel represents a non-playable character (NPC) in the maze mini-game.
The Eel will chase the player and cause a stun affect
-
Nested Class Summary
Nested classes/interfaces inherited from class com.csse3200.game.entities.Entity
Entity.EnemyType
-
Constructor Summary
ConstructorsConstructorDescriptionElectricEel
(Entity target, MazeEntityConfig config) Constructs an Eel 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
-
ElectricEel
Constructs an Eel 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.
-