Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 21, 2013, 3:57:23 PM (11 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.cc

    r9667 r9797  
    2929#include "Controller.h"
    3030#include "core/CoreIncludes.h"
     31#include "core/XMLPort.h"
    3132#include "worldentities/ControllableEntity.h"
    3233
     
    4243        this->controllableEntity_ = 0;
    4344        this->bGodMode_ = false;
     45        this->team_=-1;
    4446    }
    4547
     
    4749    {
    4850    }
     51    void Controller::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     52    {
     53        SUPER(Controller, XMLPort, xmlelement, mode);
     54        XMLPortParam(Controller, "team", setTeam, getTeam, xmlelement, mode).defaultValues(-1);
     55    }
     56
    4957}
Note: See TracChangeset for help on using the changeset viewer.