Class NPCShip

    • Field Detail

      • stateMachine

        public com.badlogic.gdx.ai.fsm.StateMachine<NPCShip,​EnemyState> stateMachine
    • Constructor Detail

      • NPCShip

        public NPCShip()
        Creates an initial state machine
    • Method Detail

      • update

        public void update()
        updates the state machine
        Overrides:
        update in class Entity
      • followTarget

        public void followTarget()
        creates a new steering behaviour that will make the NPC beeline for the target doesn't factor in obstetrical
      • stopMovement

        public void stopMovement()
        stops all movement and sets the behaviour to null
      • wander

        public void wander()
        Meant to cause the npc to wander