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
+8 -2
View File
@@ -5,13 +5,19 @@
#include "SDL/SDL.h"
class SpriteSheet : public Image {
class SpriteSheet : protected Image {
public:
SpriteSheet(SDL_Surface*, int w, int h);
SpriteSheet(SDL_Surface*, Uint16 w, Uint16 h);
virtual ~SpriteSheet() {}
void Update(int delta);
void SetSurface(SDL_Surface*, Uint16 w, Uint16 h);
using Image::GetSurface;
using Image::DrawTo;
//these aren't regulated; be careful
int SetWidth(int i) { return SetClipW(i); };
int SetHeight(int i) { return SetClipH(i); };
int SetFrames(int i) { currentFrame = 0; return maxFrames = i; };