|
void | SetBounds (int _x, int _z, int _maxX, int _maxZ) |
|
bool | Contains (int dx, int dz) |
|
bool | Contains (Point p) |
|
Point | GetCenterPos () |
|
Point | GetRandomTopPos () |
|
Point | GetRandomRightPos () |
|
Point | GetRandomBottomPos () |
|
Point | GetRandomLeftPos () |
|
Point | GetTopPos (float rate=-1f) |
|
Point | GetRightPos (float rate=-1f) |
|
Point | GetBottomPos (float rate=-1f) |
|
Point | GetLeftPos (float rate=-1f) |
|
Point | GetRandomPoint () |
|
Point | GetSpawnPos (int x, int z, int maxX, int maxZ) |
|
bool | CanExpand (int a) |
|
void | Expand (int a) |
|
Point | GetSurface (int x, int z, bool walkable=true) |
|
Point | GetRandomSurface (int x, int z, int radius, bool walkable=true, bool allowWater=false) |
|
Point | GetRandomSurface (bool centered=false, bool walkable=true, bool allowWater=false) |
|
Point | GetRandomSpawnPos () |
|
Point | GetRandomEdge (int r=3) |
|
Point | GetRandomSpace (int width, int height, int tries=100) |
|
void | ForeachCell (Action< Cell > action) |
|
void | ForeachPoint (Action< Point > action) |
|
void | ForeachXYZ (Action< int, int > action) |
|
Definition at line 6 of file MapBounds.cs.
◆ CanExpand()
bool MapBounds.CanExpand |
( |
int | a | ) |
|
◆ Contains() [1/2]
bool MapBounds.Contains |
( |
int | dx, |
|
|
int | dz ) |
◆ Contains() [2/2]
bool MapBounds.Contains |
( |
Point | p | ) |
|
◆ Expand()
void MapBounds.Expand |
( |
int | a | ) |
|
◆ ForeachCell()
void MapBounds.ForeachCell |
( |
Action< Cell > | action | ) |
|
◆ ForeachPoint()
void MapBounds.ForeachPoint |
( |
Action< Point > | action | ) |
|
◆ ForeachXYZ()
void MapBounds.ForeachXYZ |
( |
Action< int, int > | action | ) |
|
◆ GetBottomPos()
Point MapBounds.GetBottomPos |
( |
float | rate = -1f | ) |
|
◆ GetCenterPos()
Point MapBounds.GetCenterPos |
( |
| ) |
|
◆ GetLeftPos()
Point MapBounds.GetLeftPos |
( |
float | rate = -1f | ) |
|
◆ GetRandomBottomPos()
Point MapBounds.GetRandomBottomPos |
( |
| ) |
|
◆ GetRandomEdge()
Point MapBounds.GetRandomEdge |
( |
int | r = 3 | ) |
|
◆ GetRandomLeftPos()
Point MapBounds.GetRandomLeftPos |
( |
| ) |
|
◆ GetRandomPoint()
Point MapBounds.GetRandomPoint |
( |
| ) |
|
◆ GetRandomRightPos()
Point MapBounds.GetRandomRightPos |
( |
| ) |
|
◆ GetRandomSpace()
Point MapBounds.GetRandomSpace |
( |
int | width, |
|
|
int | height, |
|
|
int | tries = 100 ) |
◆ GetRandomSpawnPos()
Point MapBounds.GetRandomSpawnPos |
( |
| ) |
|
◆ GetRandomSurface() [1/2]
Point MapBounds.GetRandomSurface |
( |
bool | centered = false, |
|
|
bool | walkable = true, |
|
|
bool | allowWater = false ) |
◆ GetRandomSurface() [2/2]
Point MapBounds.GetRandomSurface |
( |
int | x, |
|
|
int | z, |
|
|
int | radius, |
|
|
bool | walkable = true, |
|
|
bool | allowWater = false ) |
◆ GetRandomTopPos()
Point MapBounds.GetRandomTopPos |
( |
| ) |
|
◆ GetRightPos()
Point MapBounds.GetRightPos |
( |
float | rate = -1f | ) |
|
◆ GetSpawnPos()
Point MapBounds.GetSpawnPos |
( |
int | x, |
|
|
int | z, |
|
|
int | maxX, |
|
|
int | maxZ ) |
◆ GetSurface()
Point MapBounds.GetSurface |
( |
int | x, |
|
|
int | z, |
|
|
bool | walkable = true ) |
◆ GetTopPos()
Point MapBounds.GetTopPos |
( |
float | rate = -1f | ) |
|
◆ SetBounds()
void MapBounds.SetBounds |
( |
int | _x, |
|
|
int | _z, |
|
|
int | _maxX, |
|
|
int | _maxZ ) |
◆ maxX
◆ maxZ
◆ Size
◆ CenterX
◆ CenterZ
◆ Height
◆ Width
The documentation for this class was generated from the following file: