Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
simplecse.hpp
1 //////////////////////////////
2 //
3 // File: lxs/game/simplecse.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: Oct 14 2013
9 // This file is part of Project Labyrinth
10 // This file is going to be released under terms of GNU GPL in near future
11 //
12 //////////////////////////////
13 
14 #ifndef __SIMPLE_CSE_HPP
15 #define __SIMPLE_CSE_HPP
16 #include "lxs/windowing/button.hpp"
17 #include "lxs/windowing/textedit.hpp"
18 #include "lxs/system/dotdir.hpp"
19 #include "lxs/game/game.hpp"
20 #include "swce/editor.hpp"
21 
22 namespace LxS
23 {
24  namespace Game
25  {
26  class EquipmentForm;
27  class MapWindow;
28  //! render any gameobject on right margin of screen
30  //! Simplified character record sheet editor
31  class SimpleCSE: public SWCE::Editor
32  {
33  int state;
34  EquipmentForm * eqf;
35  MapWindow * map;
38  public:
39  enum
40  {//form of menu to be displayed depends on reason for its showing
41  NewCharacter,
42  Paused,
43  XPGranted
44  };
45  void Refresh();
46  void Render(Renderable::Rendermode mode);
47  void Animate(float dt);
48  //!\brief reason for which it is displayed (NewCharacter, Paused, XPGranted).
49  //!don't call this routine when SimpleCSE is up
50  void SetState(int s);// {state=s;}
51  //! a constructor
52  SimpleCSE(MapWindow * _M);
53  //! start game
55  //! return to main menu
56  void Main(LxS::Windowing::Button * b);
57  void Initialize();
58  //void Maximize();
59  ~SimpleCSE();
60  };
61  }
62 }
63 #endif