4 * Created on: Sep 29, 2012
11 #include "../geometry/Vector.h"
12 #include "../graphics/fwd.h"
13 #include "../graphics/Animation.h"
27 geometry::Vector<float> &Position() { return position; }
28 const geometry::Vector<float> &Position() const { return position; }
30 geometry::Vector<float> &Velocity() { return velocity; }
31 const geometry::Vector<float> &Velocity() const { return velocity; }
33 void SetSprite(const graphics::Sprite *s) { sprite = s; }
34 graphics::AnimationRunner &Animation() { return animation; }
35 const graphics::AnimationRunner &Animation() const { return animation; }
37 bool TileLock(int width, int height) const;
39 void Update(float deltaT);
41 void Render(SDL_Surface *, const geometry::Vector<int> &offset) const;
44 const graphics::Sprite *sprite;
45 graphics::AnimationRunner animation;
46 geometry::Vector<float> position;
47 geometry::Vector<float> velocity;
53 #endif /* MAP_ENTITY_H_ */