[1661] | 1 | /* |
---|
| 2 | * ORXONOX - the hottest 3D action shooter ever to exist |
---|
| 3 | * > www.orxonox.net < |
---|
| 4 | * |
---|
| 5 | * |
---|
| 6 | * License notice: |
---|
| 7 | * |
---|
| 8 | * This program is free software; you can redistribute it and/or |
---|
| 9 | * modify it under the terms of the GNU General Public License |
---|
| 10 | * as published by the Free Software Foundation; either version 2 |
---|
| 11 | * of the License, or (at your option) any later version. |
---|
| 12 | * |
---|
| 13 | * This program is distributed in the hope that it will be useful, |
---|
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 16 | * GNU General Public License for more details. |
---|
| 17 | * |
---|
| 18 | * You should have received a copy of the GNU General Public License |
---|
| 19 | * along with this program; if not, write to the Free Software |
---|
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
| 21 | * |
---|
| 22 | * Author: |
---|
| 23 | * Reto Grieder |
---|
| 24 | * Co-authors: |
---|
| 25 | * ... |
---|
| 26 | * |
---|
| 27 | */ |
---|
| 28 | |
---|
[2850] | 29 | #ifndef _GSMainMenu_H__ |
---|
| 30 | #define _GSMainMenu_H__ |
---|
[1661] | 31 | |
---|
[5842] | 32 | #include "OrxonoxPrereqs.h" |
---|
[3196] | 33 | |
---|
| 34 | #include "util/OgreForwardRefs.h" |
---|
[1661] | 35 | #include "core/GameState.h" |
---|
| 36 | |
---|
| 37 | namespace orxonox |
---|
| 38 | { |
---|
[5842] | 39 | class _OrxonoxExport GSMainMenu : public GameState |
---|
[1661] | 40 | { |
---|
| 41 | public: |
---|
[3370] | 42 | GSMainMenu(const GameStateInfo& info); |
---|
[2850] | 43 | ~GSMainMenu(); |
---|
[1661] | 44 | |
---|
[2844] | 45 | void activate(); |
---|
| 46 | void deactivate(); |
---|
| 47 | void update(const Clock& time); |
---|
| 48 | |
---|
[5918] | 49 | static void startStandalone(); |
---|
| 50 | static void startServer(); |
---|
| 51 | static void startClient(); |
---|
| 52 | static void startDedicated(); |
---|
| 53 | static void startMainMenu(); |
---|
| 54 | static void startIOConsole(); |
---|
[2844] | 55 | |
---|
[1661] | 56 | private: |
---|
[3327] | 57 | InputState* inputState_; |
---|
[2850] | 58 | Scene* scene_; |
---|
| 59 | Ogre::Camera* camera_; |
---|
[1688] | 60 | |
---|
[3060] | 61 | // ambient sound for the main menu |
---|
[5896] | 62 | AmbientSound* ambient_; |
---|
[1661] | 63 | }; |
---|
| 64 | } |
---|
| 65 | |
---|
[2850] | 66 | #endif /* _GSMainMenu_H__ */ |
---|