Changeset 9667 for code/trunk/src/orxonox/gametypes
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core6 merged: 9552-9554,9556-9574,9577-9579,9585-9593,9596-9612,9626-9662
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/gametypes/Asteroids.cc
r8858 r9667 35 35 namespace orxonox 36 36 { 37 CreateUnloadableFactory(Asteroids);37 RegisterUnloadableClass(Asteroids); 38 38 39 Asteroids::Asteroids( BaseObject* creator) : Gametype(creator)39 Asteroids::Asteroids(Context* context) : Gametype(context) 40 40 { 41 41 RegisterObject(Asteroids); -
code/trunk/src/orxonox/gametypes/Asteroids.h
r5781 r9667 38 38 { 39 39 public: 40 Asteroids( BaseObject* creator);40 Asteroids(Context* context); 41 41 virtual ~Asteroids() {} 42 42 -
code/trunk/src/orxonox/gametypes/Deathmatch.cc
r9348 r9667 36 36 namespace orxonox 37 37 { 38 CreateUnloadableFactory(Deathmatch);38 RegisterUnloadableClass(Deathmatch); 39 39 40 Deathmatch::Deathmatch( BaseObject* creator) : Gametype(creator)40 Deathmatch::Deathmatch(Context* context) : Gametype(context) 41 41 { 42 42 RegisterObject(Deathmatch); -
code/trunk/src/orxonox/gametypes/Deathmatch.h
r9348 r9667 38 38 { 39 39 public: 40 Deathmatch( BaseObject* creator);40 Deathmatch(Context* context); 41 41 virtual ~Deathmatch() {} 42 42 -
code/trunk/src/orxonox/gametypes/Dynamicmatch.cc
r9348 r9667 54 54 #include "worldentities/pawns/Pawn.h" 55 55 #include "worldentities/pawns/SpaceShip.h" 56 #include "core/ ConfigValueIncludes.h"56 #include "core/config/ConfigValueIncludes.h" 57 57 #include "interfaces/TeamColourable.h" 58 58 #include "items/Engine.h" … … 62 62 namespace orxonox 63 63 { 64 CreateUnloadableFactory(Dynamicmatch);65 66 Dynamicmatch::Dynamicmatch( BaseObject* creator) : Gametype(creator)64 RegisterUnloadableClass(Dynamicmatch); 65 66 Dynamicmatch::Dynamicmatch(Context* context) : Gametype(context) 67 67 { 68 68 RegisterObject(Dynamicmatch); -
code/trunk/src/orxonox/gametypes/Dynamicmatch.h
r9348 r9667 44 44 { 45 45 public: 46 Dynamicmatch( BaseObject* creator);46 Dynamicmatch(Context* context); 47 47 virtual ~Dynamicmatch() {} 48 48 -
code/trunk/src/orxonox/gametypes/Gametype.cc
r9348 r9667 32 32 #include "core/Core.h" 33 33 #include "core/CoreIncludes.h" 34 #include "core/ ConfigValueIncludes.h"34 #include "core/config/ConfigValueIncludes.h" 35 35 #include "core/GameMode.h" 36 36 #include "core/command/ConsoleCommand.h" … … 47 47 namespace orxonox 48 48 { 49 CreateUnloadableFactory(Gametype);50 51 Gametype::Gametype( BaseObject* creator) : BaseObject(creator)49 RegisterUnloadableClass(Gametype); 50 51 Gametype::Gametype(Context* context) : BaseObject(context) 52 52 { 53 53 RegisterObject(Gametype); 54 54 55 this->gtinfo_ = new GametypeInfo(c reator);55 this->gtinfo_ = new GametypeInfo(context); 56 56 57 57 this->setGametype(SmartPtr<Gametype>(this, false)); … … 74 74 if (GameMode::showsGraphics() && !this->scoreboardTemplate_.empty()) 75 75 { 76 this->scoreboard_ = new OverlayGroup( this);76 this->scoreboard_ = new OverlayGroup(context); 77 77 this->scoreboard_->addTemplate(this->scoreboardTemplate_); 78 78 this->scoreboard_->setGametype(this); … … 160 160 ControllableEntity* oldentity = it->first->getControllableEntity(); 161 161 162 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(oldentity );162 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(oldentity->getContext()); 163 163 if (oldentity->getCamera()) 164 164 { … … 283 283 this->gtinfo_->pawnKilled(victim->getPlayer()); 284 284 285 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(victim->getC reator());285 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(victim->getContext()); 286 286 if (victim->getCamera()) 287 287 { … … 458 458 { 459 459 // force spawn at spawnpoint with default pawn 460 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(spawn );460 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(spawn->getContext()); 461 461 spawn->spawn(entity); 462 462 player->startControl(entity); … … 472 472 { 473 473 for (unsigned int i = 0; i < amount; ++i) 474 this->botclass_.fabricate(this );474 this->botclass_.fabricate(this->getContext()); 475 475 } 476 476 -
code/trunk/src/orxonox/gametypes/Gametype.h
r9348 r9667 37 37 38 38 #include "core/BaseObject.h" 39 #include "core/ SubclassIdentifier.h"39 #include "core/class/SubclassIdentifier.h" 40 40 #include "tools/interfaces/Tickable.h" 41 41 #include "infos/GametypeInfo.h" … … 67 67 68 68 public: 69 Gametype( BaseObject* creator);69 Gametype(Context* context); 70 70 virtual ~Gametype(); 71 71 -
code/trunk/src/orxonox/gametypes/LastManStanding.cc
r9348 r9667 33 33 #include "infos/PlayerInfo.h" 34 34 #include "worldentities/pawns/Pawn.h" 35 #include "core/ ConfigValueIncludes.h"35 #include "core/config/ConfigValueIncludes.h" 36 36 #include "util/Convert.h" 37 37 38 38 namespace orxonox 39 39 { 40 CreateUnloadableFactory(LastManStanding);41 42 LastManStanding::LastManStanding( BaseObject* creator) : Deathmatch(creator)40 RegisterUnloadableClass(LastManStanding); 41 42 LastManStanding::LastManStanding(Context* context) : Deathmatch(context) 43 43 { 44 44 RegisterObject(LastManStanding); -
code/trunk/src/orxonox/gametypes/LastManStanding.h
r7655 r9667 65 65 66 66 public: 67 LastManStanding( BaseObject* creator); //!< Default Constructor.67 LastManStanding(Context* context); //!< Default Constructor. 68 68 virtual ~LastManStanding() {} //!< Default Destructor. 69 69 void setConfigValues(); //!< Makes values configurable. -
code/trunk/src/orxonox/gametypes/LastTeamStanding.cc
r9348 r9667 33 33 #include "infos/PlayerInfo.h" 34 34 #include "worldentities/pawns/Pawn.h" 35 #include "core/ ConfigValueIncludes.h"35 #include "core/config/ConfigValueIncludes.h" 36 36 #include "util/Convert.h" 37 37 38 38 namespace orxonox 39 39 { 40 CreateUnloadableFactory(LastTeamStanding);41 42 LastTeamStanding::LastTeamStanding( BaseObject* creator) : TeamDeathmatch(creator)40 RegisterUnloadableClass(LastTeamStanding); 41 42 LastTeamStanding::LastTeamStanding(Context* context) : TeamDeathmatch(context) 43 43 { 44 44 RegisterObject(LastTeamStanding); -
code/trunk/src/orxonox/gametypes/LastTeamStanding.h
r8351 r9667 71 71 72 72 public: 73 LastTeamStanding( BaseObject* creator); //!< Default Constructor.73 LastTeamStanding(Context* context); //!< Default Constructor. 74 74 virtual ~LastTeamStanding(); //!< Default Destructor. 75 75 -
code/trunk/src/orxonox/gametypes/Mission.cc
r9348 r9667 37 37 namespace orxonox 38 38 { 39 CreateUnloadableFactory(Mission);39 RegisterUnloadableClass(Mission); 40 40 41 Mission::Mission( BaseObject* creator) : TeamGametype(creator)41 Mission::Mission(Context* context) : TeamGametype(context) 42 42 { 43 43 RegisterObject(Mission); -
code/trunk/src/orxonox/gametypes/Mission.h
r9348 r9667 39 39 { 40 40 public: 41 Mission( BaseObject* creator);41 Mission(Context* context); 42 42 virtual ~Mission() {} 43 43 -
code/trunk/src/orxonox/gametypes/TeamBaseMatch.cc
r9348 r9667 36 36 namespace orxonox 37 37 { 38 CreateUnloadableFactory(TeamBaseMatch);39 40 TeamBaseMatch::TeamBaseMatch( BaseObject* creator) : TeamDeathmatch(creator)38 RegisterUnloadableClass(TeamBaseMatch); 39 40 TeamBaseMatch::TeamBaseMatch(Context* context) : TeamDeathmatch(context) 41 41 { 42 42 RegisterObject(TeamBaseMatch); -
code/trunk/src/orxonox/gametypes/TeamBaseMatch.h
r9348 r9667 41 41 { 42 42 public: 43 TeamBaseMatch( BaseObject* creator);43 TeamBaseMatch(Context* context); 44 44 virtual ~TeamBaseMatch() {} 45 45 -
code/trunk/src/orxonox/gametypes/TeamDeathmatch.cc
r9348 r9667 36 36 namespace orxonox 37 37 { 38 CreateUnloadableFactory(TeamDeathmatch);38 RegisterUnloadableClass(TeamDeathmatch); 39 39 40 TeamDeathmatch::TeamDeathmatch( BaseObject* creator) : TeamGametype(creator)40 TeamDeathmatch::TeamDeathmatch(Context* context) : TeamGametype(context) 41 41 { 42 42 RegisterObject(TeamDeathmatch); -
code/trunk/src/orxonox/gametypes/TeamDeathmatch.h
r9348 r9667 38 38 { 39 39 public: 40 TeamDeathmatch( BaseObject* creator);40 TeamDeathmatch(Context* context); 41 41 virtual ~TeamDeathmatch() {} 42 42 -
code/trunk/src/orxonox/gametypes/TeamGametype.cc
r9348 r9667 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/ ConfigValueIncludes.h"32 #include "core/config/ConfigValueIncludes.h" 33 33 #include "infos/PlayerInfo.h" 34 34 #include "interfaces/TeamColourable.h" … … 40 40 namespace orxonox 41 41 { 42 CreateUnloadableFactory(TeamGametype);43 44 TeamGametype::TeamGametype( BaseObject* creator) : Gametype(creator)42 RegisterUnloadableClass(TeamGametype); 43 44 TeamGametype::TeamGametype(Context* context) : Gametype(context) 45 45 { 46 46 RegisterObject(TeamGametype); -
code/trunk/src/orxonox/gametypes/TeamGametype.h
r9348 r9667 41 41 { 42 42 public: 43 TeamGametype( BaseObject* creator);43 TeamGametype(Context* context); 44 44 virtual ~TeamGametype() {} 45 45 -
code/trunk/src/orxonox/gametypes/UnderAttack.cc
r9348 r9667 31 31 #include "util/Convert.h" 32 32 #include "core/CoreIncludes.h" 33 #include "core/ ConfigValueIncludes.h"33 #include "core/config/ConfigValueIncludes.h" 34 34 #include "chat/ChatManager.h" 35 35 #include "worldentities/pawns/Destroyer.h" … … 38 38 namespace orxonox 39 39 { 40 CreateUnloadableFactory(UnderAttack);40 RegisterUnloadableClass(UnderAttack); 41 41 42 UnderAttack::UnderAttack( BaseObject* creator) : TeamDeathmatch(creator)42 UnderAttack::UnderAttack(Context* context) : TeamDeathmatch(context) 43 43 { 44 44 RegisterObject(UnderAttack); -
code/trunk/src/orxonox/gametypes/UnderAttack.h
r5929 r9667 39 39 { 40 40 public: 41 UnderAttack( BaseObject* creator);41 UnderAttack(Context* context); 42 42 virtual ~UnderAttack() {} 43 43
Note: See TracChangeset
for help on using the changeset viewer.