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

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.
 
Rigidbodyrb
 Rigid body handles physics.
 
Camera camera
 Camera is attached to the player.
 

Member Function Documentation

◆ onEvent()

virtual void MyPlayer::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 class was generated from the following file: