Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 18, 2011, 3:22:43 PM (12 years ago)
Author:
jo
Message:

Old version of the SpaceRace added.

Location:
code/branches/presentation2011/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2011/src/modules/gametypes/CMakeLists.txt

    r8998 r8999  
    33  RaceCheckPoint.cc
    44  SpaceRaceManager.cc
     5  OldSpaceRace.cc
     6  OldRaceCheckPoint.cc
    57)
    68
  • code/branches/presentation2011/src/modules/gametypes/GametypesPrereqs.h

    r8706 r8999  
    6666{
    6767    class SpaceRace;
     68    class OldSpaceRace;
    6869}
    6970
  • code/branches/presentation2011/src/orxonox/controllers/FormationController.h

    r8992 r8999  
    7777
    7878      inline void setTeam(int team)
    79            { this->team_ = team;
    80              orxout(debug_output) << "Set team to: "<<team<<" in "<<this<< endl;}
     79           { this->team_ = team; }
    8180      inline int getTeam() const
    8281           { return this->team_; }
     
    8786               Defend-just defend the master
    8887               Attack-leave formation, attack every target
    89       */ 
     88      */
    9089      enum FormationMode {NORMAL,DEFEND,ATTACK};
    91      
     90
    9291      /**
    9392        @brief Sets the new mode. If master, set it for all slaves.
     
    104103      int freedomCount_;
    105104      enum State {SLAVE, MASTER, FREE};
    106      
     105
    107106      State state_;
    108107      std::vector<FormationController*> slaves_;
     
    135134
    136135      void takeLeadOfFormation();
    137       void masterAttacked(Pawn* originator);     
     136      void masterAttacked(Pawn* originator);
    138137
    139138      void specificMasterActionHold();
     
    155154
    156155      static bool sameTeam(ControllableEntity* entity1, ControllableEntity* entity2, Gametype* gametype); // hack
    157      
     156
    158157
    159158      void setTarget(Pawn* target);
     
    162161
    163162      void targetDied();
    164      
     163
    165164      bool bHasTargetPosition_;
    166165      Vector3 targetPosition_;
Note: See TracChangeset for help on using the changeset viewer.