Beamable SDK
Public Member Functions | Public Attributes | List of all members
BattleGrid Class Reference
Inheritance diagram for BattleGrid:
Inheritance graph
[legend]
Collaboration diagram for BattleGrid:
Collaboration graph
[legend]

Public Member Functions

IEnumerable< Vector3Int > Neighbors (Vector3Int origin)
 
bool IsOnBoard (Vector3Int gridPosition)
 
bool OccupiedByPlayer (Vector3Int gridPosition, List< GamePlayer > players)
 
bool IsAdjacent (Vector3Int a, Vector3Int b)
 
Direction GetDirection (Vector3Int origin, Vector3Int target)
 
Vector3Int InDirection (Vector3Int gridPosition, Direction direction)
 

Public Attributes

readonly Vector3Int[] START_POSITIONS
 
Grid grid
 
Tilemap tileMap
 

Member Data Documentation

◆ START_POSITIONS

readonly Vector3Int [] BattleGrid.START_POSITIONS
Initial value:
=
{
new Vector3Int(-3, 4, 0),
new Vector3Int(3, 4, 0),
new Vector3Int(-3, -4, 0),
new Vector3Int(3, -4, 0),
}

The documentation for this class was generated from the following file: