UGDK
0.4.1
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
entity.h
Go to the documentation of this file.
1
#ifndef UGDK_ACTION_ENTITY_H_
2
#define UGDK_ACTION_ENTITY_H_
3
4
#include <
ugdk/action.h
>
5
6
namespace
ugdk {
7
8
namespace
action {
9
10
class
Entity
{
11
public
:
12
virtual
~Entity
() {}
13
14
virtual
bool
to_be_removed
()
const
{
return
to_be_removed_
; }
15
16
virtual
void
Update
(
double
dt) = 0;
17
18
virtual
void
OnSceneAdd
(
Scene
* scene) {}
19
20
protected
:
21
Entity
() :
to_be_removed_
(false) {}
22
bool
to_be_removed_
;
23
};
24
25
}
// namespace action
26
27
}
// namespace ugdk
28
29
#endif // UGDK_ACTION_ENTITY_H_
src
ugdk
action
entity.h
Generated on Sat Oct 13 2012 02:25:11 for UGDK by
1.8.2