Package com.csse3200.game.components.npc
Class GhostPositionManagerComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.npc.GhostPositionManagerComponent
Component that manages the positions of ghosts and handles their movement to available spots.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.csse3200.game.components.Component
create, dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
GhostPositionManagerComponent
public GhostPositionManagerComponent()
-
-
Method Details
-
addGhost
Adds a ghost to the manager and assigns it to the next available position.- Parameters:
ghost
- The ghost entity
-