29 #ifndef _PlayerInfo_H__ 30 #define _PlayerInfo_H__ 46 virtual void changedName()
override;
47 virtual void switchGametype(
Gametype* gametype);
53 {
return this->bHumanPlayer_; }
55 {
return this->bLocalPlayer_; }
57 {
return this->clientID_; }
59 virtual bool isInitialized()
const = 0;
60 virtual float getPing()
const = 0;
61 virtual float getPacketLossRatio()
const = 0;
64 { this->bReadyToSpawn_ = bReady; }
66 {
return this->bReadyToSpawn_; }
72 void stopTemporaryControl();
75 {
return this->controllableEntity_; }
78 {
return this->controller_; }
81 {
return this->gtinfo_; }
84 void createController();
93 void registerVariables();
94 void networkcallback_changedcontrollableentityID();
95 void networkcallback_changedgtinfoID();
96 void updateGametypeInfo(
Gametype* gametype);
ControllableEntity * getControllableEntity() const
Definition: PlayerInfo.h:74
Definition of SubclassIdentifier.
unsigned int controllableEntityID_
Definition: PlayerInfo.h:102
Controller * getController() const
Definition: PlayerInfo.h:77
bool isReadyToSpawn() const
Definition: PlayerInfo.h:65
unsigned int getClientID() const
Definition: PlayerInfo.h:56
ControllableEntity * controllableEntity_
Definition: PlayerInfo.h:100
std::vector< WeakPtr< ControllableEntity > > previousControllableEntity_
List of the previous ControllableEntities if repeatedly startTemporary control was called...
Definition: PlayerInfo.h:101
bool bReadyToSpawn_
Definition: PlayerInfo.h:98
SubclassIdentifier< Controller > defaultController_
Definition: PlayerInfo.h:89
unsigned int clientID_
Definition: PlayerInfo.h:90
virtual void changedController()
Definition: PlayerInfo.h:49
bool bSetUnreadyAfterSpawn_
Definition: PlayerInfo.h:88
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
unsigned int gtinfoID_
Definition: PlayerInfo.h:105
bool bLocalPlayer_
Definition: PlayerInfo.h:87
virtual void changedControllableEntity()
Definition: PlayerInfo.h:50
Definition: Gametype.h:63
Shared library macros, enums, constants and forward declarations for the orxonox library ...
void setReadyToSpawn(bool bReady)
Definition: PlayerInfo.h:63
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
bool isHumanPlayer() const
Definition: PlayerInfo.h:52
Definition: Controller.h:38
const GametypeInfo * getGametypeInfo() const
Definition: PlayerInfo.h:80
Controller * controller_
Definition: PlayerInfo.h:99
The GametypeInfo class keeps track of the state of the game and provides facilities to inform the pla...
Definition: GametypeInfo.h:55
Definition: PlayerInfo.h:39
bool isLocalPlayer() const
Definition: PlayerInfo.h:54
The SubclassIdentifier acts almost like an Identifier, but has some prerequisites.
Definition: SubclassIdentifier.h:90
const GametypeInfo * gtinfo_
Definition: PlayerInfo.h:104
The ControllableEntity is derived from the orxonox::MobileEntity.
Definition: ControllableEntity.h:48
bool bHumanPlayer_
Definition: PlayerInfo.h:86