Changeset 9908 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- Oct 29, 2006, 11:41:56 AM (18 years ago)
- Location:
- branches/network/src/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/lang/base_object.h
r9902 r9908 51 51 /** @returns the ClassID of this Object */ 52 52 inline const ClassID& getClassID() const { return _classes.front()._objectList->identity(); } 53 /** @returns the ID of the Topmost object of the ClassStack. */54 inline const ClassID& getLeafClassID() const { return leafClassID; }55 53 56 54 bool isA(const ObjectListBase& objectList) const; … … 71 69 protected: 72 70 std::string objectName; //!< The name of this object 73 ClassID leafClassID; //!< classId of leaf class74 71 75 72 private: … … 108 105 { 109 106 this->_classes.push_front(ClassEntry(&objectList, objectList.registerObject(object))); 110 this->leafClassID = objectList.identity();111 107 } 112 108 -
branches/network/src/lib/network/network_stream.cc
r9907 r9908 966 966 967 967 // if handshake not finished only sync handshake 968 if ( peer->second.handshake && Handshake::staticClassID() != sync.get LeafClassID())968 if ( peer->second.handshake && Handshake::staticClassID() != sync.getClassID() ) 969 969 continue; 970 970 … … 972 972 if ( ( SharedNetworkData::getInstance()->isMasterServer() || 973 973 SharedNetworkData::getInstance()->isProxyServerActive() && peer->second.isClient()) 974 && Handshake::staticClassID() == sync.get LeafClassID() && sync.getUniqueID() != peer->second.userId )974 && Handshake::staticClassID() == sync.getClassID() && sync.getUniqueID() != peer->second.userId ) 975 975 continue; 976 976 977 977 /* list of synchronizeables that will never be synchronized over the network: */ 978 978 // do not sync null parent 979 if ( NullParent::staticClassID() == sync.get LeafClassID())979 if ( NullParent::staticClassID() == sync.getClassID()) 980 980 continue; 981 981 982 982 983 assert( sync.get LeafClassID() != 0);983 assert( sync.getClassID() != 0); 984 984 985 985 assert( offset + INTSIZE <= UDP_PACKET_SIZE ); -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_classid.cc
r9907 r9908 46 46 int SynchronizeableClassID::writeToBuf( byte * buf, int maxLength ) 47 47 { 48 int res = Converter::intToByteArray( vPtrIn->get LeafClassID().id(), buf, maxLength );48 int res = Converter::intToByteArray( vPtrIn->getClassID().id(), buf, maxLength ); 49 49 50 50 assert( res == INTSIZE );
Note: See TracChangeset
for help on using the changeset viewer.