1 #ifndef BADGAME_BASE_GAMETHING_H_
2 #define BADGAME_BASE_GAMETHING_H_
8 #include <ugdk/math/integer2D.h>
14 #include <ugdk/math.h>
23 GameThing(
const ugdk::math::Integer2D&
tile) : obj_(nullptr), tile_(tile) {}
27 bool is_obj()
const {
return obj_ !=
nullptr; }
30 const ugdk::math::Integer2D&
tile()
const {
return tile_; }
31 ugdk::math::Integer2D&
tile() {
return tile_; }
35 ugdk::math::Integer2D tile_;
41 #endif // BADGAME_BASE_GAMETHING_H_
Definition: gameobject.h:53
GameObject * obj()
Definition: gamething.h:29
GameThing(const ugdk::math::Integer2D &tile)
Definition: gamething.h:23
~GameThing()
Definition: gamething.h:25
Definition: integer2Dutils.cc:4
GameThing()
Definition: gamething.h:24
const GameObject * obj() const
Definition: gamething.h:28
const ugdk::math::Integer2D & tile() const
Definition: gamething.h:30
ugdk::math::Integer2D & tile()
Definition: gamething.h:31
bool is_obj() const
Definition: gamething.h:27
Definition: gamething.h:20
GameThing(GameObject *obj)
Definition: gamething.h:22