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 | Static Public Member Functions | Public Attributes | List of all members
XSSLG.Attr Class Reference

Public Member Functions

 Attr ()
 
 Attr (int val)
 
 Attr (int val, float factor)
 
int GetFinal ()
 基础乘以百分比计算最终属性 More...
 
void Add (Attr attr)
 加其它属性 More...
 
void Reduce (Attr attr)
 减其它属性 More...
 
void Reset ()
 重置 More...
 

Static Public Member Functions

static Attr operator+ (Attr a, Attr b)
 
static Attr operator- (Attr a, Attr b)
 

Public Attributes

int Val
 
float Factor
 

Constructor & Destructor Documentation

◆ Attr() [1/3]

XSSLG.Attr.Attr ( )
inline

◆ Attr() [2/3]

XSSLG.Attr.Attr ( int  val)
inline

◆ Attr() [3/3]

XSSLG.Attr.Attr ( int  val,
float  factor 
)
inline

Member Function Documentation

◆ Add()

void XSSLG.Attr.Add ( Attr  attr)
inline

加其它属性

◆ GetFinal()

int XSSLG.Attr.GetFinal ( )

基础乘以百分比计算最终属性

◆ operator+()

static Attr XSSLG.Attr.operator+ ( Attr  a,
Attr  b 
)
inlinestatic

◆ operator-()

static Attr XSSLG.Attr.operator- ( Attr  a,
Attr  b 
)
inlinestatic

◆ Reduce()

void XSSLG.Attr.Reduce ( Attr  attr)
inline

减其它属性

◆ Reset()

void XSSLG.Attr.Reset ( )
inline

重置

Member Data Documentation

◆ Factor

float XSSLG.Attr.Factor

◆ Val

int XSSLG.Attr.Val

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