Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
itemform.hpp
1 //////////////////////////////
2 //
3 // File: lxs/game/itemform.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: May 31 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_ITFRM_
15 #define __LXS_EQFRM_
16 
17 namespace LxS
18 {
19  namespace Windowing
20  {
21  class Label;
22  class Button;
23  }
24 namespace Game
25 {
27  {
28  Item * item;
29  Character * character;
30  LxS::Windowing::Label * name;
31  LxS::Windowing::Label * amount;
32  LxS::Windowing::Label * itemspecific;
33  LxS::Windowing::Label * weight;
34  LxS::Windowing::Button * action;
35  //! equip a sword
36  void Equip(LxS::Windowing::Button * b);
37  void Drink(LxS::Windowing::Button * b);
38  public:
39  //! constructor
40  ItemForm(Item * it, Character * ch);
41  void Render(Renderable::Rendermode mode);
42  void Animate(float dt);
43  void Refresh();
44  ~ItemForm();
45  };
46 
47 
48 }
49 }
50 #endif