Package com.csse3200.game.ai.movement
Interface MovementController
- All Known Implementing Classes:
PhysicsMovementComponent
public interface MovementController
A movement controller moves something to a given a target.
-
Method Summary
-
Method Details
-
setMoving
void setMoving(boolean movementEnabled) - Parameters:
movementEnabled
- true to enable controller movement, false to disable.
-
getMoving
boolean getMoving()- Returns:
- True when movement enabled, false when disabled
-
getTarget
com.badlogic.gdx.math.Vector2 getTarget()- Returns:
- Target position in the world
-
setTarget
void setTarget(com.badlogic.gdx.math.Vector2 target) - Parameters:
target
- Target position in the world. Controller will steer toward the target.
-