2008-09-20 19:45:22 -04:00
|
|
|
// SuperTuxKart - a fun racing game with go-kart
|
|
|
|
// Copyright (C) 2004 SuperTuxKart-Team
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
|
|
|
// as published by the Free Software Foundation; either version 3
|
|
|
|
// of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
#ifndef _follow_the_leader_hpp_
|
|
|
|
#define _follow_the_leader_hpp_
|
|
|
|
|
2008-09-27 15:43:57 -04:00
|
|
|
#include "modes/linear_world.hpp"
|
2008-09-20 19:45:22 -04:00
|
|
|
|
2008-10-04 13:32:40 -04:00
|
|
|
class FollowTheLeaderRace : public LinearWorld
|
2008-09-20 19:45:22 -04:00
|
|
|
{
|
|
|
|
std::vector<float> m_leader_intervals; // time till elimination in follow leader
|
|
|
|
public:
|
|
|
|
FollowTheLeaderRace();
|
2008-09-30 16:38:11 -04:00
|
|
|
virtual ~FollowTheLeaderRace();
|
2008-09-20 19:45:22 -04:00
|
|
|
|
|
|
|
// clock events
|
|
|
|
virtual void countdownReachedZero();
|
|
|
|
virtual void onGo();
|
2008-10-04 13:32:40 -04:00
|
|
|
virtual void terminateRace();
|
2008-09-20 19:45:22 -04:00
|
|
|
|
|
|
|
// overriding World methods
|
|
|
|
virtual void update(float delta);
|
|
|
|
virtual void restartRace();
|
2008-09-22 21:16:50 -04:00
|
|
|
virtual std::string getInternalCode() const;
|
2008-09-23 20:43:45 -04:00
|
|
|
virtual bool useFastMusicNearEnd() const { return false; }
|
2009-07-12 07:54:21 -04:00
|
|
|
virtual KartIconDisplayInfo* getKartsDisplayInfo();
|
2008-09-30 21:53:35 -04:00
|
|
|
|
|
|
|
virtual bool raceHasLaps(){ return false; }
|
2008-10-16 15:53:37 -04:00
|
|
|
|
|
|
|
/** Called by the race result GUI at the end of the race to know the final order
|
|
|
|
(fill in the 'order' array) */
|
|
|
|
virtual void raceResultOrder( int* order );
|
2008-09-20 19:45:22 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-09-21 02:04:38 -04:00
|
|
|
#endif
|