C# Class UnitController, WoofVsMeow

Inheritance: BasicController
Afficher le fichier Open project: HaoYuan90/WoofVsMeow Class Usage Examples

Méthodes publiques

Свойство 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

Свойство Type Description
m_active bool
m_currentGrid GameObject
m_engine GameEngine
m_hasAttacked bool
m_hasMoved bool

Méthodes publiques

Méthode 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

Méthode Description
DelayedHPBarUpdate ( int amount, float delay ) : IEnumerator
UpdateButtonStatus ( ) : void

Method Details

Activate() public méthode

public Activate ( ) : void
Résultat void

Attack() public méthode

public Attack ( GameObject tar ) : int
tar GameObject
Résultat int

AttackButtonAction() public méthode

public AttackButtonAction ( ) : void
Résultat void

AttackFinished() public méthode

public AttackFinished ( ) : void
Résultat void

CommandCancelled() public méthode

public CommandCancelled ( ) : void
Résultat void

EndButtonAction() public méthode

public EndButtonAction ( ) : void
Résultat void

GetPositionOnMap() public méthode

public GetPositionOnMap ( ) : IntVector2,
Résultat IntVector2,

InitialiseUnit() public méthode

public InitialiseUnit ( GameEngine, engine, GameObject currentGrid ) : void
engine GameEngine,
currentGrid GameObject
Résultat void

IsEnemyOf() public méthode

public IsEnemyOf ( int currControl ) : bool
currControl int
Résultat bool

LoseHealthBy() public méthode

public LoseHealthBy ( int amount, float delay ) : void
amount int
delay float
Résultat void

Move() public méthode

public Move ( GameObject dest ) : void
dest GameObject
Résultat void

MoveButtonAction() public méthode

public MoveButtonAction ( ) : void
Résultat void

MoveFinished() public méthode

public MoveFinished ( ) : void
Résultat void

Property Details

m_active protected_oe property

protected bool m_active
Résultat bool

m_armorType public_oe property

public ArmorType m_armorType
Résultat ArmorType

m_attackRange public_oe property

public int m_attackRange
Résultat int

m_attackType public_oe property

public AttackType m_attackType
Résultat AttackType

m_control public_oe property

public int m_control
Résultat int

m_currentGrid protected_oe property

protected GameObject m_currentGrid
Résultat GameObject

m_damage public_oe property

public int m_damage
Résultat int

m_engine protected_oe property

protected GameEngine m_engine
Résultat GameEngine

m_hasAttacked protected_oe property

protected bool m_hasAttacked
Résultat bool

m_hasMoved protected_oe property

protected bool m_hasMoved
Résultat bool

m_maxAP public_oe property

public int m_maxAP
Résultat int

m_maxHealth public_oe property

public int m_maxHealth
Résultat int

m_movementRange public_oe property

public int m_movementRange
Résultat int