Changeset 10624 for code/trunk/src/orxonox/interfaces
- Timestamp:
- Oct 4, 2015, 9:12:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/orxonox/interfaces/InterfaceCompilation.cc
r9667 r10624 50 50 // GametypeMessageListener 51 51 //---------------------------- 52 RegisterAbstractClass(GametypeMessageListener).inheritsFrom (Class(OrxonoxInterface));52 RegisterAbstractClass(GametypeMessageListener).inheritsFrom<OrxonoxInterface>(); 53 53 54 54 GametypeMessageListener::GametypeMessageListener() … … 60 60 // PlayerTrigger 61 61 //---------------------------- 62 RegisterAbstractClass(PlayerTrigger).inheritsFrom (Class(OrxonoxInterface));62 RegisterAbstractClass(PlayerTrigger).inheritsFrom<OrxonoxInterface>(); 63 63 64 64 PlayerTrigger::PlayerTrigger() … … 72 72 { 73 73 assert(pawn); 74 this->pawn_ = WeakPtr<Pawn>(pawn);74 this->pawn_ = pawn; 75 75 if (pawn) 76 this->player_ = WeakPtr<PlayerInfo>(pawn->getPlayer());76 this->player_ = pawn->getPlayer(); 77 77 } 78 78 … … 80 80 // RadarListener 81 81 //---------------------------- 82 RegisterAbstractClass(RadarListener).inheritsFrom (Class(OrxonoxInterface));82 RegisterAbstractClass(RadarListener).inheritsFrom<OrxonoxInterface>(); 83 83 84 84 RadarListener::RadarListener() … … 90 90 // TeamColourable 91 91 //---------------------------- 92 RegisterAbstractClass(TeamColourable).inheritsFrom (Class(OrxonoxInterface));92 RegisterAbstractClass(TeamColourable).inheritsFrom<OrxonoxInterface>(); 93 93 94 94 TeamColourable::TeamColourable() … … 100 100 // Rewardable 101 101 //---------------------------- 102 RegisterAbstractClass(Rewardable).inheritsFrom (Class(OrxonoxInterface));102 RegisterAbstractClass(Rewardable).inheritsFrom<OrxonoxInterface>(); 103 103 104 104 Rewardable::Rewardable() -
code/trunk/src/orxonox/interfaces/NotificationListener.cc
r9667 r10624 34 34 #include "core/CoreIncludes.h" 35 35 #include "network/Host.h" 36 #include "network/NetworkFunction .h"36 #include "network/NetworkFunctionIncludes.h" 37 37 #include "util/SubString.h" 38 38 … … 51 51 registerStaticNetworkFunction(NotificationListener::sendHelper); 52 52 53 RegisterAbstractClass(NotificationListener).inheritsFrom<OrxonoxInterface>(); 54 53 55 NotificationListener::NotificationListener() 54 56 { … … 82 84 else if(GameMode::isServer() && sendMode == notificationSendMode::network && Host::getPlayerID() != clientId) 83 85 { 84 callStaticNetworkFunction( NotificationListener::sendHelper, clientId, message, sender, isCommand, (unsigned int)messageType);86 callStaticNetworkFunction(&NotificationListener::sendHelper, clientId, message, sender, isCommand, (unsigned int)messageType); 85 87 } 86 88 else if(GameMode::isServer() && sendMode == notificationSendMode::broadcast) 87 89 { 88 90 // TODO: Works as intended? 89 callStaticNetworkFunction( NotificationListener::sendHelper, NETWORK_PEER_ID_BROADCAST, message, sender, isCommand, (unsigned int)messageType);91 callStaticNetworkFunction(&NotificationListener::sendHelper, NETWORK_PEER_ID_BROADCAST, message, sender, isCommand, (unsigned int)messageType); 90 92 } 91 93 } -
code/trunk/src/orxonox/interfaces/PickupCarrier.cc
r9667 r10624 41 41 namespace orxonox 42 42 { 43 RegisterAbstractClass(PickupCarrier).inheritsFrom (Class(OrxonoxInterface));43 RegisterAbstractClass(PickupCarrier).inheritsFrom<OrxonoxInterface>(); 44 44 45 45 /** -
code/trunk/src/orxonox/interfaces/PickupListener.cc
r9667 r10624 40 40 namespace orxonox 41 41 { 42 RegisterAbstractClass(PickupListener).inheritsFrom<OrxonoxInterface>(); 42 43 43 44 /** -
code/trunk/src/orxonox/interfaces/Pickupable.cc
r9667 r10624 46 46 namespace orxonox 47 47 { 48 RegisterAbstractClass(Pickupable).inheritsFrom (Class(OrxonoxInterface)).inheritsFrom(Class(Rewardable));48 RegisterAbstractClass(Pickupable).inheritsFrom<OrxonoxInterface>().inheritsFrom<Rewardable>(); 49 49 50 50 /** -
code/trunk/src/orxonox/interfaces/Pickupable.h
r9667 r10624 187 187 188 188 //! SUPER functions. 189 SUPER_FUNCTION( 10, Pickupable, changedUsed, false);190 SUPER_FUNCTION(1 1, Pickupable, changedCarrier, false);191 SUPER_FUNCTION(1 2, Pickupable, changedPickedUp, false);189 SUPER_FUNCTION(9, Pickupable, changedUsed, false); 190 SUPER_FUNCTION(10, Pickupable, changedCarrier, false); 191 SUPER_FUNCTION(11, Pickupable, changedPickedUp, false); 192 192 } 193 193 -
code/trunk/src/orxonox/interfaces/PlayerTrigger.h
r9667 r10624 63 63 */ 64 64 inline Pawn* getTriggeringPawn(void) const 65 { return this->pawn_ .get(); }65 { return this->pawn_; } 66 66 67 67 /** -
code/trunk/src/orxonox/interfaces/RadarViewable.cc
r9667 r10624 38 38 namespace orxonox 39 39 { 40 RegisterAbstractClass(RadarViewable).inheritsFrom (Class(OrxonoxInterface));40 RegisterAbstractClass(RadarViewable).inheritsFrom<OrxonoxInterface>(); 41 41 42 42 /** -
code/trunk/src/orxonox/interfaces/RadarViewable.h
r9939 r10624 37 37 #include "util/Math.h" 38 38 #include "core/class/OrxonoxInterface.h" 39 #include "core/object/S martPtr.h"39 #include "core/object/StrongPtr.h" 40 40 41 41 namespace orxonox … … 163 163 //Radar 164 164 const WorldEntity* wePtr_; 165 S martPtr<Radar> radar_;165 StrongPtr<Radar> radar_; 166 166 float radarObjectCamouflage_; 167 167 Shape radarObjectShape_;
Note: See TracChangeset
for help on using the changeset viewer.