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 | Public Attributes | List of all members
XSSLG.HP Class Reference

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
 

Constructor & Destructor Documentation

◆ HP() [1/3]

XSSLG.HP.HP ( )
inline

◆ HP() [2/3]

XSSLG.HP.HP ( int  val)
inline

◆ HP() [3/3]

XSSLG.HP.HP ( int  val,
Attr  max 
)
inline

Member Function Documentation

◆ Add() [1/2]

void XSSLG.HP.Add ( HP  hp)
inline

加其它属性

◆ Add() [2/2]

void XSSLG.HP.Add ( int  hp)
inline

加具体血量

TODO 各种验证

◆ GetFinal()

int XSSLG.HP.GetFinal ( )

基础属性,和Get是一样的,只是为了和IAttr用起来一样

◆ GetMax()

int XSSLG.HP.GetMax ( )

获取最大血量

◆ GetPercent()

float XSSLG.HP.GetPercent ( )

获取百分比:血量/最大血量

◆ Reduce()

void XSSLG.HP.Reduce ( int  hp)
inline

减具体血量

TODO 各种验证

◆ Reset()

void XSSLG.HP.Reset ( )
inline

重置

Member Data Documentation

◆ Max

Attr XSSLG.HP.Max

◆ Val

int XSSLG.HP.Val

The documentation for this class was generated from the following file: