Changeset 2362 for code/branches/objecthierarchy2/src/orxonox/objects/infos
- Timestamp:
- Dec 9, 2008, 2:16:49 AM (16 years ago)
- Location:
- code/branches/objecthierarchy2/src/orxonox/objects/infos
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/infos/CMakeLists.txt
r2171 r2362 1 1 SET( SRC_FILES 2 Bot.cc 2 3 Info.cc 3 4 PlayerInfo.cc -
code/branches/objecthierarchy2/src/orxonox/objects/infos/HumanPlayer.h
r2171 r2362 33 33 34 34 #include "PlayerInfo.h" 35 #include "core/Identifier.h"36 #include "objects/controllers/Controller.h"37 35 38 36 namespace orxonox -
code/branches/objecthierarchy2/src/orxonox/objects/infos/PlayerInfo.cc
r2171 r2362 46 46 this->bLocalPlayer_ = false; 47 47 this->bReadyToSpawn_ = false; 48 this->bSetUnreadyAfterSpawn_ = true; 48 49 this->controller_ = 0; 49 50 this->controllableEntity_ = 0; … … 122 123 this->controllableEntityID_ = entity->getObjectID(); 123 124 entity->setPlayer(this); 124 this->bReadyToSpawn_ = false;125 this->bReadyToSpawn_ &= (!this->bSetUnreadyAfterSpawn_); 125 126 } 126 127 else -
code/branches/objecthierarchy2/src/orxonox/objects/infos/PlayerInfo.h
r2171 r2362 73 73 protected: 74 74 void createController(); 75 void networkcallback_changedcontrollableentityID();76 75 77 76 bool bHumanPlayer_; 78 77 bool bLocalPlayer_; 78 bool bSetUnreadyAfterSpawn_; 79 SubclassIdentifier<Controller> defaultController_; 80 unsigned int clientID_; 81 82 private: 83 void networkcallback_changedcontrollableentityID(); 84 79 85 bool bReadyToSpawn_; 80 SubclassIdentifier<Controller> defaultController_;81 86 Controller* controller_; 82 87 ControllableEntity* controllableEntity_; 83 88 unsigned int controllableEntityID_; 84 unsigned int clientID_;85 89 }; 86 90 }
Note: See TracChangeset
for help on using the changeset viewer.