C# Class GameFramework.CharacterProperty

Show file Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Public Methods

Method Description
CharacterProperty ( ) : System
SetAttackBase ( Operate_Type opType, int tVal ) : void
SetAttackRange ( Operate_Type opType, float tVal ) : void
SetCritical ( Operate_Type opType, float tVal ) : void
SetCriticalPow ( Operate_Type opType, float tVal ) : void
SetDefenceBase ( Operate_Type opType, int tVal ) : void
SetEnergyMax ( Operate_Type opType, int tVal ) : void
SetHpMax ( Operate_Type opType, int tVal ) : void
SetMoveSpeed ( Operate_Type opType, float tVal ) : void
SetRps ( Operate_Type opType, float tVal ) : void
UpdateAttr ( float val, Operate_Type opType, float tVal ) : float
UpdateAttr ( float val, float maxVal, Operate_Type opType, float tVal ) : float

Method Details

CharacterProperty() public method

public CharacterProperty ( ) : System
return System

SetAttackBase() public method

public SetAttackBase ( Operate_Type opType, int tVal ) : void
opType Operate_Type
tVal int
return void

SetAttackRange() public method

public SetAttackRange ( Operate_Type opType, float tVal ) : void
opType Operate_Type
tVal float
return void

SetCritical() public method

public SetCritical ( Operate_Type opType, float tVal ) : void
opType Operate_Type
tVal float
return void

SetCriticalPow() public method

public SetCriticalPow ( Operate_Type opType, float tVal ) : void
opType Operate_Type
tVal float
return void

SetDefenceBase() public method

public SetDefenceBase ( Operate_Type opType, int tVal ) : void
opType Operate_Type
tVal int
return void

SetEnergyMax() public method

public SetEnergyMax ( Operate_Type opType, int tVal ) : void
opType Operate_Type
tVal int
return void

SetHpMax() public method

public SetHpMax ( Operate_Type opType, int tVal ) : void
opType Operate_Type
tVal int
return void

SetMoveSpeed() public method

public SetMoveSpeed ( Operate_Type opType, float tVal ) : void
opType Operate_Type
tVal float
return void

SetRps() public method

public SetRps ( Operate_Type opType, float tVal ) : void
opType Operate_Type
tVal float
return void

UpdateAttr() public static method

public static UpdateAttr ( float val, Operate_Type opType, float tVal ) : float
val float
opType Operate_Type
tVal float
return float

UpdateAttr() public static method

public static UpdateAttr ( float val, float maxVal, Operate_Type opType, float tVal ) : float
val float
maxVal float
opType Operate_Type
tVal float
return float