Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
battleresult.hpp
1 //////////////////////////////
2 //
3 // File: lxs/game/battleresult.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: May 27 2014
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 __LXS_BATRES__
15 #define __LXS_BATRES__
16 #include <string>
17 #include "lxs/windowing/containerwindow.hpp"
18 #include "lxs/game/character.hpp"
19 namespace LxS
20 {
21  namespace Windowing
22  {
23  class Label;
24  class TextBox;
25  }
26  namespace Game
27  {
28  //! displayable battle result
30  {
31  Windowing::Label * header;
32  Windowing::Label * xp;
33  Windowing::TextBox * loot;
34  int xp_i;
35  std::string loot_s;
36  std::string header_s;
37  public:
38  //! header of battle result. i.e. "Victory!"
39  void SetHeader(const std::string h);
40  //! items that were loted
41  void SetLoot(const std::string loot);
42  //! experience points gained from battle
43  void SetXP(int xp);
44  void Initialize();
45  void Refresh() ;
47  void ResizeHandler() {Refresh();}
48 
49  };
50  }
51 }
52 #endif