Changeset 9629 for code/branches/core6/src/orxonox/gametypes
- Timestamp:
- Aug 9, 2013, 9:26:46 PM (11 years ago)
- Location:
- code/branches/core6/src/orxonox/gametypes
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/orxonox/gametypes/Asteroids.cc
r8858 r9629 37 37 CreateUnloadableFactory(Asteroids); 38 38 39 Asteroids::Asteroids( BaseObject* creator) : Gametype(creator)39 Asteroids::Asteroids(Context* context) : Gametype(context) 40 40 { 41 41 RegisterObject(Asteroids); -
code/branches/core6/src/orxonox/gametypes/Asteroids.h
r5781 r9629 38 38 { 39 39 public: 40 Asteroids( BaseObject* creator);40 Asteroids(Context* context); 41 41 virtual ~Asteroids() {} 42 42 -
code/branches/core6/src/orxonox/gametypes/Deathmatch.cc
r9348 r9629 38 38 CreateUnloadableFactory(Deathmatch); 39 39 40 Deathmatch::Deathmatch( BaseObject* creator) : Gametype(creator)40 Deathmatch::Deathmatch(Context* context) : Gametype(context) 41 41 { 42 42 RegisterObject(Deathmatch); -
code/branches/core6/src/orxonox/gametypes/Deathmatch.h
r9348 r9629 38 38 { 39 39 public: 40 Deathmatch( BaseObject* creator);40 Deathmatch(Context* context); 41 41 virtual ~Deathmatch() {} 42 42 -
code/branches/core6/src/orxonox/gametypes/Dynamicmatch.cc
r9558 r9629 64 64 CreateUnloadableFactory(Dynamicmatch); 65 65 66 Dynamicmatch::Dynamicmatch( BaseObject* creator) : Gametype(creator)66 Dynamicmatch::Dynamicmatch(Context* context) : Gametype(context) 67 67 { 68 68 RegisterObject(Dynamicmatch); -
code/branches/core6/src/orxonox/gametypes/Dynamicmatch.h
r9348 r9629 44 44 { 45 45 public: 46 Dynamicmatch( BaseObject* creator);46 Dynamicmatch(Context* context); 47 47 virtual ~Dynamicmatch() {} 48 48 -
code/branches/core6/src/orxonox/gametypes/Gametype.cc
r9558 r9629 49 49 CreateUnloadableFactory(Gametype); 50 50 51 Gametype::Gametype( BaseObject* creator) : BaseObject(creator)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/branches/core6/src/orxonox/gametypes/Gametype.h
r9563 r9629 67 67 68 68 public: 69 Gametype( BaseObject* creator);69 Gametype(Context* context); 70 70 virtual ~Gametype(); 71 71 -
code/branches/core6/src/orxonox/gametypes/LastManStanding.cc
r9558 r9629 40 40 CreateUnloadableFactory(LastManStanding); 41 41 42 LastManStanding::LastManStanding( BaseObject* creator) : Deathmatch(creator)42 LastManStanding::LastManStanding(Context* context) : Deathmatch(context) 43 43 { 44 44 RegisterObject(LastManStanding); -
code/branches/core6/src/orxonox/gametypes/LastManStanding.h
r7655 r9629 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/branches/core6/src/orxonox/gametypes/LastTeamStanding.cc
r9558 r9629 40 40 CreateUnloadableFactory(LastTeamStanding); 41 41 42 LastTeamStanding::LastTeamStanding( BaseObject* creator) : TeamDeathmatch(creator)42 LastTeamStanding::LastTeamStanding(Context* context) : TeamDeathmatch(context) 43 43 { 44 44 RegisterObject(LastTeamStanding); -
code/branches/core6/src/orxonox/gametypes/LastTeamStanding.h
r8351 r9629 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/branches/core6/src/orxonox/gametypes/Mission.cc
r9348 r9629 39 39 CreateUnloadableFactory(Mission); 40 40 41 Mission::Mission( BaseObject* creator) : TeamGametype(creator)41 Mission::Mission(Context* context) : TeamGametype(context) 42 42 { 43 43 RegisterObject(Mission); -
code/branches/core6/src/orxonox/gametypes/Mission.h
r9348 r9629 39 39 { 40 40 public: 41 Mission( BaseObject* creator);41 Mission(Context* context); 42 42 virtual ~Mission() {} 43 43 -
code/branches/core6/src/orxonox/gametypes/TeamBaseMatch.cc
r9348 r9629 38 38 CreateUnloadableFactory(TeamBaseMatch); 39 39 40 TeamBaseMatch::TeamBaseMatch( BaseObject* creator) : TeamDeathmatch(creator)40 TeamBaseMatch::TeamBaseMatch(Context* context) : TeamDeathmatch(context) 41 41 { 42 42 RegisterObject(TeamBaseMatch); -
code/branches/core6/src/orxonox/gametypes/TeamBaseMatch.h
r9348 r9629 41 41 { 42 42 public: 43 TeamBaseMatch( BaseObject* creator);43 TeamBaseMatch(Context* context); 44 44 virtual ~TeamBaseMatch() {} 45 45 -
code/branches/core6/src/orxonox/gametypes/TeamDeathmatch.cc
r9348 r9629 38 38 CreateUnloadableFactory(TeamDeathmatch); 39 39 40 TeamDeathmatch::TeamDeathmatch( BaseObject* creator) : TeamGametype(creator)40 TeamDeathmatch::TeamDeathmatch(Context* context) : TeamGametype(context) 41 41 { 42 42 RegisterObject(TeamDeathmatch); -
code/branches/core6/src/orxonox/gametypes/TeamDeathmatch.h
r9348 r9629 38 38 { 39 39 public: 40 TeamDeathmatch( BaseObject* creator);40 TeamDeathmatch(Context* context); 41 41 virtual ~TeamDeathmatch() {} 42 42 -
code/branches/core6/src/orxonox/gametypes/TeamGametype.cc
r9558 r9629 42 42 CreateUnloadableFactory(TeamGametype); 43 43 44 TeamGametype::TeamGametype( BaseObject* creator) : Gametype(creator)44 TeamGametype::TeamGametype(Context* context) : Gametype(context) 45 45 { 46 46 RegisterObject(TeamGametype); -
code/branches/core6/src/orxonox/gametypes/TeamGametype.h
r9348 r9629 41 41 { 42 42 public: 43 TeamGametype( BaseObject* creator);43 TeamGametype(Context* context); 44 44 virtual ~TeamGametype() {} 45 45 -
code/branches/core6/src/orxonox/gametypes/UnderAttack.cc
r9558 r9629 40 40 CreateUnloadableFactory(UnderAttack); 41 41 42 UnderAttack::UnderAttack( BaseObject* creator) : TeamDeathmatch(creator)42 UnderAttack::UnderAttack(Context* context) : TeamDeathmatch(context) 43 43 { 44 44 RegisterObject(UnderAttack); -
code/branches/core6/src/orxonox/gametypes/UnderAttack.h
r5929 r9629 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.