From 0bd5523854c9a562e510b0e9e8df7009bc4c1075 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sun, 8 Jun 2008 18:26:18 +0100 Subject: [PATCH] Add new options screen --- src/Makefile.am | 2 +- src/Menu.hpp | 2 +- src/Options.cpp | 39 +++++++++++++++++++++++++++++++++++++++ src/Options.hpp | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 src/Options.cpp create mode 100644 src/Options.hpp diff --git a/src/Makefile.am b/src/Makefile.am index a8c170a..d5e80e1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -13,7 +13,7 @@ lander_SOURCES = Main.cpp Lander.hpp Game.cpp \ ElectricGate.hpp ElectricGate.cpp Key.hpp Key.cpp \ Mechanics.hpp Mechanics.cpp Geometry.hpp Image.hpp \ Image.cpp AnimatedImage.hpp AnimatedImage.cpp \ - Texture.hpp Texture.cpp + Texture.hpp Texture.cpp Options.hpp Options.cpp localedir = $(datadir)/locale diff --git a/src/Menu.hpp b/src/Menu.hpp index 1c1c7c9..1058166 100644 --- a/src/Menu.hpp +++ b/src/Menu.hpp @@ -61,7 +61,7 @@ private: class MainMenu : public Screen { public: MainMenu(); - virtual ~MainMenu() { } + virtual ~MainMenu() {} void Load(); void Process(); diff --git a/src/Options.cpp b/src/Options.cpp new file mode 100644 index 0000000..829d627 --- /dev/null +++ b/src/Options.cpp @@ -0,0 +1,39 @@ +/* Options.cpp -- The options screen. + * Copyright (C) 2008 Nick Gasson + * + * 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, see . + */ + +#include "Options.hpp" + +Options::Options() +{ + +} + +void Options::Load() +{ + cout << "Options loaded" << endl; +} + +void Options::Process() +{ + +} + +void Options::Display() +{ + +} + diff --git a/src/Options.hpp b/src/Options.hpp new file mode 100644 index 0000000..794ae18 --- /dev/null +++ b/src/Options.hpp @@ -0,0 +1,36 @@ +/* Options.hpp -- The options screen. + * Copyright (C) 2008 Nick Gasson + * + * 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, see . + */ + +#ifndef INC_OPTIONS_HPP +#define INC_OPTIONS_HPP + +#include "Platform.hpp" +#include "ScreenManager.hpp" + +class Options : public Screen { +public: + Options(); + virtual ~Options() {} + + void Load(); + void Process(); + void Display(); + +private: +}; + +#endif -- 2.39.2