Changeset 3239 for code/branches/core4/src/network
- Timestamp:
- Jun 28, 2009, 2:45:37 PM (16 years ago)
- Location:
- code/branches/core4/src/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/network/NetworkFunction.h
r3224 r3239 150 150 { 151 151 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 152 (*this->functor_)(orxonox_cast<T >(Synchronisable::getSynchronisable(objectID)));152 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID))); 153 153 } 154 154 inline void call(uint32_t objectID, const MultiType& mt1) 155 155 { 156 156 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 157 (*this->functor_)(orxonox_cast<T >(Synchronisable::getSynchronisable(objectID)), mt1);157 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1); 158 158 } 159 159 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) 160 160 { 161 161 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 162 (*this->functor_)(orxonox_cast<T >(Synchronisable::getSynchronisable(objectID)), mt1, mt2);162 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2); 163 163 } 164 164 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) 165 165 { 166 166 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 167 (*this->functor_)(orxonox_cast<T >(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3);167 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3); 168 168 } 169 169 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) 170 170 { 171 171 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 172 (*this->functor_)(orxonox_cast<T >(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4);172 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4); 173 173 } 174 174 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) 175 175 { 176 176 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 177 (*this->functor_)(orxonox_cast<T >(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4, mt5);177 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4, mt5); 178 178 } 179 179 -
code/branches/core4/src/network/synchronisable/Synchronisable.cc
r3223 r3239 73 73 if (creator) 74 74 { 75 Synchronisable* synchronisable_creator = orxonox_cast<Synchronisable >(creator);75 Synchronisable* synchronisable_creator = orxonox_cast<Synchronisable*>(creator); 76 76 if (synchronisable_creator && synchronisable_creator->objectMode_) 77 77 { … … 161 161 } 162 162 else 163 creator = orxonox_cast<BaseObject >(synchronisable_creator);163 creator = orxonox_cast<BaseObject*>(synchronisable_creator); 164 164 } 165 165 assert(getSynchronisable(header.getObjectID())==0); //make sure no object with this id exists 166 166 BaseObject *bo = id->fabricate(creator); 167 167 assert(bo); 168 Synchronisable *no = orxonox_cast<Synchronisable >(bo);168 Synchronisable *no = orxonox_cast<Synchronisable*>(bo); 169 169 assert(no); 170 170 no->objectID=header.getObjectID();
Note: See TracChangeset
for help on using the changeset viewer.