![]() |
AireEngine
A 3D Open-World Game Engine
|


Public Member Functions | |
| MyPlayer (Aire::Window *window, Aire::Config *config) | |
| virtual void | onEvent (const Aire::Event &eventInstance) override |
Public Member Functions inherited from Aire::Player | |
| Player (Window *aWindow, Config *aConfig) | |
| void | update (bool aDebug) |
Public Member Functions inherited from Aire::GameObject | |
| virtual | ~GameObject () |
| Destructor ensures that on deletion, the object if unregistered from all events. | |
Public Attributes | |
| float | health = 100.0f |
| bool | isAlive = true |
Public Attributes inherited from Aire::Player | |
| Config | config |
| Config attached to the player. | |
| PlayerController | playerController |
| Player controller that applied actions to rigid body and camera. | |
| Rigidbody * | rb |
| Rigid body handles physics. | |
| Camera | camera |
| Camera is attached to the player. | |
|
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.
| e | The event that triggered the handler. |
Implements Aire::GameObject.
