C# Class Defense, Castle-Bashers

Inheritance: MonoBehaviour
Show file Open project: DevelopersGuild/Castle-Bashers Class Usage Examples

Public Properties

Property Type Description
baseMagicalDefense int
basePhysicalDefense int
defense int

Public Methods

Method Description
AddBonusMagicalDefense ( int value ) : void
AddBonusPhysicalDefense ( int value ) : void
AddDefense ( int value ) : void
CheckMagicalDefense ( float damage, int flinch = 4 ) : void
CheckPhysicalDefense ( float damage, int flinch = 4 ) : void
GetBaseMagicalDefense ( ) : int
GetBasePhysicalDefense ( ) : int
GetBonusMagicalDefense ( ) : int
GetBonusPhysicalDefense ( ) : int
GetDefense ( ) : float
GetMagicalDefense ( ) : int
GetPhysicalDefense ( ) : int
SetBaseMagicalDefense ( int value ) : void
SetBasePhysicalDefense ( int value ) : void
SetDefense ( int Defense ) : void
SetMagicalDefense ( int value ) : void
SetPhysicalDefense ( int value ) : void
Start ( ) : void
Update_Defense ( ) : void

Private Methods

Method Description
Check_Block_Success ( ) : bool

Method Details

AddBonusMagicalDefense() public method

public AddBonusMagicalDefense ( int value ) : void
value int
return void

AddBonusPhysicalDefense() public method

public AddBonusPhysicalDefense ( int value ) : void
value int
return void

AddDefense() public method

public AddDefense ( int value ) : void
value int
return void

CheckMagicalDefense() public method

public CheckMagicalDefense ( float damage, int flinch = 4 ) : void
damage float
flinch int
return void

CheckPhysicalDefense() public method

public CheckPhysicalDefense ( float damage, int flinch = 4 ) : void
damage float
flinch int
return void

GetBaseMagicalDefense() public method

public GetBaseMagicalDefense ( ) : int
return int

GetBasePhysicalDefense() public method

public GetBasePhysicalDefense ( ) : int
return int

GetBonusMagicalDefense() public method

public GetBonusMagicalDefense ( ) : int
return int

GetBonusPhysicalDefense() public method

public GetBonusPhysicalDefense ( ) : int
return int

GetDefense() public method

public GetDefense ( ) : float
return float

GetMagicalDefense() public method

public GetMagicalDefense ( ) : int
return int

GetPhysicalDefense() public method

public GetPhysicalDefense ( ) : int
return int

SetBaseMagicalDefense() public method

public SetBaseMagicalDefense ( int value ) : void
value int
return void

SetBasePhysicalDefense() public method

public SetBasePhysicalDefense ( int value ) : void
value int
return void

SetDefense() public method

public SetDefense ( int Defense ) : void
Defense int
return void

SetMagicalDefense() public method

public SetMagicalDefense ( int value ) : void
value int
return void

SetPhysicalDefense() public method

public SetPhysicalDefense ( int value ) : void
value int
return void

Start() public method

public Start ( ) : void
return void

Update_Defense() public method

public Update_Defense ( ) : void
return void

Property Details

baseMagicalDefense public property

public int baseMagicalDefense
return int

basePhysicalDefense public property

public int basePhysicalDefense
return int

defense public property

public int defense
return int