Changeset 7540 for code/trunk/src/modules/pickup/PickupRepresentation.cc
- Timestamp:
- Oct 14, 2010, 11:20:16 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/PickupRepresentation.cc
r7533 r7540 36 36 #include "core/CoreIncludes.h" 37 37 #include "core/GameMode.h" 38 #include "util/StringUtils.h" 39 38 40 #include "graphics/Billboard.h" 39 #include "util/StringUtils.h" 41 40 42 #include "PickupManager.h" 41 43 … … 55 57 56 58 this->initialize(); 57 this->setSyncMode(0x0); 59 this->setSyncMode(0x0); // The default PickupRperesentation created by each PickupManager is not synchronised, since it only exists locally. 58 60 } 59 61 … … 69 71 this->registerVariables(); 70 72 71 PickupManager::getInstance().registerRepresentation(this); // !<Registers the PickupRepresentation with the PickupManager.73 PickupManager::getInstance().registerRepresentation(this); // Registers the PickupRepresentation with the PickupManager. 72 74 } 73 75 … … 107 109 } 108 110 111 /** 112 @brief 113 Registers the variables that need to be synchornised. 114 */ 109 115 void PickupRepresentation::registerVariables(void) 110 116 { … … 131 137 if(GameMode::isMaster()) 132 138 { 133 PickupManager::getInstance().registerRepresentation(this->pickup_->getPickupIdentifier(), this); //!< Registers the PickupRepresentation with the PickupManager through the PickupIdentifier of the Pickupable it represents. 139 // Registers the PickupRepresentation with the PickupManager through the PickupIdentifier of the Pickupable it represents. 140 PickupManager::getInstance().registerRepresentation(this->pickup_->getPickupIdentifier(), this); 134 141 } 135 142 … … 156 163 { 157 164 COUT(4) << "PickupRepresentation: Spawner template is empty." << std::endl; 158 // !<If neither spawnerRepresentation nor spawnerTemplate was specified165 // If neither spawnerRepresentation nor spawnerTemplate was specified 159 166 return this->getDefaultSpawnerRepresentation(spawner); 160 167 } … … 180 187 Returns a pointer to the StaticEntity. 181 188 */ 182 //TODO: Possibility to define default representation through XML .189 //TODO: Possibility to define default representation through XML? 183 190 StaticEntity* PickupRepresentation::getDefaultSpawnerRepresentation(PickupSpawner* spawner) 184 191 {
Note: See TracChangeset
for help on using the changeset viewer.