Changeset 2531 for code/branches/bugger
- Timestamp:
- Dec 23, 2008, 11:09:55 PM (16 years ago)
- Location:
- code/branches/bugger
- Files:
-
- 3 deleted
- 123 edited
- 12 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/bugger
- Property svn:mergeinfo changed
/code/branches/network (added) merged: 2356 /code/branches/network64 (added) merged: 2210-2211,2245-2247,2255,2307,2309-2312,2316,2355
- Property svn:mergeinfo changed
-
code/branches/bugger/src/core/Factory.cc
r2171 r2531 58 58 @return The Identifier 59 59 */ 60 Identifier* Factory::getIdentifier(const u nsigned int id)60 Identifier* Factory::getIdentifier(const uint32_t id) 61 61 { 62 std::map<u nsigned int, Identifier*>::const_iterator it = getFactoryPointer()->identifierNetworkIDMap_.find(id);62 std::map<uint32_t, Identifier*>::const_iterator it = getFactoryPointer()->identifierNetworkIDMap_.find(id); 63 63 if (it != getFactoryPointer()->identifierNetworkIDMap_.end()) 64 64 return it->second; … … 85 85 @param newID The new networkID 86 86 */ 87 void Factory::changeNetworkID(Identifier* identifier, const u nsigned int oldID, const unsigned int newID)87 void Factory::changeNetworkID(Identifier* identifier, const uint32_t oldID, const uint32_t newID) 88 88 { 89 89 getFactoryPointer()->identifierNetworkIDMap_.erase(oldID); -
code/branches/bugger/src/core/Factory.h
r2171 r2531 49 49 #include <map> 50 50 #include <string> 51 #include "util/Integers.h" 51 52 52 53 namespace orxonox … … 60 61 public: 61 62 static Identifier* getIdentifier(const std::string& name); 62 static Identifier* getIdentifier(const u nsigned int id);63 static Identifier* getIdentifier(const uint32_t id); 63 64 static void add(const std::string& name, Identifier* identifier); 64 static void changeNetworkID(Identifier* identifier, const u nsigned int oldID, const unsigned int newID);65 static void changeNetworkID(Identifier* identifier, const uint32_t oldID, const uint32_t newID); 65 66 static void createClassHierarchy(); 66 67 … … 83 84 84 85 std::map<std::string, Identifier*> identifierStringMap_; //!< The map, mapping the name with the Identifier 85 std::map<u nsigned int, Identifier*> identifierNetworkIDMap_; //!< The map, mapping the network ID with the Identifier86 std::map<uint32_t, Identifier*> identifierNetworkIDMap_; //!< The map, mapping the network ID with the Identifier 86 87 }; 87 88 -
code/branches/bugger/src/core/Identifier.cc
r2344 r2531 245 245 @param id The new network ID 246 246 */ 247 void Identifier::setNetworkID(u nsigned int id)247 void Identifier::setNetworkID(uint32_t id) 248 248 { 249 249 Factory::changeNetworkID(this, this->classID_, id); -
code/branches/bugger/src/core/Identifier.h
r2344 r2531 68 68 #include "Super.h" 69 69 #include "Functor.h" 70 #include "util/Integers.h" 70 71 #include "util/Debug.h" 71 72 #include "util/String.h" … … 230 231 231 232 /** @brief Returns the network ID to identify a class through the network. @return the network ID */ 232 inline const u nsigned int getNetworkID() const { return this->classID_; }233 inline const uint32_t getNetworkID() const { return this->classID_; } 233 234 234 235 /** @brief Sets the network ID to a new value. @param id The new value */ 235 void setNetworkID(u nsigned int id);236 void setNetworkID(uint32_t id); 236 237 237 238 void addConfigValueContainer(const std::string& varname, ConfigValueContainer* container); … … 317 318 BaseFactory* factory_; //!< The Factory, able to create new objects of the given class (if available) 318 319 static int hierarchyCreatingCounter_s; //!< Bigger than zero if at least one Identifier stores its parents (its an int instead of a bool to avoid conflicts with multithreading) 319 u nsigned int classID_;//!< The network ID to identify a class through the network320 uint32_t classID_; //!< The network ID to identify a class through the network 320 321 321 322 bool bHasConfigValues_; //!< True if this class has at least one assigned config value -
code/branches/bugger/src/core/Template.cc
- Property svn:mergeinfo changed
/code/branches/network/src/core/Template.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/core/Template.h
- Property svn:mergeinfo changed
/code/branches/network/src/core/Template.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/core/XMLFile.h
- Property svn:mergeinfo changed
/code/branches/network/src/core/XMLFile.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/core/XMLIncludes.h
- Property svn:mergeinfo changed
/code/branches/network/src/core/XMLIncludes.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/network/CMakeLists.txt
r2131 r2531 11 11 PacketBuffer.cc 12 12 Server.cc 13 Synchronisable.cc13 TrafficControl.cc 14 14 Host.cc 15 15 ) 16 16 17 17 ADD_SOURCE_DIRECTORY(NETWORK_SRC_FILES packet) 18 ADD_SOURCE_DIRECTORY(NETWORK_SRC_FILES synchronisable) 19 18 20 19 21 IF(WIN32) -
code/branches/bugger/src/network/Client.cc
r2171 r2531 43 43 #include "Client.h" 44 44 #include "Host.h" 45 #include " Synchronisable.h"45 #include "synchronisable/Synchronisable.h" 46 46 #include "core/CoreIncludes.h" 47 47 #include "packet/Packet.h" -
code/branches/bugger/src/network/ClientInformation.cc
r2171 r2531 45 45 namespace orxonox 46 46 { 47 47 48 48 49 ClientInformation *ClientInformation::head_=0; -
code/branches/bugger/src/network/ClientInformation.h
r2171 r2531 46 46 #include <boost/thread/recursive_mutex.hpp> 47 47 48 48 49 // WATCH OUT: THE CLIENTINFORMATION LIST IS NOT THREADSAFE ANYMORE 49 50 50 51 namespace orxonox 51 52 { 52 static const unsigned int GAMESTATEID_INITIAL = (unsigned int)-1;53 static const unsigned int CLIENTID_UNKNOWN = (unsigned int)-2;54 53 55 54 /** -
code/branches/bugger/src/network/ConnectionManager.cc
r2171 r2531 52 52 #include "util/Sleep.h" 53 53 #include "ClientInformation.h" 54 #include " Synchronisable.h"54 #include "synchronisable/Synchronisable.h" 55 55 #include "packet/ClassID.h" 56 56 -
code/branches/bugger/src/network/GamestateClient.cc
r2176 r2531 35 35 #include "core/BaseObject.h" 36 36 #include "core/Iterator.h" 37 #include "Synchronisable.h" 37 #include "synchronisable/Synchronisable.h" 38 #include "synchronisable/NetworkCallbackManager.h" 38 39 #include "packet/Acknowledgement.h" 39 40 … … 77 78 packet::Gamestate *processed = processGamestate(tempGamestate_); 78 79 // assert(processed); 80 81 //now call the queued callbacks 82 NetworkCallbackManager::callCallbacks(); 83 79 84 if (!processed){ 80 85 sendAck(0); -
code/branches/bugger/src/network/GamestateManager.cc
r2176 r2531 49 49 #include "core/BaseObject.h" 50 50 #include "ClientInformation.h" 51 #include "Synchronisable.h" 51 #include "synchronisable/Synchronisable.h" 52 #include "synchronisable/NetworkCallbackManager.h" 52 53 #include "packet/Acknowledgement.h" 53 54 … … 87 88 // now clear the queue 88 89 gamestateQueue.clear(); 90 //and call all queued callbacks 91 NetworkCallbackManager::callCallbacks(); 89 92 return true; 90 93 } … … 135 138 if(!reference) 136 139 return 0; 137 gs = reference->doSelection(clientID); 138 // gs = new packet::Gamestate(*reference); 140 gs = reference->doSelection(clientID, 10000); 139 141 // gs = new packet::Gamestate(*reference); 140 142 // save the (undiffed) gamestate in the clients gamestate map -
code/branches/bugger/src/network/NetworkPrereqs.h
r2171 r2531 57 57 58 58 //----------------------------------------------------------------------- 59 // Includes 60 //----------------------------------------------------------------------- 61 #include "util/Integers.h" 62 63 64 //----------------------------------------------------------------------- 59 65 // Forward declarations 60 66 //----------------------------------------------------------------------- 61 67 namespace orxonox 62 68 { 69 70 // Constants definition 71 72 static const unsigned int GAMESTATEID_INITIAL = (unsigned int)-1; 73 static const unsigned int CLIENTID_UNKNOWN = (unsigned int)-2; 74 static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1); 75 static const unsigned int SCHED_PRIORITY_OFFSET = -5; 76 77 78 79 63 80 class Client; 64 81 class ClientConnection; … … 70 87 class GamestateManager; 71 88 class GamestateHandler; 89 class NetworkCallbackBase; 90 template <class T> class NetworkCallback; 91 class NetworkCallbackManager; 72 92 class PacketBuffer; 73 93 class Server; 74 94 class ServerFrameListener; 75 95 class Synchronisable; 96 class SynchronisableVariableBase; 97 template <class T> class SynchronisableVariable; 98 template <class T> class SynchronisableVariableBidirectional; 76 99 struct ClientList; 77 100 struct PacketEnvelope; 78 101 struct QueueItem; 79 102 struct syncData; 80 struct synchronisableVariable; 103 class obj; 104 class objInfo; 81 105 namespace packet{ 82 106 class Gamestate; -
code/branches/bugger/src/network/packet/DeleteObjects.cc
r2171 r2531 30 30 #include "DeleteObjects.h" 31 31 #include <enet/enet.h> 32 #include "network/ Synchronisable.h"32 #include "network/synchronisable/Synchronisable.h" 33 33 #include "core/CoreIncludes.h" 34 34 #include <assert.h> -
code/branches/bugger/src/network/packet/Gamestate.cc
r2450 r2531 28 28 29 29 #include "Gamestate.h" 30 #include "network/ClientInformation.h" 31 #include "network/GamestateHandler.h" 30 #include "../GamestateHandler.h" 31 #include "../synchronisable/Synchronisable.h" 32 #include "../TrafficControl.h" 32 33 #include "core/Core.h" 33 34 #include "core/CoreIncludes.h" … … 49 50 50 51 #define PACKET_FLAG_GAMESTATE ENET_PACKET_FLAG_RELIABLE 52 53 TrafficControl Gamestate::trafficControl_; 51 54 52 55 Gamestate::Gamestate() … … 74 77 bool Gamestate::collectData(int id, uint8_t mode) 75 78 { 76 u nsigned int tempsize=0, currentsize=0;79 uint32_t tempsize=0, currentsize=0; 77 80 assert(data_==0); 78 u nsigned int size = calcGamestateSize(id, mode);81 uint32_t size = calcGamestateSize(id, mode); 79 82 80 83 COUT(4) << "G.ST.Man: producing gamestate with id: " << id << std::endl; … … 110 113 111 114 //if(it->doSelection(id)) 112 dataMap_[mem-data_]=(*it); // save the mem location of the synchronisable data 115 if(tempsize!=0) 116 dataMap_.push_back( obj(it->getObjectID(), it->getCreatorID(), tempsize, mem-data_) ); 117 // dataMap_[mem-data_]=(*it); // save the mem location of the synchronisable data 113 118 if(!it->getData(mem, id, mode)) 114 119 return false; // mem pointer gets automatically increased because of call by reference … … 150 155 { 151 156 if (!Core::isMaster()) 152 Synchronisable::fabricate(mem, mode);157 s = Synchronisable::fabricate(mem, mode); 153 158 else 154 159 mem += objectheader->size; 160 assert(s); 155 161 } 156 162 else … … 170 176 } 171 177 172 u nsigned int Gamestate::getSize() const178 uint32_t Gamestate::getSize() const 173 179 { 174 180 assert(data_); … … 255 261 assert(HEADER->compressed); 256 262 COUT(4) << "GameStateClient: uncompressing gamestate. id: " << HEADER->id << ", baseid: " << HEADER->base_id << ", datasize: " << HEADER->datasize << ", compsize: " << HEADER->compsize << std::endl; 257 u nsigned int datasize = HEADER->datasize;258 u nsigned int compsize = HEADER->compsize;259 u nsigned int bufsize;263 uint32_t datasize = HEADER->datasize; 264 uint32_t compsize = HEADER->compsize; 265 uint32_t bufsize; 260 266 // assert(compsize<=datasize); 261 267 bufsize = datasize; … … 306 312 //unsigned char *basep = base->getGs()/*, *gs = getGs()*/; 307 313 uint8_t *basep = GAMESTATE_START(base->data_), *gs = GAMESTATE_START(this->data_); 308 u nsigned int of=0; // pointers offset309 u nsigned int dest_length=0;314 uint32_t of=0; // pointers offset 315 uint32_t dest_length=0; 310 316 dest_length=HEADER->datasize; 311 317 if(dest_length==0) … … 336 342 } 337 343 338 Gamestate* Gamestate::doSelection(unsigned int clientID ){344 Gamestate* Gamestate::doSelection(unsigned int clientID, unsigned int targetSize){ 339 345 assert(data_); 340 std:: map<unsigned int, Synchronisable *>::iterator it;346 std::list<obj>::iterator it; 341 347 342 348 // allocate memory for new data … … 345 351 Gamestate *gs = new Gamestate(gdata); 346 352 uint8_t *newdata = gdata + sizeof(GamestateHeader); 347 uint8_t *origdata = GAMESTATE_START(data_);353 // uint8_t *origdata = GAMESTATE_START(data_); 348 354 349 355 //copy the GamestateHeader … … 351 357 352 358 synchronisableHeader *oldobjectheader, *newobjectheader; 353 unsigned int objectOffset; 354 359 uint32_t objectOffset; 360 unsigned int objectsize, destsize=0; 361 Synchronisable *object; 362 363 //call TrafficControl 364 trafficControl_.processObjectList( clientID, HEADER->id, &dataMap_ ); 365 355 366 //copy in the zeros 356 367 for(it=dataMap_.begin(); it!=dataMap_.end(); it++){ 357 if( it->second->getSize(HEADER->id)==0)368 if((*it).objSize==0) 358 369 continue; 359 oldobjectheader = (synchronisableHeader*) origdata;370 oldobjectheader = (synchronisableHeader*)(data_ + (*it).objDataOffset); 360 371 newobjectheader = (synchronisableHeader*)newdata; 361 unsigned int objectsize = oldobjectheader->size; 362 assert(it->second->objectID==oldobjectheader->objectID); 372 object = Synchronisable::getSynchronisable( (*it).objID ); 373 assert(object->objectID == oldobjectheader->objectID); 374 objectsize = oldobjectheader->size; 363 375 *newobjectheader = *oldobjectheader; 364 376 objectOffset=sizeof(synchronisableHeader); //skip the size and the availableData variables in the objectheader 365 if (it->second->doSelection(HEADER->id)){377 if ( /*object->doSelection(HEADER->id)*/true ){ 366 378 assert(newobjectheader->dataAvailable==true); 367 memcpy(newdata+objectOffset, origdata+objectOffset, objectsize-objectOffset);379 memcpy(newdata+objectOffset, data_ + (*it).objDataOffset + objectOffset, objectsize-objectOffset); 368 380 }else{ 369 381 newobjectheader->dataAvailable=false; … … 372 384 } 373 385 newdata += objectsize; 374 origdata += objectsize; 375 } 386 destsize += objectsize; 387 // origdata += objectsize; 388 } 389 ((GamestateHeader*)gdata)->datasize = destsize; 390 assert(destsize!=0); 376 391 return gs; 377 392 } … … 388 403 389 404 //preparations 390 std:: map<unsigned int, Synchronisable *>::iterator it;405 std::list<obj>::iterator it; 391 406 uint8_t *origdata, *basedata, *destdata, *ndata; 392 u nsigned int objectOffset, streamOffset=0; //data offset393 u nsigned int minsize = (HEADER->datasize < GAMESTATE_HEADER(base->data_)->datasize) ? HEADER->datasize : GAMESTATE_HEADER(base->data_)->datasize;407 uint32_t objectOffset, streamOffset=0; //data offset 408 uint32_t minsize = (HEADER->datasize < GAMESTATE_HEADER(base->data_)->datasize) ? HEADER->datasize : GAMESTATE_HEADER(base->data_)->datasize; 394 409 synchronisableHeader *origheader; 395 410 synchronisableHeader *destheader; 411 Synchronisable *object; 396 412 397 413 origdata = GAMESTATE_START(this->data_); … … 403 419 for(it=dataMap_.begin(); it!=dataMap_.end(); it++){ 404 420 assert(streamOffset<HEADER->datasize); 405 bool sendData = it->second->doSelection(HEADER->id);406 421 origheader = (synchronisableHeader *)(origdata+streamOffset); 407 422 destheader = (synchronisableHeader *)(destdata+streamOffset); 423 object = Synchronisable::getSynchronisable(origheader->objectID); 424 bool sendData = object->doSelection(HEADER->id); 408 425 409 426 //copy and partially diff the object header 410 assert(sizeof(synchronisableHeader)==3*sizeof(u nsigned int)+sizeof(bool));427 assert(sizeof(synchronisableHeader)==3*sizeof(uint32_t)+sizeof(bool)); 411 428 *(uint32_t*)destdata = *(uint32_t*)origdata; //size (do not diff) 412 429 *(bool*)(destdata+sizeof(uint32_t)) = sendData; … … 456 473 457 474 //preparations 458 std:: map<unsigned int, Synchronisable *>::iterator it;475 std::list<obj>::iterator it; 459 476 uint8_t *origdata, *basedata, *destdata, *ndata; 460 u nsigned int objectOffset, streamOffset=0; //data offset461 u nsigned int minsize = (HEADER->datasize < GAMESTATE_HEADER(base->data_)->datasize) ? HEADER->datasize : GAMESTATE_HEADER(base->data_)->datasize;477 uint32_t objectOffset, streamOffset=0; //data offset 478 uint32_t minsize = (HEADER->datasize < GAMESTATE_HEADER(base->data_)->datasize) ? HEADER->datasize : GAMESTATE_HEADER(base->data_)->datasize; 462 479 synchronisableHeader *origheader; 463 480 synchronisableHeader *destheader; 481 Synchronisable *object; 464 482 465 483 origdata = GAMESTATE_START(this->data_); … … 473 491 origheader = (synchronisableHeader *)(origdata+streamOffset); 474 492 destheader = (synchronisableHeader *)(destdata+streamOffset); 493 object = Synchronisable::getSynchronisable( origheader->objectID ); 475 494 bool sendData; 476 495 477 496 //copy and partially diff the object header 478 assert(sizeof(synchronisableHeader)==3*sizeof(u nsigned int)+sizeof(bool));479 *(u nsigned int*)destdata = *(unsigned int*)origdata; //size (do not diff)480 *(bool*)(destdata+sizeof(u nsigned int)) = *(bool*)(origdata+sizeof(unsigned int));481 sendData = *(bool*)(origdata+sizeof(u nsigned int));497 assert(sizeof(synchronisableHeader)==3*sizeof(uint32_t)+sizeof(bool)); 498 *(uint32_t*)destdata = *(uint32_t*)origdata; //size (do not diff) 499 *(bool*)(destdata+sizeof(uint32_t)) = *(bool*)(origdata+sizeof(uint32_t)); 500 sendData = *(bool*)(origdata+sizeof(uint32_t)); 482 501 if(sendData){ 483 *(u nsigned int*)(destdata+sizeof(unsigned int)+sizeof(bool)) = *(unsigned int*)(basedata+sizeof(unsigned int)+sizeof(bool)) ^ *(unsigned int*)(origdata+sizeof(unsigned int)+sizeof(bool)); //objectid (diff it)484 *(u nsigned int*)(destdata+2*sizeof(unsigned int)+sizeof(bool)) = *(unsigned int*)(basedata+2*sizeof(unsigned int)+sizeof(bool)) ^ *(unsigned int*)(origdata+2*sizeof(unsigned int)+sizeof(bool)); //classid (diff it)502 *(uint32_t*)(destdata+sizeof(uint32_t)+sizeof(bool)) = *(uint32_t*)(basedata+sizeof(uint32_t)+sizeof(bool)) ^ *(uint32_t*)(origdata+sizeof(uint32_t)+sizeof(bool)); //objectid (diff it) 503 *(uint32_t*)(destdata+2*sizeof(uint32_t)+sizeof(bool)) = *(uint32_t*)(basedata+2*sizeof(uint32_t)+sizeof(bool)) ^ *(uint32_t*)(origdata+2*sizeof(uint32_t)+sizeof(bool)); //classid (diff it) 485 504 }else{ 486 *(u nsigned int*)(destdata+sizeof(unsigned int)+sizeof(bool)) = 0;487 *(u nsigned int*)(destdata+2*sizeof(unsigned int)+sizeof(bool)) = 0;505 *(uint32_t*)(destdata+sizeof(uint32_t)+sizeof(bool)) = 0; 506 *(uint32_t*)(destdata+2*sizeof(uint32_t)+sizeof(bool)) = 0; 488 507 } 489 508 objectOffset=sizeof(synchronisableHeader); … … 523 542 uint8_t *basep = GAMESTATE_START(base->data_); 524 543 uint8_t *gs = GAMESTATE_START(this->data_); 525 u nsigned int of=0; // pointers offset526 u nsigned int dest_length=0;544 uint32_t of=0; // pointers offset 545 uint32_t dest_length=0; 527 546 dest_length=HEADER->datasize; 528 547 if(dest_length==0) … … 554 573 555 574 556 u nsigned int Gamestate::calcGamestateSize(unsigned int id, uint8_t mode)557 { 558 u nsigned int size=0;575 uint32_t Gamestate::calcGamestateSize(int32_t id, uint8_t mode) 576 { 577 uint32_t size=0; 559 578 // get the start of the Synchronisable list 560 579 ObjectList<Synchronisable>::iterator it; -
code/branches/bugger/src/network/packet/Gamestate.h
r2171 r2531 31 31 #define NETWORK_PACKETGAMESTATE_H 32 32 33 #include " ../NetworkPrereqs.h"33 #include "network/NetworkPrereqs.h" 34 34 35 35 #include "Packet.h" 36 #include "network/Synchronisable.h" 36 #include "network/TrafficControl.h" 37 #include "core/CoreIncludes.h" 37 38 #include <map> 39 #include <list> 38 40 #ifndef NDEBUG 39 41 #include "util/CRC32.h" … … 79 81 Gamestate *undiff(Gamestate *base); 80 82 Gamestate* intelligentUnDiff(Gamestate *base); 81 Gamestate* doSelection(unsigned int clientID );83 Gamestate* doSelection(unsigned int clientID, unsigned int targetSize); 82 84 bool compressData(); 83 85 bool decompressData(); … … 85 87 // Packet functions 86 88 private: 87 virtual u nsigned int getSize() const;89 virtual uint32_t getSize() const; 88 90 virtual bool process(); 89 91 90 92 bool operator ==(packet::Gamestate gs); 91 93 private: 92 u nsigned int calcGamestateSize(unsigned int id, uint8_t mode=0x0);94 uint32_t calcGamestateSize(int32_t id, uint8_t mode=0x0); 93 95 void removeObject(ObjectListIterator<Synchronisable> &it); 94 std::map<unsigned int, Synchronisable*> dataMap_; 96 std::list<obj> dataMap_; 97 static TrafficControl trafficControl_; 95 98 }; 96 99 -
code/branches/bugger/src/network/packet/Welcome.cc
r2171 r2531 32 32 #include "Welcome.h" 33 33 #include "network/Host.h" 34 #include "network/ Synchronisable.h"34 #include "network/synchronisable/Synchronisable.h" 35 35 #include "core/CoreIncludes.h" 36 36 #include <assert.h> … … 43 43 #define _CLIENTID _PACKETID + sizeof(ENUM::Type) 44 44 #define _SHIPID _CLIENTID + sizeof(uint32_t) 45 #define _ENDIANTEST _SHIPID + sizeof(uint32_t) 45 46 46 47 Welcome::Welcome( unsigned int clientID, unsigned int shipID ) … … 52 53 assert(data_); 53 54 *(packet::ENUM::Type *)(data_ + _PACKETID ) = packet::ENUM::Welcome; 54 *(uint32_t *)&data_[ _CLIENTID ] = clientID; 55 *(uint32_t *)&data_[ _SHIPID ] = shipID; 55 *(uint32_t *)(data_ + _CLIENTID ) = clientID; 56 *(uint32_t *)(data_ + _SHIPID ) = shipID; 57 *(uint32_t *)(data_ + _ENDIANTEST ) = 0xFEDC4321; 56 58 } 57 59 … … 70 72 71 73 unsigned int Welcome::getSize() const{ 72 return sizeof(packet::ENUM::Type) + 2*sizeof(uint32_t);74 return sizeof(packet::ENUM::Type) + 3*sizeof(uint32_t); 73 75 } 74 76 … … 77 79 clientID = *(uint32_t *)&data_[ _CLIENTID ]; 78 80 shipID = *(uint32_t *)&data_[ _SHIPID ]; 81 assert(*(uint32_t *)(data_ + _ENDIANTEST ) == 0xFEDC4321); 79 82 Host::setClientID(clientID); 80 83 Host::setShipID(shipID); -
code/branches/bugger/src/network/synchronisable/Synchronisable.cc
r2371 r2531 79 79 80 80 81 #ifndef NDEBUG 82 ObjectList<Synchronisable>::iterator it; 83 for(it = ObjectList<Synchronisable>::begin(); it!=ObjectList<Synchronisable>::end(); ++it){ 84 if( it->getObjectID()==this->objectID ) 85 assert(*it==this || (it->objectID==OBJECTID_UNKNOWN && it->objectMode_==0x0)); 86 } 87 #endif 81 //#ifndef NDEBUG 82 // ObjectList<Synchronisable>::iterator it; 83 // for(it = ObjectList<Synchronisable>::begin(); it!=ObjectList<Synchronisable>::end(); ++it){ 84 // if(!(*it==this || (it->objectID==OBJECTID_UNKNOWN && it->objectMode_==0x0))) 85 // { 86 // COUT(1) << "Assertion failed: *it==this || (it->objectID==OBJECTID_UNKNOWN && it->objectMode_==0x0)" << std::endl; 87 // COUT(1) << "Possible reason for this error: Client created a synchronized object without the Server's approval." << std::endl; 88 // abort(); 89 // } 90 // } 91 //#endif 88 92 89 93 this->creatorID = OBJECTID_UNKNOWN; … … 159 163 160 164 Identifier* id = ClassByID(header->classID); 165 if (!id) 166 { 167 COUT(1) << "Assertion failed: id" << std::endl; 168 COUT(1) << "Possible reason for this error: Client received a synchronizable object whose class has no factory." << std::endl; 169 abort(); 170 } 161 171 assert(id); 162 172 BaseObject* creator = 0; -
code/branches/bugger/src/network/synchronisable/Synchronisable.h
r2371 r2531 90 90 static uint32_t popDeletedObject(){ uint32_t i = deletedObjects_.front(); deletedObjects_.pop(); return i; } 91 91 92 inline uint32_t getObjectID() {return objectID;}93 inline unsigned int getCreatorID() {return creatorID;}94 inline uint32_t getClassID() {return classID;}95 inline unsigned int getPriority() { return objectFrequency_;}92 inline uint32_t getObjectID() const {return objectID;} 93 inline unsigned int getCreatorID() const {return creatorID;} 94 inline uint32_t getClassID() const {return classID;} 95 inline unsigned int getPriority() const { return objectFrequency_;} 96 96 97 97 protected: -
code/branches/bugger/src/orxonox/CameraManager.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/CameraManager.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/CameraManager.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/CameraManager.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/OrxonoxStableHeaders.h
r2087 r2531 95 95 #include "core/input/InputManager.h" 96 96 97 #include "network/ Synchronisable.h"97 #include "network/synchronisable/Synchronisable.h" 98 98 99 99 #include "Settings.h" -
code/branches/bugger/src/orxonox/objects/GlobalShader.cc
r2414 r2531 66 66 void GlobalShader::registerVariables() 67 67 { 68 REGISTERDATA (this->bVisible_, direction::toclient, new NetworkCallback<GlobalShader>(this, &GlobalShader::changedVisibility));69 REGISTERSTRING(const_cast<std::string&>(this->shader_.getCompositor()), direction::toclient, new NetworkCallback<Shader>(&this->shader_, &Shader::changedCompositor));68 registerVariable(this->bVisible_, variableDirection::toclient, new NetworkCallback<GlobalShader>(this, &GlobalShader::changedVisibility)); 69 registerVariable(const_cast<std::string&>(this->shader_.getCompositor()), variableDirection::toclient, new NetworkCallback<Shader>(&this->shader_, &Shader::changedCompositor)); 70 70 } 71 71 -
code/branches/bugger/src/orxonox/objects/GlobalShader.h
r2350 r2531 33 33 34 34 #include "core/BaseObject.h" 35 #include "network/ Synchronisable.h"35 #include "network/synchronisable/Synchronisable.h" 36 36 #include "tools/Shader.h" 37 37 -
code/branches/bugger/src/orxonox/objects/Level.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/Level.cc (added) merged: 2356 /code/branches/network64/src/orxonox/objects/Level.cc (added) merged: 2245
r2530 r2531 83 83 void Level::registerVariables() 84 84 { 85 REGISTERSTRING(this->xmlfilename_, direction::toclient, new NetworkCallback<Level>(this, &Level::networkcallback_applyXMLFile));86 REGISTERSTRING(this->name_, direction::toclient, new NetworkCallback<Level>(this, &Level::changedName));87 REGISTERSTRING(this->description_, direction::toclient);85 registerVariable(this->xmlfilename_, variableDirection::toclient, new NetworkCallback<Level>(this, &Level::networkcallback_applyXMLFile)); 86 registerVariable(this->name_, variableDirection::toclient, new NetworkCallback<Level>(this, &Level::changedName)); 87 registerVariable(this->description_, variableDirection::toclient); 88 88 } 89 89 - Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/Level.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/Level.h (added) merged: 2356 /code/branches/network64/src/orxonox/objects/Level.h (added) merged: 2211
r2530 r2531 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "network/ Synchronisable.h"34 #include "network/synchronisable/Synchronisable.h" 35 35 #include "core/BaseObject.h" 36 36 - Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/Scene.cc
r2447 r2531 101 101 void Scene::registerVariables() 102 102 { 103 REGISTERSTRING(this->skybox_, direction::toclient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applySkybox));104 REGISTERDATA(this->ambientLight_, direction::toclient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applyAmbientLight));105 REGISTERDATA(this->bShadows_, direction::toclient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applyShadows));103 registerVariable(this->skybox_, variableDirection::toclient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applySkybox)); 104 registerVariable(this->ambientLight_, variableDirection::toclient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applyAmbientLight)); 105 registerVariable(this->bShadows_, variableDirection::toclient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applyShadows)); 106 106 } 107 107 -
code/branches/bugger/src/orxonox/objects/Scene.h
r2447 r2531 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "network/ Synchronisable.h"34 #include "network/synchronisable/Synchronisable.h" 35 35 #include "core/BaseObject.h" 36 36 #include "util/Math.h" -
code/branches/bugger/src/orxonox/objects/Test.cc
r2171 r2531 61 61 void Test::setConfigValues() 62 62 { 63 SetConfigValue ( v1, 1 )/*.callback ( this, &Test::checkV1 )*/; 64 SetConfigValue ( v2, 2 )/*.callback ( this, &Test::checkV2 )*/; 65 SetConfigValue ( v3, 3 )/*.callback ( this, &Test::checkV3 )*/; 66 SetConfigValue ( v4, 4 )/*.callback ( this, &Test::checkV4 )*/; 63 SetConfigValue ( u1, 1 )/*.callback ( this, &Test::checkV1 )*/; 64 SetConfigValue ( u2, 2 )/*.callback ( this, &Test::checkV2 )*/; 65 SetConfigValue ( u3, 3 )/*.callback ( this, &Test::checkV3 )*/; 66 SetConfigValue ( u4, 4 )/*.callback ( this, &Test::checkV4 )*/; 67 68 SetConfigValue ( s1, 1 )/*.callback ( this, &Test::checkV1 )*/; 69 SetConfigValue ( s2, 2 )/*.callback ( this, &Test::checkV2 )*/; 70 SetConfigValue ( s3, 3 )/*.callback ( this, &Test::checkV3 )*/; 71 SetConfigValue ( s4, 4 )/*.callback ( this, &Test::checkV4 )*/; 67 72 } 68 73 … … 70 75 void Test::registerVariables() 71 76 { 72 REGISTERDATA ( v1,direction::toclient, new NetworkCallback<Test> ( this, &Test::checkV1 ) ); 73 REGISTERDATA ( v2,direction::toserver, new NetworkCallback<Test> ( this, &Test::checkV2 ) ); 74 REGISTERDATA ( v3,direction::serverMaster, new NetworkCallback<Test> ( this, &Test::checkV3 ) ); 75 REGISTERDATA ( v4,direction::clientMaster, new NetworkCallback<Test> ( this, &Test::checkV4 ) ); 77 registerVariable ( u1, variableDirection::toclient, new NetworkCallback<Test> ( this, &Test::checkU1 )); 78 registerVariable ( u2, variableDirection::toserver, new NetworkCallback<Test> ( this, &Test::checkU2 )); 79 registerVariable ( u3, variableDirection::serverMaster, new NetworkCallback<Test> ( this, &Test::checkU3 ), true ); 80 registerVariable ( u4, variableDirection::clientMaster, new NetworkCallback<Test> ( this, &Test::checkU4 ), true ); 81 82 registerVariable ( s1, variableDirection::toclient, new NetworkCallback<Test> ( this, &Test::checkS1 )); 83 registerVariable ( s2, variableDirection::toserver, new NetworkCallback<Test> ( this, &Test::checkS2 )); 84 registerVariable ( s3, variableDirection::serverMaster, new NetworkCallback<Test> ( this, &Test::checkS3 ), true ); 85 registerVariable ( s4, variableDirection::clientMaster, new NetworkCallback<Test> ( this, &Test::checkS4 ), true ); 76 86 } 77 87 78 void Test::checkV1(){ 79 COUT(1) << "V1 changed: " << v1 << std::endl; 80 } 88 void Test::checkU1(){ COUT(1) << "U1 changed: " << u1 << std::endl; } 89 void Test::checkU2(){ COUT(1) << "U2 changed: " << u2 << std::endl; } 90 void Test::checkU3(){ COUT(1) << "U3 changed: " << u3 << std::endl; } 91 void Test::checkU4(){ COUT(1) << "U4 changed: " << u4 << std::endl; } 81 92 82 void Test::checkV2(){ 83 COUT(1) << "V2 changed: " << v2 << std::endl; 84 } 85 86 void Test::checkV3(){ 87 COUT(1) << "V3 changed: " << v3 << std::endl; 88 } 89 90 void Test::checkV4(){ 91 COUT(1) << "V4 changed: " << v4 << std::endl; 92 } 93 93 void Test::checkS1(){ COUT(1) << "S1 changed: " << s1 << std::endl; } 94 void Test::checkS2(){ COUT(1) << "S2 changed: " << s2 << std::endl; } 95 void Test::checkS3(){ COUT(1) << "S3 changed: " << s3 << std::endl; } 96 void Test::checkS4(){ COUT(1) << "S4 changed: " << s4 << std::endl; } 94 97 95 98 } -
code/branches/bugger/src/orxonox/objects/Test.h
r2171 r2531 32 32 #include "OrxonoxPrereqs.h" 33 33 #include "core/BaseObject.h" 34 #include "network/Synchronisable.h" 34 #include "network/synchronisable/Synchronisable.h" 35 36 37 typedef int TYPE; 38 typedef unsigned int UTYPE; 39 35 40 36 41 namespace orxonox … … 45 50 void registerVariables(); 46 51 47 void setV1(unsigned int value){ v1 = value; }48 void setV2(unsigned int value){ v2 = value; }49 void setV3(unsigned int value){ v3 = value; }50 void setV4(unsigned int value){ v4 = value; }51 52 52 void checkV1(); 53 void checkV2(); 54 void checkV3(); 55 void checkV4(); 53 //unsigned functions 54 void setU1(UTYPE value){ u1 = value; } 55 void setU2(UTYPE value){ u2 = value; } 56 void setU3(UTYPE value){ u3 = value; } 57 void setU4(UTYPE value){ u4 = value; } 58 void checkU1(); 59 void checkU2(); 60 void checkU3(); 61 void checkU4(); 56 62 57 void printV1(){ instance_->checkV1(); } 58 void printV2(){ instance_->checkV2(); } 59 void printV3(){ instance_->checkV3(); } 60 void printV4(){ instance_->checkV4(); } 63 //signed functions 64 void setS1(TYPE value){ s1 = value; } 65 void setS2(TYPE value){ s2 = value; } 66 void setS3(TYPE value){ s3 = value; } 67 void setS4(TYPE value){ s4 = value; } 68 void checkS1(); 69 void checkS2(); 70 void checkS3(); 71 void checkS4(); 72 73 static void printV1(){ instance_->checkU1(); } 74 static void printV2(){ instance_->checkU2(); } 75 static void printV3(){ instance_->checkU3(); } 76 static void printV4(){ instance_->checkU4(); } 61 77 62 78 private: 63 unsigned int v1; 64 unsigned int v2; 65 unsigned int v3; 66 unsigned int v4; 79 UTYPE u1; 80 UTYPE u2; 81 UTYPE u3; 82 UTYPE u4; 83 84 TYPE s1; 85 TYPE s2; 86 TYPE s3; 87 TYPE s4; 67 88 68 89 static Test* instance_; -
code/branches/bugger/src/orxonox/objects/infos/GametypeInfo.cc
r2428 r2531 54 54 void GametypeInfo::registerVariables() 55 55 { 56 REGISTERDATA(this->bStarted_, direction::toclient);57 REGISTERDATA(this->bEnded_, direction::toclient);58 REGISTERDATA(this->startCountdown_, direction::toclient);59 REGISTERDATA(this->bStartCountdownRunning_, direction::toclient);56 registerVariable(this->bStarted_, variableDirection::toclient); 57 registerVariable(this->bEnded_, variableDirection::toclient); 58 registerVariable(this->startCountdown_, variableDirection::toclient); 59 registerVariable(this->bStartCountdownRunning_, variableDirection::toclient); 60 60 } 61 61 } -
code/branches/bugger/src/orxonox/objects/infos/HumanPlayer.cc
r2428 r2531 69 69 void HumanPlayer::registerVariables() 70 70 { 71 REGISTERSTRING(this->synchronize_nick_, direction::toserver, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_changednick));71 registerVariable(this->synchronize_nick_, variableDirection::toserver, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_changednick)); 72 72 73 REGISTERDATA(this->clientID_, direction::toclient, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_clientIDchanged));74 REGISTERDATA(this->server_initialized_, direction::toclient, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_server_initialized));75 REGISTERDATA(this->client_initialized_, direction::toserver, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_client_initialized));73 registerVariable(this->clientID_, variableDirection::toclient, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_clientIDchanged)); 74 registerVariable(this->server_initialized_, variableDirection::toclient, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_server_initialized)); 75 registerVariable(this->client_initialized_, variableDirection::toserver, new NetworkCallback<HumanPlayer>(this, &HumanPlayer::networkcallback_client_initialized)); 76 76 } 77 77 … … 106 106 107 107 if (!Core::isMaster()) 108 this->setObjectMode( direction::bidirectional);108 this->setObjectMode(objectDirection::bidirectional); 109 109 else 110 110 this->setName(this->nick_); -
code/branches/bugger/src/orxonox/objects/infos/Info.h
r2171 r2531 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "network/ Synchronisable.h"34 #include "network/synchronisable/Synchronisable.h" 35 35 #include "core/BaseObject.h" 36 36 -
code/branches/bugger/src/orxonox/objects/infos/PlayerInfo.cc
r2462 r2531 73 73 void PlayerInfo::registerVariables() 74 74 { 75 REGISTERSTRING(this->name_, direction::toclient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::changedName));76 REGISTERDATA (this->controllableEntityID_, direction::toclient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::networkcallback_changedcontrollableentityID));77 REGISTERDATA (this->bReadyToSpawn_, direction::toserver);75 registerVariable(this->name_, variableDirection::toclient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::changedName)); 76 registerVariable(this->controllableEntityID_, variableDirection::toclient, new NetworkCallback<PlayerInfo>(this, &PlayerInfo::networkcallback_changedcontrollableentityID)); 77 registerVariable(this->bReadyToSpawn_, variableDirection::toserver); 78 78 } 79 79 -
code/branches/bugger/src/orxonox/objects/items/Engine.cc
r2478 r2531 104 104 void Engine::registerVariables() 105 105 { 106 REGISTERDATA(this->shipID_, direction::toclient, new NetworkCallback<Engine>(this, &Engine::networkcallback_shipID));107 108 REGISTERDATA(this->speedFactor_, direction::toclient);109 REGISTERDATA(this->boostFactor_, direction::toclient);110 111 REGISTERDATA(this->maxSpeedFront_, direction::toclient);112 REGISTERDATA(this->maxSpeedBack_, direction::toclient);113 REGISTERDATA(this->maxSpeedLeftRight_, direction::toclient);114 REGISTERDATA(this->maxSpeedUpDown_, direction::toclient);115 116 REGISTERDATA(this->accelerationFront_, direction::toclient);117 REGISTERDATA(this->accelerationBrake_, direction::toclient);118 REGISTERDATA(this->accelerationBack_, direction::toclient);119 REGISTERDATA(this->accelerationLeftRight_, direction::toclient);120 REGISTERDATA(this->accelerationUpDown_, direction::toclient);106 registerVariable(this->shipID_, variableDirection::toclient, new NetworkCallback<Engine>(this, &Engine::networkcallback_shipID)); 107 108 registerVariable(this->speedFactor_, variableDirection::toclient); 109 registerVariable(this->boostFactor_, variableDirection::toclient); 110 111 registerVariable(this->maxSpeedFront_, variableDirection::toclient); 112 registerVariable(this->maxSpeedBack_, variableDirection::toclient); 113 registerVariable(this->maxSpeedLeftRight_, variableDirection::toclient); 114 registerVariable(this->maxSpeedUpDown_, variableDirection::toclient); 115 116 registerVariable(this->accelerationFront_, variableDirection::toclient); 117 registerVariable(this->accelerationBrake_, variableDirection::toclient); 118 registerVariable(this->accelerationBack_, variableDirection::toclient); 119 registerVariable(this->accelerationLeftRight_, variableDirection::toclient); 120 registerVariable(this->accelerationUpDown_, variableDirection::toclient); 121 121 } 122 122 -
code/branches/bugger/src/orxonox/objects/items/Item.h
r2254 r2531 33 33 34 34 #include "core/BaseObject.h" 35 #include "network/ Synchronisable.h"35 #include "network/synchronisable/Synchronisable.h" 36 36 37 37 namespace orxonox -
code/branches/bugger/src/orxonox/objects/items/MultiStateEngine.cc
r2254 r2531 83 83 void MultiStateEngine::registerVariables() 84 84 { 85 REGISTERDATA(this->state_, direction::toserver);85 registerVariable(this->state_, variableDirection::toserver); 86 86 } 87 87 … … 92 92 if (this->getShip()->hasLocalController()) 93 93 { 94 this->setObjectMode( direction::bidirectional);94 this->setObjectMode(objectDirection::bidirectional); 95 95 96 96 const Vector3& direction = this->getDirection(); -
code/branches/bugger/src/orxonox/objects/pickup/Usable.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/pickup/Usable.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/AddQuest.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/AddQuest.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/AddQuest.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/AddQuest.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/AddQuestHint.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/AddQuestHint.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/AddQuestHint.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/AddQuestHint.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/AddReward.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/AddReward.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/AddReward.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/AddReward.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/ChangeQuestStatus.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/ChangeQuestStatus.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/ChangeQuestStatus.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/ChangeQuestStatus.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/CompleteQuest.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/CompleteQuest.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/CompleteQuest.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/CompleteQuest.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/FailQuest.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/FailQuest.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/FailQuest.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/FailQuest.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/GlobalQuest.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/GlobalQuest.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/GlobalQuest.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/GlobalQuest.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/LocalQuest.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/LocalQuest.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/LocalQuest.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/LocalQuest.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/Quest.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/Quest.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/Quest.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/Quest.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/QuestDescription.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestDescription.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/QuestDescription.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestDescription.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/QuestEffect.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestEffect.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/QuestEffect.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestEffect.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/QuestHint.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestHint.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/QuestHint.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestHint.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/QuestItem.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestItem.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/QuestItem.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestItem.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/QuestManager.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestManager.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/QuestManager.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/QuestManager.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/Rewardable.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/Rewardable.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/quest/Rewardable.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/quest/Rewardable.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/weaponSystem/WeaponSystem.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/weaponSystem/WeaponSystem.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/weaponSystem/WeaponSystem.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/weaponSystem/WeaponSystem.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/Backlight.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/Backlight.cc (added) merged: 2356
r2530 r2531 109 109 void Backlight::registerVariables() 110 110 { 111 REGISTERDATA (this->width_, direction::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_width));112 REGISTERDATA (this->lifetime_, direction::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_lifetime));113 REGISTERDATA (this->length_, direction::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_length));114 REGISTERDATA (this->maxelements_, direction::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_maxelements));115 REGISTERSTRING(this->trailmaterial_, direction::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_trailmaterial));111 registerVariable (this->width_, variableDirection::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_width)); 112 registerVariable (this->lifetime_, variableDirection::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_lifetime)); 113 registerVariable (this->length_, variableDirection::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_length)); 114 registerVariable (this->maxelements_, variableDirection::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_maxelements)); 115 registerVariable (this->trailmaterial_, variableDirection::toclient, new NetworkCallback<Backlight>(this, &Backlight::update_trailmaterial)); 116 116 } 117 117 - Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/Backlight.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/Backlight.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/Billboard.cc
r2254 r2531 67 67 void Billboard::registerVariables() 68 68 { 69 REGISTERSTRING(this->material_, direction::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedMaterial));70 REGISTERDATA (this->colour_, direction::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedColour));69 registerVariable(this->material_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedMaterial)); 70 registerVariable(this->colour_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedColour)); 71 71 } 72 72 -
code/branches/bugger/src/orxonox/objects/worldentities/Camera.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/Camera.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/Camera.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/Camera.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/ControllableEntity.cc
r2478 r2531 238 238 { 239 239 this->client_overwrite_ = this->server_overwrite_; 240 this->setObjectMode( direction::bidirectional);240 this->setObjectMode(objectDirection::bidirectional); 241 241 } 242 242 } … … 252 252 this->bHasLocalController_ = false; 253 253 this->bHasHumanController_ = false; 254 this->setObjectMode( direction::toclient);254 this->setObjectMode(objectDirection::toclient); 255 255 256 256 if (this->bDestroyWhenPlayerLeft_) … … 345 345 void ControllableEntity::registerVariables() 346 346 { 347 REGISTERSTRING(this->cameraPositionTemplate_, direction::toclient);348 REGISTERSTRING(this->hudtemplate_, direction::toclient);349 350 REGISTERDATA(this->client_overwrite_, direction::toserver);351 352 REGISTERDATA(this->server_position_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerPosition));353 REGISTERDATA(this->server_velocity_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerVelocity));354 REGISTERDATA(this->server_orientation_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerOrientation));355 REGISTERDATA(this->server_overwrite_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processOverwrite));356 357 REGISTERDATA(this->client_position_, direction::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientPosition));358 REGISTERDATA(this->client_velocity_, direction::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientVelocity));359 REGISTERDATA(this->client_orientation_, direction::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientOrientation));360 361 362 REGISTERDATA(this->playerID_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedplayerID));363 REGISTERDATA(this->gtinfoID_, direction::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedgtinfoID));347 registerVariable(this->cameraPositionTemplate_, variableDirection::toclient); 348 registerVariable(this->hudtemplate_, variableDirection::toclient); 349 350 registerVariable(this->client_overwrite_, variableDirection::toserver); 351 352 registerVariable(this->server_position_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerPosition)); 353 registerVariable(this->server_velocity_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerVelocity)); 354 registerVariable(this->server_orientation_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerOrientation)); 355 registerVariable(this->server_overwrite_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processOverwrite)); 356 357 registerVariable(this->client_position_, variableDirection::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientPosition)); 358 registerVariable(this->client_velocity_, variableDirection::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientVelocity)); 359 registerVariable(this->client_orientation_, variableDirection::toserver, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientOrientation)); 360 361 362 registerVariable(this->playerID_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedplayerID)); 363 registerVariable(this->gtinfoID_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedgtinfoID)); 364 364 } 365 365 -
code/branches/bugger/src/orxonox/objects/worldentities/ExplosionChunk.cc
r2422 r2531 91 91 void ExplosionChunk::registerVariables() 92 92 { 93 REGISTERDATA(this->LOD_, direction::toclient, new NetworkCallback<ExplosionChunk>(this, &ExplosionChunk::LODchanged));94 REGISTERDATA(this->bStop_, direction::toclient, new NetworkCallback<ExplosionChunk>(this, &ExplosionChunk::checkStop));93 registerVariable((int&)this->LOD_, variableDirection::toclient, new NetworkCallback<ExplosionChunk>(this, &ExplosionChunk::LODchanged)); 94 registerVariable(this->bStop_, variableDirection::toclient, new NetworkCallback<ExplosionChunk>(this, &ExplosionChunk::checkStop)); 95 95 } 96 96 -
code/branches/bugger/src/orxonox/objects/worldentities/FadingBillboard.cc
r2361 r2531 66 66 void FadingBillboard::registerVariables() 67 67 { 68 REGISTERDATA(this->turnontime_, direction::toclient);69 REGISTERDATA(this->turnofftime_, direction::toclient);68 registerVariable(this->turnontime_, variableDirection::toclient); 69 registerVariable(this->turnofftime_, variableDirection::toclient); 70 70 } 71 71 -
code/branches/bugger/src/orxonox/objects/worldentities/Light.cc
r2447 r2531 103 103 void Light::registerVariables() 104 104 { 105 REGISTERDATA(this->type_, direction::toclient, new NetworkCallback<Light>(this, &Light::updateType));106 REGISTERDATA(this->diffuse_, direction::toclient, new NetworkCallback<Light>(this, &Light::updateDiffuseColour));107 REGISTERDATA(this->specular_, direction::toclient, new NetworkCallback<Light>(this, &Light::updateSpecularColour));108 REGISTERDATA(this->attenuation_, direction::toclient, new NetworkCallback<Light>(this, &Light::updateAttenuation));109 REGISTERDATA(this->spotlightRange_, direction::toclient, new NetworkCallback<Light>(this, &Light::updateSpotlightRange));105 registerVariable((int &)this->type_, variableDirection::toclient, new NetworkCallback<Light>(this, &Light::updateType)); 106 registerVariable(this->diffuse_, variableDirection::toclient, new NetworkCallback<Light>(this, &Light::updateDiffuseColour)); 107 registerVariable(this->specular_, variableDirection::toclient, new NetworkCallback<Light>(this, &Light::updateSpecularColour)); 108 registerVariable(this->attenuation_, variableDirection::toclient, new NetworkCallback<Light>(this, &Light::updateAttenuation)); 109 registerVariable(this->spotlightRange_, variableDirection::toclient, new NetworkCallback<Light>(this, &Light::updateSpotlightRange)); 110 110 } 111 111 -
code/branches/bugger/src/orxonox/objects/worldentities/Model.cc
r2447 r2531 40 40 Model::Model(BaseObject* creator) : PositionableEntity(creator) 41 41 { 42 static unsigned int i=10; 42 43 RegisterObject(Model); 43 44 … … 45 46 46 47 this->registerVariables(); 48 this->setObjectPriority(i++); 47 49 } 48 50 … … 63 65 void Model::registerVariables() 64 66 { 65 REGISTERSTRING(this->meshSrc_, direction::toclient, new NetworkCallback<Model>(this, &Model::changedMesh));66 REGISTERDATA(this->bCastShadows_, direction::toclient, new NetworkCallback<Model>(this, &Model::changedShadows));67 registerVariable(this->meshSrc_, variableDirection::toclient, new NetworkCallback<Model>(this, &Model::changedMesh)); 68 registerVariable(this->bCastShadows_, variableDirection::toclient, new NetworkCallback<Model>(this, &Model::changedShadows)); 67 69 } 68 70 -
code/branches/bugger/src/orxonox/objects/worldentities/MovableEntity.cc
r2422 r2531 85 85 void MovableEntity::registerVariables() 86 86 { 87 REGISTERDATA(this->velocity_.x, direction::toclient);88 REGISTERDATA(this->velocity_.y, direction::toclient);89 REGISTERDATA(this->velocity_.z, direction::toclient);90 91 REGISTERDATA(this->rotationAxis_.x, direction::toclient);92 REGISTERDATA(this->rotationAxis_.y, direction::toclient);93 REGISTERDATA(this->rotationAxis_.z, direction::toclient);94 95 REGISTERDATA(this->rotationRate_, direction::toclient);96 97 REGISTERDATA(this->overwrite_position_, direction::toclient, new NetworkCallback<MovableEntity>(this, &MovableEntity::overwritePosition));98 REGISTERDATA(this->overwrite_orientation_, direction::toclient, new NetworkCallback<MovableEntity>(this, &MovableEntity::overwriteOrientation));87 registerVariable(this->velocity_.x, variableDirection::toclient); 88 registerVariable(this->velocity_.y, variableDirection::toclient); 89 registerVariable(this->velocity_.z, variableDirection::toclient); 90 91 registerVariable(this->rotationAxis_.x, variableDirection::toclient); 92 registerVariable(this->rotationAxis_.y, variableDirection::toclient); 93 registerVariable(this->rotationAxis_.z, variableDirection::toclient); 94 95 registerVariable(this->rotationRate_, variableDirection::toclient); 96 97 registerVariable(this->overwrite_position_, variableDirection::toclient, new NetworkCallback<MovableEntity>(this, &MovableEntity::overwritePosition)); 98 registerVariable(this->overwrite_orientation_, variableDirection::toclient, new NetworkCallback<MovableEntity>(this, &MovableEntity::overwriteOrientation)); 99 99 } 100 100 -
code/branches/bugger/src/orxonox/objects/worldentities/ParticleEmitter.cc
r2414 r2531 75 75 void ParticleEmitter::registerVariables() 76 76 { 77 REGISTERSTRING(this->source_, direction::toclient, new NetworkCallback<ParticleEmitter>(this, &ParticleEmitter::sourceChanged));78 REGISTERDATA (this->LOD_, direction::toclient, new NetworkCallback<ParticleEmitter>(this, &ParticleEmitter::LODchanged));77 registerVariable(this->source_, variableDirection::toclient, new NetworkCallback<ParticleEmitter>(this, &ParticleEmitter::sourceChanged)); 78 registerVariable((int&)(this->LOD_), variableDirection::toclient, new NetworkCallback<ParticleEmitter>(this, &ParticleEmitter::LODchanged)); 79 79 } 80 80 -
code/branches/bugger/src/orxonox/objects/worldentities/ParticleSpawner.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/ParticleSpawner.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/ParticleSpawner.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/ParticleSpawner.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/PositionableEntity.cc
r2171 r2531 48 48 void PositionableEntity::registerVariables() 49 49 { 50 REGISTERDATA(this->getPosition().x, direction::toclient);51 REGISTERDATA(this->getPosition().y, direction::toclient);52 REGISTERDATA(this->getPosition().z, direction::toclient);50 registerVariable(this->getPosition().x, variableDirection::toclient); 51 registerVariable(this->getPosition().y, variableDirection::toclient); 52 registerVariable(this->getPosition().z, variableDirection::toclient); 53 53 54 REGISTERDATA(this->getOrientation().w, direction::toclient);55 REGISTERDATA(this->getOrientation().x, direction::toclient);56 REGISTERDATA(this->getOrientation().y, direction::toclient);57 REGISTERDATA(this->getOrientation().z, direction::toclient);54 registerVariable(this->getOrientation().w, variableDirection::toclient); 55 registerVariable(this->getOrientation().x, variableDirection::toclient); 56 registerVariable(this->getOrientation().y, variableDirection::toclient); 57 registerVariable(this->getOrientation().z, variableDirection::toclient); 58 58 } 59 59 } -
code/branches/bugger/src/orxonox/objects/worldentities/WorldEntity.cc
r2478 r2531 105 105 void WorldEntity::registerVariables() 106 106 { 107 REGISTERSTRING(this->mainStateName_, direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedMainState));107 registerVariable(this->mainStateName_, variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedMainState)); 108 108 109 REGISTERDATA(this->bActive_, direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedActivity));110 REGISTERDATA(this->bVisible_, direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedVisibility));111 112 REGISTERDATA(this->getScale3D().x, direction::toclient);113 REGISTERDATA(this->getScale3D().y, direction::toclient);114 REGISTERDATA(this->getScale3D().z, direction::toclient);115 116 REGISTERDATA(this->parentID_, direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::updateParent));109 registerVariable(this->bActive_, variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedActivity)); 110 registerVariable(this->bVisible_, variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedVisibility)); 111 112 registerVariable(this->getScale3D().x, variableDirection::toclient); 113 registerVariable(this->getScale3D().y, variableDirection::toclient); 114 registerVariable(this->getScale3D().z, variableDirection::toclient); 115 116 registerVariable(this->parentID_, variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::updateParent)); 117 117 } 118 118 -
code/branches/bugger/src/orxonox/objects/worldentities/WorldEntity.h
r2478 r2531 36 36 #include <OgreSceneNode.h> 37 37 38 #include "network/ Synchronisable.h"38 #include "network/synchronisable/Synchronisable.h" 39 39 #include "core/BaseObject.h" 40 40 #include "util/Math.h" -
code/branches/bugger/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2530 r2531 99 99 void Pawn::registerVariables() 100 100 { 101 REGISTERDATA(this->bAlive_, direction::toclient);102 REGISTERDATA(this->health_, direction::toclient);103 REGISTERDATA(this->initialHealth_, direction::toclient);101 registerVariable(this->bAlive_, variableDirection::toclient); 102 registerVariable(this->health_, variableDirection::toclient); 103 registerVariable(this->initialHealth_, variableDirection::toclient); 104 104 } 105 105 -
code/branches/bugger/src/orxonox/objects/worldentities/pawns/SpaceShip.cc
r2478 r2531 85 85 void SpaceShip::registerVariables() 86 86 { 87 REGISTERDATA(this->maxRotation_, direction::toclient);88 REGISTERDATA(this->rotationAcceleration_, direction::toclient);89 REGISTERDATA(this->translationDamping_, direction::toclient);87 registerVariable(this->maxRotation_, variableDirection::toclient); 88 registerVariable(this->rotationAcceleration_, variableDirection::toclient); 89 registerVariable(this->translationDamping_, variableDirection::toclient); 90 90 } 91 91 -
code/branches/bugger/src/orxonox/objects/worldentities/pawns/Spectator.cc
r2478 r2531 91 91 void Spectator::registerVariables() 92 92 { 93 REGISTERDATA(this->bGreetingFlareVisible_, direction::toclient, new NetworkCallback<Spectator>(this, &Spectator::changedFlareVisibility));94 REGISTERDATA(this->bGreeting_, direction::toserver, new NetworkCallback<Spectator>(this, &Spectator::changedGreeting));93 registerVariable(this->bGreetingFlareVisible_, variableDirection::toclient, new NetworkCallback<Spectator>(this, &Spectator::changedFlareVisibility)); 94 registerVariable(this->bGreeting_, variableDirection::toserver, new NetworkCallback<Spectator>(this, &Spectator::changedGreeting)); 95 95 } 96 96 -
code/branches/bugger/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/triggers/Trigger.cc
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/triggers/Trigger.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/orxonox/objects/worldentities/triggers/Trigger.h
- Property svn:mergeinfo changed
/code/branches/network/src/orxonox/objects/worldentities/triggers/Trigger.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/tolua/tolua-5.1.pkg
- Property svn:mergeinfo changed
/code/branches/network/src/tolua/tolua-5.1.pkg (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/util
- Property svn:mergeinfo changed
/code/branches/network/src/util (added) merged: 2356 /code/branches/network64/src/util (added) merged: 2245
- Property svn:mergeinfo changed
-
code/branches/bugger/src/util/Exception.cc
- Property svn:mergeinfo changed
/code/branches/network/src/util/Exception.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/util/Exception.h
- Property svn:mergeinfo changed
/code/branches/network/src/util/Exception.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/util/SignalHandler.cc
- Property svn:mergeinfo changed
/code/branches/network/src/util/SignalHandler.cc (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/util/SignalHandler.h
- Property svn:mergeinfo changed
/code/branches/network/src/util/SignalHandler.h (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/src/util/mbool.h
r2171 r2531 36 36 struct _UtilExport mbool 37 37 { 38 // friend Synchronisable::registerVariable<>() 38 39 public: 39 40 inline mbool(bool value = false) … … 67 68 inline bool operator!() const 68 69 { return (!this->value_.bool_); } 70 71 inline unsigned char& getMemory(){ return value_.memory_; } 69 72 70 73 private: -
code/branches/bugger/visual_studio/vc8/audio.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/audio.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/base.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/base.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/ceguilua.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/ceguilua.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/core.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/core.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/cpptcl.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/cpptcl.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/debug.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/debug.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/lua.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/lua.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/network.vcproj
r2087 r2531 197 197 </File> 198 198 <File 199 RelativePath="..\..\src\network\ Synchronisable.cc"199 RelativePath="..\..\src\network\TrafficControl.cc" 200 200 > 201 201 </File> … … 229 229 <File 230 230 RelativePath="..\..\src\network\packet\Welcome.cc" 231 > 232 </File> 233 </Filter> 234 <Filter 235 Name="synchronisable" 236 > 237 <File 238 RelativePath="..\..\src\network\synchronisable\NetworkCallbackManager.cc" 239 > 240 </File> 241 <File 242 RelativePath="..\..\src\network\synchronisable\Synchronisable.cc" 243 > 244 </File> 245 <File 246 RelativePath="..\..\src\network\synchronisable\SynchronisableSpecialisations.cc" 247 > 248 </File> 249 <File 250 RelativePath="..\..\src\network\synchronisable\SynchronisableVariable.cc" 231 251 > 232 252 </File> … … 279 299 </File> 280 300 <File 281 RelativePath="..\..\src\network\NetworkCallback.h"282 >283 </File>284 <File285 301 RelativePath="..\..\src\network\NetworkPrereqs.h" 286 302 > … … 292 308 <File 293 309 RelativePath="..\..\src\network\Server.h" 294 >295 </File>296 <File297 RelativePath="..\..\src\network\Synchronisable.h"298 310 > 299 311 </File> … … 327 339 <File 328 340 RelativePath="..\..\src\network\packet\Welcome.h" 341 > 342 </File> 343 </Filter> 344 <Filter 345 Name="synchronisable" 346 > 347 <File 348 RelativePath="..\..\src\network\synchronisable\NetworkCallback.h" 349 > 350 </File> 351 <File 352 RelativePath="..\..\src\network\synchronisable\NetworkCallbackManager.h" 353 > 354 </File> 355 <File 356 RelativePath="..\..\src\network\synchronisable\Synchronisable.h" 357 > 358 </File> 359 <File 360 RelativePath="..\..\src\network\synchronisable\SynchronisableVariable.h" 329 361 > 330 362 </File> -
code/branches/bugger/visual_studio/vc8/network.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/network.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/orxonox.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/orxonox.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/orxonox_vc8.sln
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/orxonox_vc8.sln (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/release.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/release.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/tinyxml.vcproj
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/tinyxml.vcproj (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/tinyxml.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/tinyxml.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/tolua.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/tolua.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/toluagen.vcproj
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/toluagen.vcproj (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/toluagen.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/toluagen.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/toluagen_orxonox.vcproj
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/toluagen_orxonox.vcproj (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/toluagen_orxonox.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/toluagen_orxonox.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
-
code/branches/bugger/visual_studio/vc8/util.vsprops
- Property svn:mergeinfo changed
/code/branches/network/visual_studio/vc8/util.vsprops (added) merged: 2356
- Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.