Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2011, 2:38:31 PM (12 years ago)
Author:
eceline
Message:

RaceCheckPoint::fire doesn't work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/spaceraceTwo/src/modules/gametypes/RaceCheckPoint.h

    r8954 r8959  
    3232#include "gametypes/GametypesPrereqs.h"
    3333
     34
     35
    3436#include "objects/triggers/DistanceMultiTrigger.h"
    3537#include "interfaces/RadarViewable.h"
     
    6264                {return this->nextcheckpoints_;}
    6365
     66        inline void setNext(int index,RaceCheckPoint* p)
     67                {this->next_[index]=p;}
     68 inline void setLast(bool isLast)
     69                { this->bIsLast_ = isLast; }
     70            inline bool getLast()
     71                { return this->bIsLast_; }
     72            bool bIsLast_; //True if this check point is the last of the level. There can be only one last check point for each level and there must be a last check point in the level.
     73            float bTimeLimit_; //The time limit (from the start of the level) to reach this check point. If the check point is reached after this time, the game ends and the player looses.
     74        PlayerInfo* reached_;
     75               
    6476        inline void setV(bool b)
    6577                {this->isVisible_ = b;}
    6678        protected:
    6779            virtual void fire(bool bIsTriggered,BaseObject* player);
    68             inline void setLast(bool isLast)
    69                 { this->bIsLast_ = isLast; }
    70             inline bool getLast()
    71                 { return this->bIsLast_; }
    72            
     80           
    7381       
    74                
    7582
    7683            virtual void setTimelimit(float timeLimit);
     
    8289        private:
    8390            int bCheckpointIndex_; //The index of this check point. This value will be compared with the number of check points reached in the level. The check points must be indexed in ascending order beginning from zero and without any jumps between the indexes.
    84             bool bIsLast_; //True if this check point is the last of the level. There can be only one last check point for each level and there must be a last check point in the level.
    85             float bTimeLimit_; //The time limit (from the start of the level) to reach this check point. If the check point is reached after this time, the game ends and the player looses.
    86 
     91           
    8792       
    8893        Vector3 nextcheckpoints_; //the indexes of the next check points
    8994
    9095        bool isVisible_;
    91      
     96
     97       
     98      std::vector<RaceCheckPoint*> next_;
    9299    };
    93100}
Note: See TracChangeset for help on using the changeset viewer.