Tactics: Western Philosophers Vs. Musicians  0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Tactics3DMainScreen.h
Go to the documentation of this file.
1 // Copyright (C) 2010-2015 Dylan Blair
3 //
4 // email: dblair@alumni.cs.utexas.edu
5 //
6 // This file is part of Tactics3D.
7 //
8 // Tactics3D is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
12 //
13 // Tactics3D 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 St, Fifth Floor, Boston, MA 02110-1301 USA
22 
23 #ifndef TACTICS3DMAIN_SCREEN_H
24 #define TACTICS3DMAIN_SCREEN_H
25 
26 #include "../Libs/Graphics_LIB/GUIScreen.h"
27 
28 namespace Tactics3D {
29  class App;
30 
33  protected:
34  virtual void setupEventHandlers();
35 
36  bool handleControlsButton(const CEGUI::EventArgs& e);
37 
38  Ogre::ManualObject *_spreadObj, *_pointInSpreadObj;
42  public:
43  MainScreen(App* app_);
44 
45  virtual void switchMouseMode();
46 
49  void setHUDSpreadVisible(bool isVisible_);
50  void setHUDSpread(float spread_);
51  void setHUDPointInSpreadVisible(float secsPointInSpreadShouldBeVisible_);
52  void setHUDPointInSpread(const OpenSkyNet::Math::Point<float, 2>& pointInSpread_);
54 
55  virtual bool update(float dt_);
56 
57  virtual void unload();
58 
59  virtual ~MainScreen() {}
60  };
61 }
62 
63 #endif //TACTICS3DMAIN_SCREEN_H
void setHUDSpread(float spread_)
Definition: Tactics3DMainScreen.cpp:137
virtual void switchMouseMode()
Definition: Tactics3DMainScreen.cpp:115
float _spread
Definition: Tactics3DMainScreen.h:40
OpenSkyNet::Math::Point< float, 2 > _pointInSpread
Definition: Tactics3DMainScreen.h:41
void setHUDPointInSpreadVisible(float secsPointInSpreadShouldBeVisible_)
Definition: Tactics3DMainScreen.cpp:144
void setHUDSpreadVisible(bool isVisible_)
Definition: Tactics3DMainScreen.cpp:132
bool _isPointInSpreadDirty
Definition: Tactics3DMainScreen.h:39
virtual void unload()
Definition: Tactics3DMainScreen.cpp:203
float _secsPointInSpreadShouldBeVisible
Definition: Tactics3DMainScreen.h:40
bool handleControlsButton(const CEGUI::EventArgs &e)
Definition: Tactics3DMainScreen.cpp:110
virtual bool update(float dt_)
Definition: Tactics3DMainScreen.cpp:156
Definition: Tactics3DMainScreen.h:32
virtual void setupEventHandlers()
Definition: Tactics3DMainScreen.cpp:15
Ogre::ManualObject * _pointInSpreadObj
Definition: Tactics3DMainScreen.h:38
bool _isSpreadDirty
Definition: Tactics3DMainScreen.h:39
Definition: GUIScreen.h:63
MainScreen(App *app_)
Definition: Tactics3DMainScreen.cpp:12
Ogre::ManualObject * _spreadObj
Definition: Tactics3DMainScreen.h:38
void setHUDPointInSpread(const OpenSkyNet::Math::Point< float, 2 > &pointInSpread_)
Definition: Tactics3DMainScreen.cpp:151
Definition: Tactics3DApp.h:90
virtual ~MainScreen()
Definition: Tactics3DMainScreen.h:59