Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Private Attributes
Player Class Reference

#include <player.hpp>

Collaboration diagram for Player:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Player ()
 Player (const std::string &name_)
void setName (const std::string &name_)
std::string getName ()
int getLastKartId ()
void setLastKartId (int newLastKartId)

Private Attributes

std::string m_name
Input m_action_map [KA_LAST+1]
int m_last_kart_id

Detailed Description

Definition at line 29 of file player.hpp.


Constructor & Destructor Documentation

Player::Player ( ) [inline]

Definition at line 37 of file player.hpp.

{}
Player::Player ( const std::string &  name_) [inline]

Definition at line 38 of file player.hpp.

:m_name(name_),m_last_kart_id(-1){}

Member Function Documentation

int Player::getLastKartId ( ) [inline]

Definition at line 43 of file player.hpp.

{ return m_last_kart_id; }

Here is the caller graph for this function:

std::string Player::getName ( ) [inline]

Definition at line 41 of file player.hpp.

{return m_name;}

Here is the caller graph for this function:

void Player::setLastKartId ( int  newLastKartId) [inline]

Definition at line 44 of file player.hpp.

{ m_last_kart_id = newLastKartId; }

Here is the caller graph for this function:

void Player::setName ( const std::string &  name_) [inline]

Definition at line 39 of file player.hpp.

{m_name = name_;}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 33 of file player.hpp.

int Player::m_last_kart_id [private]

Definition at line 34 of file player.hpp.

std::string Player::m_name [private]

Definition at line 32 of file player.hpp.


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