Add project files.
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
#ifndef _CBUILDMAINMENU_HPP_
|
||||
#define _CBUILDMAINMENU_HPP_
|
||||
|
||||
/*** TrooperEngine DLL Header Files ***/
|
||||
#include "TrooperEngine.hpp"
|
||||
|
||||
/*** TinyXML Header File ***/
|
||||
#include "tinyxml2.h"
|
||||
|
||||
/*** Custom Header Files ***/
|
||||
#include "cMainMenu.hpp"
|
||||
|
||||
using UtilityEngine::cString;
|
||||
using tinyxml2::XMLElement;
|
||||
|
||||
namespace MainMenu {
|
||||
class cBuildMainMenu
|
||||
{
|
||||
public:
|
||||
cBuildMainMenu();
|
||||
~cBuildMainMenu();
|
||||
|
||||
///Functions
|
||||
cMainMenu* ReadXML();
|
||||
|
||||
///Sets
|
||||
///Gets
|
||||
|
||||
private:
|
||||
void GetOptions( const XMLElement* element, const cString name );
|
||||
const char* GetAttribute( const XMLElement* element, const cString attribute ) const;
|
||||
const unsigned long int HexToInt( const cString str ) const;
|
||||
const SDL_Colour IntToSDLColour( const unsigned long int colour ) const;
|
||||
|
||||
private:
|
||||
cString m_langSettings;// = ""
|
||||
cString m_lang;// = ""
|
||||
|
||||
cString m_ttf;// = ""
|
||||
cString m_dir;// = ""
|
||||
|
||||
cMainMenu* mp_mainMenu;// = new cMainMenu()
|
||||
};/// END CLASS DEFINITION cBuildMainMenu
|
||||
}/// END NAMESPACE DEFINITION MainMenu
|
||||
#endif/// END IFNDEF _CBUILDMAINMENU_HPP_
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" ?>
|
||||
<SDLPongCPP>
|
||||
<Settings lang="EN"/>
|
||||
<MainMenu lang="EN" colour="FF0000" selectcolour="0000FF" titlecolour="FFFF00" ttf="FreeSansBold.ttf" soundeffect="menu-opt.wav" dir="">
|
||||
<Title x="40" y="0" size="80">
|
||||
SDL Pong C
|
||||
</Title>
|
||||
<SinglePlayer x="60" y="100" size="40">
|
||||
Single Player
|
||||
</SinglePlayer>
|
||||
<HeadToHead x="60" y="150" size="40">
|
||||
Head to Head
|
||||
</HeadToHead>
|
||||
<Options x="60" y="200" size="40">
|
||||
Options
|
||||
<OptionMenu>
|
||||
<Language>
|
||||
Language
|
||||
<LanOption lang="EN">
|
||||
English
|
||||
</LanOption>
|
||||
<LanOption lang="FR">
|
||||
French
|
||||
</LanOption>
|
||||
</Language>
|
||||
</OptionMenu>
|
||||
</Options>
|
||||
<Quit x="60" y="200" size="40">
|
||||
Quit
|
||||
</Quit>
|
||||
</MainMenu>
|
||||
</SDLPongCPP>
|
||||
@@ -0,0 +1,33 @@
|
||||
#ifndef _CQUITBUTTON_HPP_
|
||||
#define _CQUITBUTTON_HPP_
|
||||
|
||||
/*** SDL Header Files ***/
|
||||
#include "SDL.h"
|
||||
|
||||
/*** TrooperEngine DLL Header Files ***/
|
||||
#include "TrooperEngine.hpp"
|
||||
|
||||
/*** Custom Header Files ***/
|
||||
#include "../cCourt.hpp"
|
||||
|
||||
namespace Input {
|
||||
class cQuitButton : public InputEngine::cKey
|
||||
{
|
||||
public:
|
||||
cQuitButton( SDL_Keycode key, Equipment::cCourt** court);
|
||||
virtual ~cQuitButton();
|
||||
|
||||
///Funtions
|
||||
/* Call if the key is pressed */
|
||||
void KeyPress();
|
||||
/* Call if the key is up */
|
||||
void KeyUP();
|
||||
/* Call if the key is down */
|
||||
void KeyDown();
|
||||
|
||||
private:
|
||||
private:
|
||||
Equipment::cCourt** mpp_court;//
|
||||
};/// END CLASS DEFINITION cQuitButton
|
||||
}/// END NAMESPACE DEFINITION Input
|
||||
#endif/// END IFNDEF _CQUITBUTTON_HPP_
|
||||
Reference in New Issue
Block a user