Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2012, 10:34:48 PM (12 years ago)
Author:
landauf
Message:

cleaned up new SpaceRace classes (no functional code-changes):

  • formatting
  • naming of variables, arguments, functions
  • unused and duplicate code
  • public member variables
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/gametypes/SpaceRaceManager.h

    r9016 r9260  
    4646namespace orxonox
    4747{
    48   /**
    49   @brief
    50     The SpaceRaceManager class controls a space race level, where the player has to reach check points in a given order.
    51   */
     48    /**
     49    @brief
     50        The SpaceRaceManager class controls a space race level, where the player has to reach check points in a given order.
     51    */
    5252    class _GametypesExport SpaceRaceManager : public BaseObject, public Tickable
    5353    {
    5454        friend class RaceCheckPoint;
    55    
     55
    5656        public:
    5757            SpaceRaceManager(BaseObject* creator);
    5858            virtual ~SpaceRaceManager() ;
    5959
    60             void XMLPort(Element& xmlelement, XMLPort::Mode mode); 
    61             int getIndex(RaceCheckPoint* r);
     60            void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     61
    6262            void addCheckpoint(RaceCheckPoint* checkpoint);
    6363            RaceCheckPoint* getCheckpoint(unsigned int index) const;
    64        
     64            int getIndex(RaceCheckPoint* checkpoint);
     65
    6566            void checkpointReached(RaceCheckPoint* check, PlayerInfo* player);
    66        
     67
    6768            void tick(float dt);
    68    
     69
    6970        protected:
    70             void setRadVis(PlayerInfo* player, bool b);//sets RadarVisibility of the checkpoints the player can reach.
    71    
     71            void setRadVis(PlayerInfo* player, bool bVisible); ///< sets RadarVisibility of the checkpoints the player can reach.
     72
    7273        private:
    7374            std::vector<RaceCheckPoint*> checkpoints_;
    74             bool firstcheckpointvisible_;//true if the first check point is visible.
    75        
     75            bool firstcheckpointvisible_; ///< true if the first check point is visible.
    7676    };
    7777}
Note: See TracChangeset for help on using the changeset viewer.