Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 16, 2011, 5:02:12 PM (12 years ago)
Author:
jo
Message:

Object colouring added - according to current team implementation. Doesn't totally work as intended.

File:
1 edited

Legend:

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

    r8923 r8941  
    3030//#include "TeamGametype.h"
    3131#include "items/Engine.h"
     32#include "controllers/ArtificialController.h"
    3233
    3334#include "core/CoreIncludes.h"
     
    7071    {
    7172        Gametype::start();
    72 
     73        this->setTeams();
    7374        /*for (ObjectList<Engine>::iterator it = ObjectList<Engine>::begin(); it != ObjectList<Engine>::end(); ++it)
    7475            it->setActive(false); // works -> @sr :*/
     
    8788         * */
    8889    }
     90
     91    void Mission::setTeams()
     92    {
     93        for (ObjectList<Pawn>::iterator it = ObjectList<Pawn>::begin(); it != ObjectList<Pawn>::end(); ++it)
     94            this->setObjectColour(*it);
     95    }
     96
     97
     98
    8999}
Note: See TracChangeset for help on using the changeset viewer.