dl
other
sol2备份
sol2
examples
interop
tolua
source
Player.h
浏览该文件的文档.
1
#ifndef PLAYER_H
2
#define PLAYER_H
3
4
class
Player
{
5
private
:
6
int
m_health;
7
8
public
:
9
Player
() : m_health(0) {
10
}
11
void
setHealth
(
int
health) {
12
m_health = health;
13
}
14
int
getHealth
()
const
{
15
return
m_health;
16
}
17
};
18
19
#endif
// PLAYER_H
Player::getHealth
int getHealth() const
定义
Player.h:14
Player::setHealth
void setHealth(int health)
定义
Player.h:11
Player::Player
Player()
定义
Player.h:9
制作者
1.13.1