Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 18, 2011, 1:58:58 PM (13 years ago)
Author:
jo
Message:

Small edits. Documentation.

Location:
code/branches/presentation2011/src/orxonox/gametypes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2011/src/orxonox/gametypes/Mission.cc

    r8980 r8997  
    2828
    2929#include "Mission.h"
    30 //#include "TeamGametype.h"
    3130#include "items/Engine.h"
    3231#include "controllers/ArtificialController.h"
     
    7271        Gametype::start();
    7372        this->setTeams();
    74         /*for (ObjectList<Engine>::iterator it = ObjectList<Engine>::begin(); it != ObjectList<Engine>::end(); ++it)
    75             it->setActive(false); // works -> @sr :*/
     73
    7674        this->gtinfo_->sendAnnounceMessage("Your mission has started!");
    7775    }
    78 
    79     //void Mission::addBots(unsigned int amount)
    8076
    8177    void Mission::end()
  • code/branches/presentation2011/src/orxonox/gametypes/TeamGametype.cc

    r8996 r8997  
    278278    }
    279279
     280    /**
     281    @brief
     282        Colours a pawn depending on the team values set in XML.
     283        A pawn is coloured depending on it's team set via XML.
     284        If there is a controller the pawn is coloured depending on its team which also can be set via XML.
     285    */
    280286    void TeamGametype::setDefaultObjectColour(Pawn* pawn)
    281287    {
     
    311317
    312318    void TeamGametype::colourPawn(Pawn* pawn, int teamNr)
    313     {// catch no-colouring-case and wrong input
     319    {// catch: no-colouring-case and wrong input
    314320        if(teamNr < 0 || teamNr+1 > this->teamcolours_.size() ||pawn == NULL) return;
    315321        pawn->setRadarObjectColour(this->teamcolours_[teamNr]);
Note: See TracChangeset for help on using the changeset viewer.