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