Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 21, 2013, 3:57:23 PM (10 years ago)
Author:
jo
Message:

Added Team functionality down to the controller class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/controllers/Controller.h

    r9667 r9797  
    3232#include "OrxonoxPrereqs.h"
    3333#include "core/BaseObject.h"
     34#include "core/class/Super.h"
    3435
    3536namespace orxonox
     
    4445            Controller(Context* context);
    4546            virtual ~Controller();
    46 
     47            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    4748            inline void setPlayer(PlayerInfo* player)
    4849                { this->player_ = player; }
    4950            inline PlayerInfo* getPlayer() const
    5051                { return this->player_; }
     52            inline void setTeam(int team)
     53                { this->team_ = team; }
     54            inline int getTeam() const
     55                { return this->team_; }
    5156
    5257            virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) {};
     
    7984            PlayerInfo* player_;
    8085            ControllableEntity* controllableEntity_;
     86            int team_;
    8187        private:
    8288            bool bGodMode_;
Note: See TracChangeset for help on using the changeset viewer.