SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
StateManager::ActivePlayer Class Reference

Represents a player that is currently playing. More...

#include <state_manager.hpp>

Public Member Functions

PlayerProfilegetProfile ()
 
const PlayerProfilegetConstProfile () const
 
void setPlayerProfile (PlayerProfile *player)
 Call to change the identity of this player (useful when player is selecting his identity)
 
int getID () const
 ID of this player within the list of active players.
 
InputDevicegetDevice () const
 
void setDevice (InputDevice *device)
 
void setKart (AbstractKart *kart)
 Sets the kart for this player.
 
AbstractKartgetKart ()
 

Private Member Functions

 ActivePlayer (PlayerProfile *player, InputDevice *device)
 

Private Attributes

PlayerProfilem_player
 
InputDevicem_device
 
AbstractKartm_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.
 

Friends

class StateManager
 

Detailed Description

Represents a player that is currently playing.

Ties together :

Member Function Documentation

◆ 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()

AbstractKart * StateManager::ActivePlayer::getKart ( )
inline
Returns
the kart of this player. Only valid while world exists.

◆ getProfile()

PlayerProfile * StateManager::ActivePlayer::getProfile ( )
inline
Returns
the identity of this active player

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