- Timestamp:
- May 25, 2015, 12:25:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/network/NetworkFunction.cc
r10468 r10470 29 29 #include "NetworkFunction.h" 30 30 #include "NetworkFunctionManager.h" 31 #include "core/CoreIncludes.h"32 31 33 32 namespace orxonox … … 36 35 std::map<uint32_t, NetworkMemberFunctionBase*> NetworkMemberFunctionBase::idMap_; 37 36 38 // no suitable factory for NetworkFunctionBase (and children), so we declare it abstract39 RegisterAbstractClass(NetworkFunctionBase).inheritsFrom<Listable>();40 RegisterAbstractClass(NetworkFunctionStatic).inheritsFrom<NetworkFunctionBase>();41 RegisterAbstractClass(NetworkMemberFunctionBase).inheritsFrom<NetworkFunctionBase>();42 43 37 NetworkFunctionBase::NetworkFunctionBase(const std::string& name) 44 38 { 45 RegisterObject(NetworkFunctionBase);46 47 39 static uint32_t networkID = 0; 48 40 this->networkID_ = networkID++; … … 59 51 NetworkFunctionBase(name) 60 52 { 61 RegisterObject(NetworkFunctionStatic);62 63 53 this->functor_ = functor; 64 54 NetworkFunctionStatic::getFunctorMap()[p] = this; … … 82 72 NetworkFunctionBase(name) 83 73 { 84 RegisterObject(NetworkMemberFunctionBase);85 86 74 this->functorMap_[p] = this; 87 75 this->idMap_[ this->getNetworkID() ] = this;
Note: See TracChangeset
for help on using the changeset viewer.