|
HoverRace
2.0
|
A player connected to a local input device. More...
#include <LocalPlayer.h>
Inheritance diagram for HoverRace::Player::LocalPlayer:Public Member Functions | |
| LocalPlayer ()=delete | |
| LocalPlayer (std::shared_ptr< Profile > profile, bool human, bool competing) | |
| virtual | ~LocalPlayer () |
Public Member Functions inherited from HoverRace::Player::Player | |
| 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 | |
Public Types inherited from HoverRace::Player::Player | |
| enum | ConnectionState { ConnectionState::DISCONNECTED, ConnectionState::CONNECTING, ConnectionState::CONNECTED, ConnectionState::DISCONNECTING } |
| using | connectionStateChanged_t = boost::signals2::signal< void()> |
| using | nameChangedSignal_t = boost::signals2::signal< void()> |
Protected Member Functions inherited from HoverRace::Player::Player | |
| 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.
1.8.11