- void Draw(SDL_Surface *dest, geometry::Point<int> position) {
- sprite->Draw(dest, position, col, Running() ? row + (timer.Iteration() % numFrames) : row);
+ virtual void Draw(SDL_Surface *dest, geometry::Point<int> position) const {
+ sprite->Draw(dest, position, Col(), Row());
+ }
+ void DrawTopRight(SDL_Surface *dest, geometry::Point<int> position) const {
+ geometry::Vector<int> offset(-sprite->Width(), 0);
+ Draw(dest, position + offset);
+ }
+ void DrawCenter(SDL_Surface *dest, geometry::Point<int> position) const {
+ geometry::Vector<int> offset(-sprite->Width() / 2, -sprite->Height() / 2);
+ Draw(dest, position + offset);