C# Class UnitController, WoofVsMeow

Inheritance: BasicController
Mostra file Open project: HaoYuan90/WoofVsMeow Class Usage Examples

Public Properties

Property Type Description
m_armorType ArmorType
m_attackRange int
m_attackType AttackType
m_control int
m_damage int
m_maxAP int
m_maxHealth int
m_movementRange int

Protected Properties

Property Type Description
m_active bool
m_currentGrid GameObject
m_engine GameEngine
m_hasAttacked bool
m_hasMoved bool

Public Methods

Method Description
Activate ( ) : void
Attack ( GameObject tar ) : int
AttackButtonAction ( ) : void
AttackFinished ( ) : void
CommandCancelled ( ) : void
EndButtonAction ( ) : void
GetPositionOnMap ( ) : IntVector2,
InitialiseUnit ( GameEngine, engine, GameObject currentGrid ) : void
IsEnemyOf ( int currControl ) : bool
LoseHealthBy ( int amount, float delay ) : void
Move ( GameObject dest ) : void
MoveButtonAction ( ) : void
MoveFinished ( ) : void

Private Methods

Method Description
DelayedHPBarUpdate ( int amount, float delay ) : IEnumerator
UpdateButtonStatus ( ) : void

Method Details

Activate() public method

public Activate ( ) : void
return void

Attack() public method

public Attack ( GameObject tar ) : int
tar GameObject
return int

AttackButtonAction() public method

public AttackButtonAction ( ) : void
return void

AttackFinished() public method

public AttackFinished ( ) : void
return void

CommandCancelled() public method

public CommandCancelled ( ) : void
return void

EndButtonAction() public method

public EndButtonAction ( ) : void
return void

GetPositionOnMap() public method

public GetPositionOnMap ( ) : IntVector2,
return IntVector2,

InitialiseUnit() public method

public InitialiseUnit ( GameEngine, engine, GameObject currentGrid ) : void
engine GameEngine,
currentGrid GameObject
return void

IsEnemyOf() public method

public IsEnemyOf ( int currControl ) : bool
currControl int
return bool

LoseHealthBy() public method

public LoseHealthBy ( int amount, float delay ) : void
amount int
delay float
return void

Move() public method

public Move ( GameObject dest ) : void
dest GameObject
return void

MoveButtonAction() public method

public MoveButtonAction ( ) : void
return void

MoveFinished() public method

public MoveFinished ( ) : void
return void

Property Details

m_active protected_oe property

protected bool m_active
return bool

m_armorType public_oe property

public ArmorType m_armorType
return ArmorType

m_attackRange public_oe property

public int m_attackRange
return int

m_attackType public_oe property

public AttackType m_attackType
return AttackType

m_control public_oe property

public int m_control
return int

m_currentGrid protected_oe property

protected GameObject m_currentGrid
return GameObject

m_damage public_oe property

public int m_damage
return int

m_engine protected_oe property

protected GameEngine m_engine
return GameEngine

m_hasAttacked protected_oe property

protected bool m_hasAttacked
return bool

m_hasMoved protected_oe property

protected bool m_hasMoved
return bool

m_maxAP public_oe property

public int m_maxAP
return int

m_maxHealth public_oe property

public int m_maxHealth
return int

m_movementRange public_oe property

public int m_movementRange
return int