stk-code_catmod/src/gui/start_race_feedback.hpp
hikerstk 8a4a939980 1) Character selection is now synchronsied between all clients and server (i.e.
a character can only be selected once, and is then not available for other
   players anymore).
2) Fixed restart race (which would finish the race after about 11 seconds)
3) Moved widget related classes into gui dir.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2264 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-13 07:09:36 +00:00

45 lines
1.5 KiB
C++

// SuperTuxKart - a fun racing game with go-kart
// Copyright (C) 2006 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 HEADER_START_RACE_FEEDBACK_H
#define HEADER_START_RACE_FEEDBACK_H
#include "base_gui.hpp"
/** This class is used to give feedback to the user while loading the track.
* It either displays a 'Loading track' or a 'Wait for synchronisation'
* message (dependent on the stage of the race manager).
*/
class StartRaceFeedback: public BaseGUI
{
protected:
/** Flag used to make sure that the text is actually displayed (i.e
* update was called once) before loading the track - otherwise the
* text is set in the widget, but not on the screen since the screen
* wasn't updated.
*/
bool m_is_first_frame;
public:
StartRaceFeedback();
~StartRaceFeedback();
void update(float DELTA);
void select(){};
};
#endif