Interface Controller
- All Known Implementing Classes:
AbstractController,BeeController,GoalController,MobController,PlayerController
public interface Controller
Represents a source of control input for an entity or system.
Controllers provide ControlIntent objects that describe
intended actions or commands, which can be consumed by entities
or systems to drive behavior.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the current control intent, if one is available.
-
Method Details
-
getIntent
Optional<ControlIntent> getIntent()Retrieves the current control intent, if one is available.The returned
Optionalmay be empty if there is no intent to process at the current moment.- Returns:
- an
Optionalcontaining the currentControlIntent, or empty if no intent is present
-