forked from Alfwich/CubicEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DisplayObject.h
48 lines (39 loc) · 849 Bytes
/
DisplayObject.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/***
Display Object: Defines a basic display object
-Contains the name of the object
-Contains the type of the object
-Holds garbage collection variables
-Holds generic display information
***/
#ifndef DISPLAY_OBJECT_H
#define DISPLAY_OBJECT_H
#include <string>
#include "SDL.h"
class DisplayObject
{
public:
DisplayObject()
{
name = "";
type = "";
garbageCollect = false;
visible = true;
hasLighting = true;
hasFog = true;
}
// Demographics
std::string name;
std::string type;
bool garbageCollect;
bool visible;
bool hasLighting;
bool hasFog;
// Virtual functions
virtual void draw() = 0;
virtual void move() = 0;
virtual void drawDebugInfo( double length ) = 0;
virtual void handleEvent( SDL_Event& e ) = 0;
virtual void Pause() = 0;
virtual void Unpause() = 0;
};
#endif // !DISPLAY_OBJECT_H