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 | Properties | Private Member Functions | List of all members
XSSLG.LevelBase Class Reference

等级基类 More...

Inheritance diagram for XSSLG.LevelBase:
XSSLG.RoleLevel

Public Member Functions

 LevelBase (int[] expArray, int lv=0, int exp=0)
 
bool AddExpAndCheckLevel (int addExp)
 增加经验值并看看能否升级 More...
 

Properties

int Lv [get, private set]
 当前等级 More...
 
int Exp [get, private set]
 当前经验 More...
 
int[] ExpArray [get]
 经验值数组 More...
 

Private Member Functions

bool TryLevelUp ()
 尝试升级 More...
 

Detailed Description

等级基类

Constructor & Destructor Documentation

◆ LevelBase()

XSSLG.LevelBase.LevelBase ( int[]  expArray,
int  lv = 0,
int  exp = 0 
)
inline

Member Function Documentation

◆ AddExpAndCheckLevel()

bool XSSLG.LevelBase.AddExpAndCheckLevel ( int  addExp)
inline

增加经验值并看看能否升级

◆ TryLevelUp()

bool XSSLG.LevelBase.TryLevelUp ( )
inlineprivate

尝试升级

Property Documentation

◆ Exp

int XSSLG.LevelBase.Exp
getprivate set

当前经验

◆ ExpArray

int [] XSSLG.LevelBase.ExpArray
get

经验值数组

◆ Lv

int XSSLG.LevelBase.Lv
getprivate set

当前等级


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