AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Aire::Player Class Reference

#include <player.h>

Inheritance diagram for Aire::Player:
Inheritance graph
[legend]
Collaboration diagram for Aire::Player:
Collaboration graph
[legend]

Public Member Functions

 Player (Window *aWindow, Config *aConfig)
 
void update (bool aDebug)
 

Public Attributes

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.
 

Detailed Description

A class for defining a player. A player has a rigidbody, camera and a config assigned to it inside this handler which can be accessed publicly.

Constructor & Destructor Documentation

◆ Player()

Player::Player ( Window * aWindow,
Config * aConfig = NULL )

Player constructor Creates a player with a rigidbody, camera and config.

Parameters
aWindowthe openGL window for the player
(optional)config: a config for the player, default is default config
Here is the call graph for this function:

Member Function Documentation

◆ update()

void Player::update ( bool aDebug)

Update function to update the player state based on key presses

Parameters
aDebugFlag to indicate if we are in a game debug state.
Here is the call graph for this function:

The documentation for this class was generated from the following files: