Property | Type | Description | |
---|---|---|---|
_center | Vector3 | ||
_colorAccessible | bool | ||
_height | int | ||
_reset | bool | ||
_width | int |
Method | Description | |
---|---|---|
AddPowerShard ( PowerShard, shard ) : void | ||
ApplyPowerShards ( ) : void | ||
ColorAccessibleHexagons ( Character, player ) : void | ||
CreateHexagone ( int x, int y, bool replace = false ) : Hexagon, |
Creates the (x,y) hexagone.
|
|
FindPathForCharacter ( Character, character, Hexagon, hexagon ) : bool |
Register the path a character can follow later. The path is registered in character._pathToFollow
|
|
GetGrid ( ) : List
|
||
GetHexagone ( int x, int y ) : Hexagon, |
Gets the (x,y) hexagone.
|
|
GetRange ( Range, r, Hexagon, source ) : List |
||
PlayBoard ( int width, int height ) : System.Collections.Generic |
Initializes a new instance of the PlayBoard class.
|
|
RemoveHexagone ( int x, int y ) : Hexagon, |
Removes and return the (x,y) hexagone.
|
|
RemovePowerShard ( PowerShard, shard ) : void | ||
ResetBoard ( ) : void | ||
SetHexagone ( Hexagon, hex, bool replace = true ) : bool |
Sets the hexagone.
|
|
UpdatePowerShards ( ) : void | ||
fieldOfView ( Hexagon, source, Hexagon, destination ) : bool |
public AddPowerShard ( PowerShard, shard ) : void | ||
shard | PowerShard, | |
return | void |
public ColorAccessibleHexagons ( Character, player ) : void | ||
player | Character, | |
return | void |
public CreateHexagone ( int x, int y, bool replace = false ) : Hexagon, | ||
x | int | The x coordinate. |
y | int | The y coordinate. |
replace | bool | If set to |
return | Hexagon, |
public FindPathForCharacter ( Character, character, Hexagon, hexagon ) : bool | ||
character | Character, | The character to move |
hexagon | Hexagon, | The hexagon the character will try to reach |
return | bool |
public GetHexagone ( int x, int y ) : Hexagon, | ||
x | int | The x coordinate. |
y | int | The y coordinate. |
return | Hexagon, |
public GetRange ( Range, r, Hexagon, source ) : List |
||
r | Range, | |
source | Hexagon, | |
return | List |
public PlayBoard ( int width, int height ) : System.Collections.Generic | ||
width | int | Width of board |
height | int | Height of board |
return | System.Collections.Generic |
public RemoveHexagone ( int x, int y ) : Hexagon, | ||
x | int | The x coordinate. |
y | int | The y coordinate. |
return | Hexagon, |
public RemovePowerShard ( PowerShard, shard ) : void | ||
shard | PowerShard, | |
return | void |
public SetHexagone ( Hexagon, hex, bool replace = true ) : bool | ||
hex | Hexagon, | Hex. |
replace | bool | If set to |
return | bool |
public fieldOfView ( Hexagon, source, Hexagon, destination ) : bool | ||
source | Hexagon, | |
destination | Hexagon, | |
return | bool |