Class Jellyfish
java.lang.Object
com.csse3200.game.entities.Entity
com.csse3200.game.minigames.maze.entities.mazenpc.MazeEntity
com.csse3200.game.minigames.maze.entities.mazenpc.Jellyfish
Jellyfish represents a non-playable character (NPC) in the maze minigame.
Unlike more aggressive entities, the Jellyfish only wanders around and does not chase the player.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.csse3200.game.entities.Entity
Entity.EnemyType
-
Constructor Summary
ConstructorsConstructorDescriptionJellyfish
(MazeEntityConfig config) Constructs a Jellyfish entity with the given 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
-
Jellyfish
Constructs a Jellyfish entity with the given configuration.- Parameters:
config
- The configuration stats for the Jellyfish entity, including health and attack power.
-