2009-06-19 20:28:25 -04:00
|
|
|
// SuperTuxKart - a fun racing game with go-kart
|
|
|
|
// Copyright (C) 2009 Marianne Gagnon
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
|
|
|
|
|
2009-10-04 19:59:05 -04:00
|
|
|
#ifndef __HEADER_OPTIONS_SCREEN_PLAYERS_HPP__
|
|
|
|
#define __HEADER_OPTIONS_SCREEN_PLAYERS_HPP__
|
2009-05-23 20:52:31 -04:00
|
|
|
|
|
|
|
#include <string>
|
2009-06-20 21:10:43 -04:00
|
|
|
#include "irrlicht.h"
|
2009-05-23 20:52:31 -04:00
|
|
|
|
2009-10-04 19:59:05 -04:00
|
|
|
#include "guiengine/screen.hpp"
|
|
|
|
|
|
|
|
namespace GUIEngine { class Widget; }
|
2009-05-23 20:52:31 -04:00
|
|
|
|
2009-05-30 15:35:47 -04:00
|
|
|
struct Input;
|
2009-10-04 19:59:05 -04:00
|
|
|
class PlayerProfile;
|
2009-05-30 15:35:47 -04:00
|
|
|
|
2009-10-04 19:59:05 -04:00
|
|
|
class OptionsScreenPlayers : public GUIEngine::Screen, public GUIEngine::ScreenSingleton<OptionsScreenPlayers>
|
2009-05-23 20:52:31 -04:00
|
|
|
{
|
2009-10-04 19:59:05 -04:00
|
|
|
|
|
|
|
OptionsScreenPlayers();
|
|
|
|
public:
|
|
|
|
friend class GUIEngine::ScreenSingleton<OptionsScreenPlayers>;
|
|
|
|
|
2009-10-28 19:04:38 -04:00
|
|
|
void eventCallback(GUIEngine::Widget* widget, const std::string& name, const int playerID);
|
2009-06-28 16:46:20 -04:00
|
|
|
|
2009-07-18 11:32:54 -04:00
|
|
|
void gotNewPlayerName(const irr::core::stringw& newName, PlayerProfile* player=NULL);
|
|
|
|
void deletePlayer(PlayerProfile* player);
|
2009-10-04 19:59:05 -04:00
|
|
|
|
|
|
|
void init();
|
|
|
|
void tearDown();
|
|
|
|
};
|
2009-05-23 20:52:31 -04:00
|
|
|
|
|
|
|
#endif
|