AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
BoidStateMachine Struct Reference
Inheritance diagram for BoidStateMachine:
Inheritance graph
[legend]
Collaboration diagram for BoidStateMachine:
Collaboration graph
[legend]

Public Member Functions

 BoidStateMachine (State *currentState)
 
virtual void onEvent (const Aire::Event &eventInstance) override
 
- Public Member Functions inherited from Aire::StateMachine
 StateMachine (State *currentState)
 
void transitionTo (std::string dstState)
 
- Public Member Functions inherited from Aire::GameObject
virtual ~GameObject ()
 Destructor ensures that on deletion, the object if unregistered from all events.
 

Additional Inherited Members

- Public Attributes inherited from Aire::StateMachine
StatecurrentState
 The current state that the state machine is in.
 

Member Function Documentation

◆ onEvent()

virtual void BoidStateMachine::onEvent ( const Aire::Event & e)
inlineoverridevirtual

Event handler to be called when an event is triggered. The handler will be called only if the game object is registered for the event. Override this method for custom event handling.

Parameters
eThe event that triggered the handler.

Implements Aire::GameObject.

Here is the call graph for this function:

The documentation for this struct was generated from the following file: