Class Turtle
java.lang.Object
com.csse3200.game.entities.Entity
com.csse3200.game.minigames.maze.entities.mazenpc.MazeEntity
com.csse3200.game.minigames.maze.entities.mazenpc.Turtle
Turtle represents a non-playable character (NPC) in the maze minigame.
Turtles are not aggressive, but instead carry fish eggs away through the maze.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.csse3200.game.entities.Entity
Entity.EnemyType
-
Constructor Summary
ConstructorsConstructorDescriptionTurtle
(Entity carry, MazeEntityConfig config) Constructs a Turtle 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
-
Turtle
Constructs a Turtle entity with the given configuration.- Parameters:
config
- The configuration stats for the Turtle entity, including health and attack power.
-