HoverRace
2.0
|
A player connected to a local input device. More...
#include <LocalPlayer.h>
Public Member Functions | |
LocalPlayer ()=delete | |
LocalPlayer (std::shared_ptr< Profile > profile, bool human, bool competing) | |
virtual | ~LocalPlayer () |
![]() | |
Player ()=delete | |
Player (std::shared_ptr< Profile > profile, bool local, bool human, bool competing) | |
Constructor. More... | |
virtual | ~Player () |
void | AttachMainCharacter (MainCharacter::MainCharacter *mainCharacter) |
Attach the main character (when joining a game session). More... | |
void | DetachMainCharacter () |
Detach the main character (when leaving a game session). More... | |
ConnectionState | GetConnectionState () const |
connectionStateChanged_t & | GetConnectionStateChangedSignal () |
MainCharacter::MainCharacter * | GetMainCharacter () const |
Retrieve the main character, if attached. More... | |
const std::string & | GetName () const |
Retrieve the display name of the player. More... | |
nameChangedSignal_t & | GetNameChangedSignal () |
Profile * | GetProfile () const |
bool | IsCompeting () const |
bool | IsHuman () const |
bool | IsLocal () const |
void | SetNameSuffix (const std::string &suffix) |
Sets the suffix on the display name. More... | |
std::shared_ptr< Profile > | ShareProfile () const |
virtual std::ostream & | StreamOut (std::ostream &os) const |
Private Types | |
using | SUPER = Player |
Private Member Functions | |
void | Disconnect () override |
Additional Inherited Members | |
![]() | |
enum | ConnectionState { ConnectionState::DISCONNECTED, ConnectionState::CONNECTING, ConnectionState::CONNECTED, ConnectionState::DISCONNECTING } |
using | connectionStateChanged_t = boost::signals2::signal< void()> |
using | nameChangedSignal_t = boost::signals2::signal< void()> |
![]() | |
void | SetConnectionState (ConnectionState state) |
A player connected to a local input device.
|
private |
|
delete |
HoverRace::Player::LocalPlayer::LocalPlayer | ( | std::shared_ptr< Profile > | profile, |
bool | human, | ||
bool | competing | ||
) |
|
inlinevirtual |
|
overrideprivatevirtual |
Implements HoverRace::Player::Player.