Changeset 2531 for code/branches/bugger/src/network/synchronisable
- Timestamp:
- Dec 23, 2008, 11:09:55 PM (16 years ago)
- Location:
- code/branches/bugger
- Files:
-
- 1 edited
- 10 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/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:
Note: See TracChangeset
for help on using the changeset viewer.