C# Class HexGridModel, WoofVsMeow

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

Méthodes publiques

Свойство Type Description
m_center Vector2
m_col int
m_movementCost int
m_movementLeft int
m_prevNode GameObject
m_row int

Méthodes publiques

Méthode Description
CanPass ( int currentUnitControl, bool flying ) : bool
GetPositionOnMap ( ) : IntVector2,
Initialise ( Vector2 center, int row, int col ) : void
ResetGraphStateVars ( bool considerTerrains ) : void
ToString ( ) : string
UpdateEnemyBlockageCost ( ) : void
UpdateMovementLeft ( GameObject prevNode, int costToReach ) : void
UpdateRangeLeft ( GameObject prevNode, int newRange ) : void

Private Methods

Méthode Description
SetMovementCost ( bool considerTerrains ) : void

Method Details

CanPass() public méthode

public CanPass ( int currentUnitControl, bool flying ) : bool
currentUnitControl int
flying bool
Résultat bool

GetPositionOnMap() public méthode

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

Initialise() public méthode

public Initialise ( Vector2 center, int row, int col ) : void
center Vector2
row int
col int
Résultat void

ResetGraphStateVars() public méthode

public ResetGraphStateVars ( bool considerTerrains ) : void
considerTerrains bool
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

UpdateEnemyBlockageCost() public méthode

public UpdateEnemyBlockageCost ( ) : void
Résultat void

UpdateMovementLeft() public méthode

public UpdateMovementLeft ( GameObject prevNode, int costToReach ) : void
prevNode GameObject
costToReach int
Résultat void

UpdateRangeLeft() public méthode

public UpdateRangeLeft ( GameObject prevNode, int newRange ) : void
prevNode GameObject
newRange int
Résultat void

Property Details

m_center public_oe property

public Vector2 m_center
Résultat Vector2

m_col public_oe property

public int m_col
Résultat int

m_movementCost public_oe property

public int m_movementCost
Résultat int

m_movementLeft public_oe property

public int m_movementLeft
Résultat int

m_prevNode public_oe property

public GameObject m_prevNode
Résultat GameObject

m_row public_oe property

public int m_row
Résultat int