Represents a player that is currently playing.
More...
#include <state_manager.hpp>
|
PlayerProfile * | m_player |
|
InputDevice * | m_device |
|
AbstractKart * | m_kart |
| Pointer to the kart of this player, only valid during the game.
|
|
int | m_id |
| ID of this player within the list of active players.
|
|
Represents a player that is currently playing.
Ties together :
- a player's identity (and thus his/her highscores)
- which input device is used by which player (we're very flexible on this; ActivePlayer #1 can choose to e.g. use profile #5 and device #2)
◆ getConstProfile()
const PlayerProfile * StateManager::ActivePlayer::getConstProfile |
( |
| ) |
const |
|
inline |
- Returns
- the identity of this active player
◆ getDevice()
InputDevice * StateManager::ActivePlayer::getDevice |
( |
| ) |
const |
|
inline |
- Returns
- Which input device this player is using, or NULL if none is set yet
◆ getKart()
- Returns
- the kart of this player. Only valid while world exists.
◆ getProfile()
- Returns
- the identity of this active player
The documentation for this class was generated from the following files: