17 lines
No EOL
367 B
C++
17 lines
No EOL
367 B
C++
#include "GameObject.h"
|
|
|
|
class StaticObject: public GameObject
|
|
{
|
|
public:
|
|
StaticObject(int x, int y, int w, int h, SDL_Rect srcrect): GameObject(x, y, w, h)
|
|
{
|
|
this->srcrect = srcrect;
|
|
}
|
|
Frame frame()
|
|
{
|
|
return Frame(this->dstrect, this->srcrect);
|
|
}
|
|
|
|
protected:
|
|
SDL_Rect srcrect;
|
|
}; |