Moved working systems into InGame

This commit is contained in:
Kayne Ruse
2013-04-29 17:25:56 +10:00
parent c9447fcf3b
commit ecdf658463
15 changed files with 186 additions and 151 deletions
+2 -6
View File
@@ -1,16 +1,12 @@
#ifndef PLAYER_H_
#define PLAYER_H_
#include "defines.h"
#include "vector2.h"
#include "sprite_sheet.h"
#include "SDL/SDL.h"
enum class Direction {
NORTH, SOUTH,
EAST, WEST
};
class Player {
public:
Player(SDL_Surface*, int w, int h);
@@ -27,7 +23,7 @@ public:
Vector2 ShiftMotion(Vector2 v) { return motion += v; }
Vector2 GetMotion() const { return motion; }
void DrawTo(SDL_Surface* s) { sprite.DrawTo(s, position.x, position.y); }
void DrawTo(SDL_Surface* const s) { sprite.DrawTo(s, position.x, position.y); }
void FaceDirection(Direction);
SpriteSheet* GetSpriteSheet() { return &sprite; };