C# Class HexGridModel, WoofVsMeow

Inheritance: MonoBehaviour
显示文件 Open project: HaoYuan90/WoofVsMeow Class Usage Examples

Public Properties

Property Type Description
m_center Vector2
m_col int
m_movementCost int
m_movementLeft int
m_prevNode GameObject
m_row int

Public Methods

Method 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

Method Description
SetMovementCost ( bool considerTerrains ) : void

Method Details

CanPass() public method

public CanPass ( int currentUnitControl, bool flying ) : bool
currentUnitControl int
flying bool
return bool

GetPositionOnMap() public method

public GetPositionOnMap ( ) : IntVector2,
return IntVector2,

Initialise() public method

public Initialise ( Vector2 center, int row, int col ) : void
center Vector2
row int
col int
return void

ResetGraphStateVars() public method

public ResetGraphStateVars ( bool considerTerrains ) : void
considerTerrains bool
return void

ToString() public method

public ToString ( ) : string
return string

UpdateEnemyBlockageCost() public method

public UpdateEnemyBlockageCost ( ) : void
return void

UpdateMovementLeft() public method

public UpdateMovementLeft ( GameObject prevNode, int costToReach ) : void
prevNode GameObject
costToReach int
return void

UpdateRangeLeft() public method

public UpdateRangeLeft ( GameObject prevNode, int newRange ) : void
prevNode GameObject
newRange int
return void

Property Details

m_center public_oe property

public Vector2 m_center
return Vector2

m_col public_oe property

public int m_col
return int

m_movementCost public_oe property

public int m_movementCost
return int

m_movementLeft public_oe property

public int m_movementLeft
return int

m_prevNode public_oe property

public GameObject m_prevNode
return GameObject

m_row public_oe property

public int m_row
return int