XSGridEditor
1.0.0
XSGridEditor is a lightweight square grid map system for 2D/3D SRPG games, and comes with a simple and easy-to-use grid editing function. It can be used as a beginning for you to create SRPG games.
|
Public Member Functions | |
HP () | |
HP (int val) | |
HP (int val, Attr max) | |
int | GetFinal () |
基础属性,和Get是一样的,只是为了和IAttr用起来一样 More... | |
void | Add (HP hp) |
加其它属性 More... | |
void | Reset () |
重置 More... | |
void | Add (int hp) |
加具体血量 More... | |
void | Reduce (int hp) |
减具体血量 More... | |
int | GetMax () |
获取最大血量 More... | |
float | GetPercent () |
获取百分比:血量/最大血量 More... | |
Public Attributes | |
int | Val |
Attr | Max |
|
inline |
|
inline |
|
inline |
|
inline |
加其它属性
|
inline |
加具体血量
TODO 各种验证
int XSSLG.HP.GetFinal | ( | ) |
基础属性,和Get是一样的,只是为了和IAttr用起来一样
int XSSLG.HP.GetMax | ( | ) |
获取最大血量
float XSSLG.HP.GetPercent | ( | ) |
获取百分比:血量/最大血量
|
inline |
减具体血量
TODO 各种验证
|
inline |
重置
Attr XSSLG.HP.Max |
int XSSLG.HP.Val |