C# Class Fighter

Inheritance: MonoBehaviour
显示文件 Open project: marouen-lamiri/Second-Soul Class Usage Examples

Public Properties

Property Type Description
database DatabaseFighter

Protected Properties

Property Type Description
dexterity int
dexterityPerLvl int
endurance int
endurancePerLvl int
strength int
strengthPerLvl int

Public Methods

Method Description
calculateNewPrimaryStats ( ) : void
calculateSecondaryStats ( ) : void
criticalHitCheck ( ) : bool
getDamage ( ) : double
getDamageCanMiss ( ) : double
getDexterity ( ) : int
getEndurance ( ) : int
getLevel ( ) : int
getLevelBaseXP ( ) : float
getLevelXP ( ) : int
getNextLevel ( ) : int
getStrength ( ) : int
levelUp ( ) : void
loseEnergy ( float energy ) : bool
setDexterity ( int iDexterity ) : void
setEndurance ( int iEndurance ) : void
setLevel ( int iLevel ) : void
setLevelBaseXP ( float iBaseFactor ) : void
setLevelXP ( int iLevel ) : void
setNextLevel ( int iBaseFactor ) : void
setStrength ( int iStrength ) : void

Protected Methods

Method Description
FixedUpdate ( ) : void
Start ( ) : void
fighterStart ( ) : void
fighterUpdate ( ) : void
initializeMoney ( ) : void
initializePrimaryStats ( ) : void

Method Details

FixedUpdate() protected method

protected FixedUpdate ( ) : void
return void

Start() protected method

protected Start ( ) : void
return void

calculateNewPrimaryStats() public method

public calculateNewPrimaryStats ( ) : void
return void

calculateSecondaryStats() public method

public calculateSecondaryStats ( ) : void
return void

criticalHitCheck() public method

public criticalHitCheck ( ) : bool
return bool

fighterStart() protected method

protected fighterStart ( ) : void
return void

fighterUpdate() protected method

protected fighterUpdate ( ) : void
return void

getDamage() public method

public getDamage ( ) : double
return double

getDamageCanMiss() public method

public getDamageCanMiss ( ) : double
return double

getDexterity() public method

public getDexterity ( ) : int
return int

getEndurance() public method

public getEndurance ( ) : int
return int

getLevel() public method

public getLevel ( ) : int
return int

getLevelBaseXP() public method

public getLevelBaseXP ( ) : float
return float

getLevelXP() public method

public getLevelXP ( ) : int
return int

getNextLevel() public method

public getNextLevel ( ) : int
return int

getStrength() public method

public getStrength ( ) : int
return int

initializeMoney() protected method

protected initializeMoney ( ) : void
return void

initializePrimaryStats() protected method

protected initializePrimaryStats ( ) : void
return void

levelUp() public method

public levelUp ( ) : void
return void

loseEnergy() public method

public loseEnergy ( float energy ) : bool
energy float
return bool

setDexterity() public method

public setDexterity ( int iDexterity ) : void
iDexterity int
return void

setEndurance() public method

public setEndurance ( int iEndurance ) : void
iEndurance int
return void

setLevel() public method

public setLevel ( int iLevel ) : void
iLevel int
return void

setLevelBaseXP() public method

public setLevelBaseXP ( float iBaseFactor ) : void
iBaseFactor float
return void

setLevelXP() public method

public setLevelXP ( int iLevel ) : void
iLevel int
return void

setNextLevel() public method

public setNextLevel ( int iBaseFactor ) : void
iBaseFactor int
return void

setStrength() public method

public setStrength ( int iStrength ) : void
iStrength int
return void

Property Details

database public_oe property

public DatabaseFighter database
return DatabaseFighter

dexterity protected_oe property

protected int dexterity
return int

dexterityPerLvl protected_oe property

protected int dexterityPerLvl
return int

endurance protected_oe property

protected int endurance
return int

endurancePerLvl protected_oe property

protected int endurancePerLvl
return int

strength protected_oe property

protected int strength
return int

strengthPerLvl protected_oe property

protected int strengthPerLvl
return int