Changeset 3325 for code/trunk/src/network
- Timestamp:
- Jul 19, 2009, 3:48:00 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core4 merged: 3222-3224,3238
- Property svn:mergeinfo changed
-
code/trunk/src/network/NetworkFunction.h
r3304 r3325 39 39 #include <boost/static_assert.hpp> 40 40 41 #include "core/OrxonoxClass.h"42 41 #include "core/Functor.h" 42 #include "core/Identifier.h" 43 43 #include "FunctionCallManager.h" 44 44 #include "synchronisable/Synchronisable.h" … … 153 153 { 154 154 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 155 (*this->functor_)( dynamic_cast<T*>(Synchronisable::getSynchronisable(objectID)));155 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID))); 156 156 } 157 157 inline void call(uint32_t objectID, const MultiType& mt1) 158 158 { 159 159 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 160 (*this->functor_)( dynamic_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1);160 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1); 161 161 } 162 162 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) 163 163 { 164 164 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 165 (*this->functor_)( dynamic_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2);165 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2); 166 166 } 167 167 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) 168 168 { 169 169 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 170 (*this->functor_)( dynamic_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3);170 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3); 171 171 } 172 172 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) 173 173 { 174 174 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 175 (*this->functor_)( dynamic_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4);175 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4); 176 176 } 177 177 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) 178 178 { 179 179 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 180 (*this->functor_)( dynamic_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4, mt5);180 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4, mt5); 181 181 } 182 182 -
code/trunk/src/network/synchronisable/Synchronisable.cc
r3304 r3325 73 73 if (creator) 74 74 { 75 Synchronisable* synchronisable_creator = dynamic_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 = dynamic_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 = dynamic_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.