Roguelike
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
graphic_rectangular.h
Go to the documentation of this file.
1 #ifndef ROGUELIKE_COMPONENT_GRAPHIC_RECTANGULAR_H_
2 #define ROGUELIKE_COMPONENT_GRAPHIC_RECTANGULAR_H_
3 
4 // Inheritance
6 
7 // External Dependencies
8 #include <set>
9 #include <ugdk/math/vector2D.h>
10 
11 // Internal Dependencies
12 // (none)
13 
14 // Forward Declarations
15 #include <ugdk/math.h>
16 #include "game/base.h"
17 
18 namespace game {
19 namespace component {
20 
21 class GraphicRectangular : public Graphic {
22  typedef Graphic super;
23  public:
24  GraphicRectangular(game::base::GameObject* owner, const std::string& visual_representation, double zindex);
26 
27  void Update(double dt);
28  void NodeLogic(const std::set<ugdk::math::Integer2D>& occupying_tiles);
29 
30  const ugdk::Vector2D& rect_size() const { return rect_size_; }
31 
32  private:
33  ugdk::Vector2D rect_size_;
34 };
35 
36 } // namespace component
37 } // namespace game
38 
39 #endif // ROGUELIKE_COMPONENT_GRAPHIC_RECTANGULAR_H_
Definition: gameobject.h:53
Definition: aim.cc:15
Definition: graphic_rectangular.h:21
Definition: componentbase.h:19
GraphicRectangular(game::base::GameObject *owner, const std::string &visual_representation, double zindex)
Definition: graphic_rectangular.cc:33
Definition: graphic.h:23
void NodeLogic(const std::set< ugdk::math::Integer2D > &occupying_tiles)
Definition: graphic_rectangular.cc:43
~GraphicRectangular()
Definition: graphic_rectangular.cc:39
const ugdk::Vector2D & rect_size() const
Definition: graphic_rectangular.h:30
void Update(double dt)
Definition: graphic_rectangular.cc:41