Line data Source code
1 : /**
2 : * @file SpriteGameObject.h
3 : * @brief manage 2D sprite (texture)-based game objects.
4 : *
5 : * Sprite game object.
6 : */
7 : #ifndef _SPRITE_GAME_OBJECT_H_
8 : #define _SPRITE_GAME_OBJECT_H_
9 :
10 : #include "constants.h"
11 : #include "Object.h"
12 :
13 : class SpriteGameObject : public Object {
14 : public:
15 : SpriteGameObject();
16 :
17 0 : void printTypeName() { PRINT_DEBUG("sprite\n"); }
18 :
19 : void draw(Object*);
20 0 : void drawOutline(Object*) {}; // Camera*
21 0 : void drawShadow (Vector*) {}
22 :
23 0 : void handleCollision(Object*) {};
24 0 : void update(Vector*) {};
25 : void prepare() {};
26 :
27 : void setTexture(const std::string&);
28 :
29 : private:
30 : int textureId;
31 : };
32 : #endif
|