趣味で作ってるロボット用ソフトウェア
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Files
Functions
Enumerations
Enumerator
Friends
Pages
lib
state_machine
Entity.h
Go to the documentation of this file.
1
#ifndef HRK_ENTITY_H
2
#define HRK_ENTITY_H
3
11
namespace
hrk
12
{
14
class
Entity
15
{
16
public
:
17
Entity
(
void
) : last_id_(next_id())
18
{
19
}
20
21
virtual
~
Entity
(
void
)
22
{
23
}
24
26
long
id
(
void
)
const
27
{
28
return
last_id_;
29
}
30
32
virtual
void
update
(
void
) = 0;
33
34
private
:
35
long
last_id_;
36
37
long
next_id(
void
)
38
{
39
static
long
last_id_ = 0;
40
return
++last_id_;
41
}
42
};
43
}
44
45
#endif
hrk::Entity::id
long id(void) const
ユニーク Id を返す
Definition:
Entity.h:26
hrk::Entity::update
virtual void update(void)=0
状態の更新を行う
hrk::Entity
Entity.
Definition:
Entity.h:14
Generated on Tue Oct 24 2017 04:56:04 for 趣味で作ってるロボット用ソフトウェア by
1.8.6