Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2011, 5:20:40 PM (13 years ago)
Author:
msalomon
Message:
 
Location:
code/branches/spacerace/src/modules/gametypes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/spacerace/src/modules/gametypes/RaceCheckPoint.cc

    r8494 r8548  
    4545        this->bCheckpointIndex_ = 0;
    4646        this->bIsLast_ = false;
     47        this->bTimeLimit_=0;
    4748       
    4849        this->setRadarObjectColour(ColourValue::Red);
     
    7172        XMLPortParam(RaceCheckPoint, "checkpointindex", setCheckpointIndex, getCheckpointIndex, xmlelement, mode).defaultValues(0);
    7273        XMLPortParam(RaceCheckPoint, "islast", setLast, getLast, xmlelement, mode).defaultValues(false);
     74        XMLPortParam(RaceCheckPoint, "timelimit", setTimelimit, getTimeLimit, xmlelement, mode).defaultValues(0);
    7375    }
    7476   
  • code/branches/spacerace/src/modules/gametypes/RaceCheckPoint.h

    r8494 r8548  
    5757        inline int getCheckpointIndex()
    5858            { return this->bCheckpointIndex_; }
     59        inline void setTimelimit(int timeLimit)
     60            { this->bTimeLimit_ = timeLimit;}
     61        inline int getTimeLimit()
     62            { return this->bTimeLimit_;}
    5963        inline const WorldEntity* getWorldEntity() const
    6064            { return this; }
     
    6367        int bCheckpointIndex_;
    6468        bool bIsLast_;
    65        
     69        int bTimeLimit_;
    6670     
    6771    };
Note: See TracChangeset for help on using the changeset viewer.