/*Copyright (C) 2010 Deveaux Duncan

This file is part of Hikou no mizu.

Hikou no mizu 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.

Hikou no mizu 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 Hikou no mizu.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef DEF_CHARACTERS_MENU
#define DEF_CHARACTERS_MENU

#include <SFML/Graphics.hpp>
#include <sstream>
#include "Engines/Graphics/GraphicsEngine.hpp"
#include "GUI/Complex/Menu/TextMenu.hpp"

#include "Screens/Screen.hpp"

class GameEngine;

//Screen's inheriting class representing the characters menu screen
class CharactersMenu : public Screen
{
    public:
        CharactersMenu(GameEngine *gameEngine);
        ~CharactersMenu();
        void setPlayersNo(int playersNo);
        
        //Screen virtual method
        void run();
    
    private:
        void updatePlayersNoText(int playerId, int playersNo);
        
        GameEngine *m_gameEngine;
        sf::RenderWindow *m_renderWindow;
        
        sf::Text m_title;
        sf::Text m_playersNoText;
        
        TextMenu m_menu;
        TextButton *m_menuStyle;
        
        GraphicsEngine m_renderEngine;
        
        int m_playersNo;
};

#endif