Elin Modding Docs Doc
Loading...
Searching...
No Matches
MapBounds Class Reference
Inheritance diagram for MapBounds:
EClass Map

Public Member Functions

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)
 

Public Attributes

int x
 
int z
 
int maxX
 
int maxZ
 
int Size
 

Properties

int CenterX [get]
 
int CenterZ [get]
 
int Width [get]
 
int Height [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 6 of file MapBounds.cs.

Member Function Documentation

◆ CanExpand()

bool MapBounds.CanExpand ( int a)

Definition at line 167 of file MapBounds.cs.

◆ Contains() [1/2]

bool MapBounds.Contains ( int dx,
int dz )

Definition at line 58 of file MapBounds.cs.

◆ Contains() [2/2]

bool MapBounds.Contains ( Point p)

Definition at line 64 of file MapBounds.cs.

◆ Expand()

void MapBounds.Expand ( int a)

Definition at line 173 of file MapBounds.cs.

◆ ForeachCell()

void MapBounds.ForeachCell ( Action< Cell > action)

Definition at line 312 of file MapBounds.cs.

◆ ForeachPoint()

void MapBounds.ForeachPoint ( Action< Point > action)

Definition at line 325 of file MapBounds.cs.

◆ ForeachXYZ()

void MapBounds.ForeachXYZ ( Action< int, int > action)

Definition at line 338 of file MapBounds.cs.

◆ GetBottomPos()

Point MapBounds.GetBottomPos ( float rate = -1f)

Definition at line 112 of file MapBounds.cs.

◆ GetCenterPos()

Point MapBounds.GetCenterPos ( )

Definition at line 70 of file MapBounds.cs.

◆ GetLeftPos()

Point MapBounds.GetLeftPos ( float rate = -1f)

Definition at line 118 of file MapBounds.cs.

◆ GetRandomBottomPos()

Point MapBounds.GetRandomBottomPos ( )

Definition at line 88 of file MapBounds.cs.

◆ GetRandomEdge()

Point MapBounds.GetRandomEdge ( int r = 3)

Definition at line 252 of file MapBounds.cs.

◆ GetRandomLeftPos()

Point MapBounds.GetRandomLeftPos ( )

Definition at line 94 of file MapBounds.cs.

◆ GetRandomPoint()

Point MapBounds.GetRandomPoint ( )

Definition at line 124 of file MapBounds.cs.

◆ GetRandomRightPos()

Point MapBounds.GetRandomRightPos ( )

Definition at line 82 of file MapBounds.cs.

◆ GetRandomSpace()

Point MapBounds.GetRandomSpace ( int width,
int height,
int tries = 100 )

Definition at line 278 of file MapBounds.cs.

◆ GetRandomSpawnPos()

Point MapBounds.GetRandomSpawnPos ( )

Definition at line 238 of file MapBounds.cs.

◆ GetRandomSurface() [1/2]

Point MapBounds.GetRandomSurface ( bool centered = false,
bool walkable = true,
bool allowWater = false )

Definition at line 224 of file MapBounds.cs.

◆ GetRandomSurface() [2/2]

Point MapBounds.GetRandomSurface ( int x,
int z,
int radius,
bool walkable = true,
bool allowWater = false )

Definition at line 210 of file MapBounds.cs.

◆ GetRandomTopPos()

Point MapBounds.GetRandomTopPos ( )

Definition at line 76 of file MapBounds.cs.

◆ GetRightPos()

Point MapBounds.GetRightPos ( float rate = -1f)

Definition at line 106 of file MapBounds.cs.

◆ GetSpawnPos()

Point MapBounds.GetSpawnPos ( int x,
int z,
int maxX,
int maxZ )

Definition at line 130 of file MapBounds.cs.

◆ GetSurface()

Point MapBounds.GetSurface ( int x,
int z,
bool walkable = true )

Definition at line 198 of file MapBounds.cs.

◆ GetTopPos()

Point MapBounds.GetTopPos ( float rate = -1f)

Definition at line 100 of file MapBounds.cs.

◆ SetBounds()

void MapBounds.SetBounds ( int _x,
int _z,
int _maxX,
int _maxZ )

Definition at line 49 of file MapBounds.cs.

Member Data Documentation

◆ maxX

int MapBounds.maxX

Definition at line 359 of file MapBounds.cs.

◆ maxZ

int MapBounds.maxZ

Definition at line 363 of file MapBounds.cs.

◆ Size

int MapBounds.Size

Definition at line 367 of file MapBounds.cs.

◆ x

int MapBounds.x

Definition at line 351 of file MapBounds.cs.

◆ z

int MapBounds.z

Definition at line 355 of file MapBounds.cs.

Property Documentation

◆ CenterX

int MapBounds.CenterX
get

Definition at line 10 of file MapBounds.cs.

◆ CenterZ

int MapBounds.CenterZ
get

Definition at line 20 of file MapBounds.cs.

◆ Height

int MapBounds.Height
get

Definition at line 40 of file MapBounds.cs.

◆ Width

int MapBounds.Width
get

Definition at line 30 of file MapBounds.cs.


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