Class GhostPositionManagerComponent

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.npc.GhostPositionManagerComponent

public class GhostPositionManagerComponent extends Component
Component that manages the positions of ghosts and handles their movement to available spots.
  • Constructor Details

    • GhostPositionManagerComponent

      public GhostPositionManagerComponent()
  • Method Details

    • addGhost

      public void addGhost(Entity ghost)
      Adds a ghost to the manager and assigns it to the next available position.
      Parameters:
      ghost - The ghost entity