|
XposeCraft
1.0.1-rc1
Public API for Arena Gameplay
|
Map position defined by X and Y coordinates. More...
Public Member Functions | |
| Position (int pointLocation) | |
| Create the Position representing an internal grid point location on the map. More... | |
| Position (int x, int y) | |
| Create the Position from X and Y coordinates. More... | |
| Path | PathFrom (Position position) |
| Creates a Path representation between two Positions. More... | |
| bool | IsAvailable () |
| Describes whether the Position is available for movement or placement purposes. More... | |
| Position | FindNearestAvailable () |
| Finds a nearest available Position. More... | |
| bool | IsValidPlacement (BuildingType buildingType) |
| Checks whether a Building of the chosen type can be placed on the Position. More... | |
| bool | IsFogUncovered () |
| Checks whether the Fog of War is uncovered on this position, making everything there visible. More... | |
| override bool | Equals (object obj) |
| bool | Equals (Position position) |
| override int | GetHashCode () |
Static Public Member Functions | |
| static bool | operator== (Position a, Position b) |
| static bool | operator!= (Position a, Position b) |
Properties | |
| int | X [get] |
| Representing X coordinate. More... | |
| int | Y [get] |
| Representing Y coordinate. More... | |
| int | PointLocation [get] |
| Internal grid point location on the map. More... | |
| Vector3 | Location [get] |
| Internal Vector3 representation. More... | |
Map position defined by X and Y coordinates.
| XposeCraft.Game.Position.Position | ( | int | pointLocation | ) |
Create the Position representing an internal grid point location on the map.
| pointLocation | Internal grid point location on the map. |
| ArgumentException | Thrown when the location is out of bounds within the map. |
| XposeCraft.Game.Position.Position | ( | int | x, |
| int | y | ||
| ) |
Create the Position from X and Y coordinates.
| x | X coordinate. |
| y | Y coordinate. |
| ArgumentException | Thrown when a coordinate is out of bounds within the map. |
| override bool XposeCraft.Game.Position.Equals | ( | object | obj | ) |
| bool XposeCraft.Game.Position.Equals | ( | Position | position | ) |
| Position XposeCraft.Game.Position.FindNearestAvailable | ( | ) |
| override int XposeCraft.Game.Position.GetHashCode | ( | ) |
| bool XposeCraft.Game.Position.IsAvailable | ( | ) |
| bool XposeCraft.Game.Position.IsFogUncovered | ( | ) |
Checks whether the Fog of War is uncovered on this position, making everything there visible.
| bool XposeCraft.Game.Position.IsValidPlacement | ( | BuildingType | buildingType | ) |
|
getprotected |
Internal Vector3 representation.
|
get |
Internal grid point location on the map.
|
get |
Representing X coordinate.
|
get |
Representing Y coordinate.