Elin Decompiled Documentation EA 23.102 Nightly
|
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] |
![]() | |
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 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 Core | core |
Definition at line 5 of file MapBounds.cs.
|
inline |
Definition at line 138 of file MapBounds.cs.
References EClass._map, maxZ, Size, x, and z.
|
inline |
Definition at line 38 of file MapBounds.cs.
References maxX, maxZ, x, and z.
Referenced by UIMapPreview._RefreshPoint(), PartialMap.Apply(), Contains(), Point.ForeachNearestPoint(), Point.GetNearestPoint(), and AM_MoveInstalled.HitTest().
|
inline |
|
inline |
|
inline |
Definition at line 279 of file MapBounds.cs.
References EClass._map, Map.cells, maxX, maxZ, x, and z.
Referenced by Map.AddBackerTree(), QuestVernis.CanUpdateOnTalk(), FactionBranch.DailyOutcome(), HomeResourceNature.GetDestValue(), Zone.GetElectricity(), Zone.GetSoilCost(), QuestVernis.GetTextProgress(), Zone.GrowPlants(), Zone.RainWater(), and Zone.RefreshElectricity().
|
inline |
Definition at line 291 of file MapBounds.cs.
References maxX, maxZ, Point.Set(), x, and z.
Referenced by TaskWater.ListPoints().
|
inline |
|
inline |
Definition at line 87 of file MapBounds.cs.
References GetSpawnPos(), maxX, x, and z.
Referenced by Zone.GetSpawnPos().
|
inline |
Definition at line 52 of file MapBounds.cs.
References CenterX, and CenterZ.
Referenced by ZoneUtil.AddBandits(), Map.AddCardOnActivate(), Zone.AddGlobalCharasOnActivate(), ZoneUtil.AddMerchant(), ZonePreEnterBout.Execute(), CoreDebug.Fix_LostCore(), BaseGameScreen.FocusPC(), FactionBranch.GetMailBoxPos(), GetRandomSpawnPos(), GetRandomSurface(), Zone.GetRandomVisitPos(), Zone.GetSpawnPos(), FactionBranch.OnActivateZone(), ZoneEventDefenseGame.OnVisit(), ZoneEventHarvest.OnVisit(), and Chara.Revive().
|
inline |
Definition at line 92 of file MapBounds.cs.
References GetSpawnPos(), maxZ, x, and z.
Referenced by Zone.GetSpawnPos().
|
inline |
|
inline |
Definition at line 221 of file MapBounds.cs.
References GetSurface(), Height, Point.IsValid, maxX, maxZ, EClass.rnd(), Size, Width, x, and z.
Referenced by ZoneEventQuest.Spawn(), and ZoneEventQuest.SpawnBoss().
|
inline |
|
inline |
Definition at line 97 of file MapBounds.cs.
References Height, EClass.rnd(), Width, x, and z.
Referenced by Zone.ClaimZone(), FactionBranch.DailyOutcome(), Region.GetRandomPoint(), Zone.GetRandomVisitPos(), AIWork_Clean.OnPerformWork(), ZoneEventMusic.OnVisit(), Zone.SpawnLostItems(), and Zone.TryGenerateOre().
|
inline |
|
inline |
Definition at line 246 of file MapBounds.cs.
References Point.cell, Debug, Cell.HasZoneStairs(), Point.IsBlocked, maxX, maxZ, EClass.rnd(), Point.Set(), x, Point.x, z, and Point.z.
Referenced by Zone.TryGenerateShrine().
|
inline |
Definition at line 208 of file MapBounds.cs.
References EClass._map, Algorithms.WeightCell.blocked, Point.cell, GetCenterPos(), Point.GetNearestPoint(), Map.GetRandomPoint(), Point.IsValid, Cell.light, and Cell.room.
Referenced by Zone_DungeonPuppy.OnGenerateMap().
|
inline |
Definition at line 195 of file MapBounds.cs.
References CenterX, CenterZ, GetSurface(), Height, Point.IsValid, Point.IsWater, EClass.rnd(), Width, x, and z.
|
inline |
Definition at line 182 of file MapBounds.cs.
References EClass._map, GetCenterPos(), GetSurface(), Point.IsValid, Point.IsWater, EClass.rnd(), x, and z.
Referenced by Crawler.Crawl(), EffectMeteor.Create(), Zone.Generate(), FactionBranch.GenerateGarbage(), Zone_SnowGrave.GenerateGrave(), Zone.GetRandomVisitPos(), Zone.GetSpawnPos(), ZoneEventSiege.OnFirstTick(), TraitGiftNewYear.OnUse(), Zone_Dungeon.PlaceRail(), AIWork_Chore.SetDestPos(), Zone.TryAddThingInSpot< T >(), and Zone.TrySpawnFollower().
|
inline |
|
inline |
Definition at line 82 of file MapBounds.cs.
References GetSpawnPos(), maxX, maxZ, and z.
Referenced by Zone.GetSpawnPos().
|
inline |
Definition at line 102 of file MapBounds.cs.
References Card.dir, maxX, maxZ, Point.Set(), Point.Things, Card.trait, x, Point.x, z, and Point.z.
Referenced by GetBottomPos(), GetLeftPos(), GetRightPos(), and GetTopPos().
|
inline |
Definition at line 171 of file MapBounds.cs.
References Algorithms.WeightCell.blocked, Point.cell, Point.Clamp(), Point.Invalid, x, and z.
Referenced by Map.GetRandomEdge(), GetRandomEdge(), and GetRandomSurface().
|
inline |
Definition at line 77 of file MapBounds.cs.
References GetSpawnPos(), maxX, maxZ, and x.
Referenced by Zone.GetSpawnPos().
|
inline |
Definition at line 30 of file MapBounds.cs.
References maxX, maxZ, x, and z.
Referenced by Map.Load(), and Map.SetBounds().
int MapBounds.maxX |
Definition at line 14 of file MapBounds.cs.
Referenced by Point.Clamp(), Contains(), Map.CreateNew(), BaseTileMap.DrawTile(), Expand(), ForeachCell(), ForeachPoint(), ForeachXYZ(), GetBottomPos(), GetRandomBottomPos(), GetRandomEdge(), GetRandomRightPos(), GetRandomSpace(), GetRandomTopPos(), GetRightPos(), GetSpawnPos(), GetTopPos(), Map.Load(), Player.OnExitBorder(), Zone_TestRoom.OnGenerateMap(), MapGen.OnGenerateTerrain(), Map.Resize(), SetBounds(), Map.SetBounds(), Map.Shift(), and AI_Goto.TryGoTo().
int MapBounds.maxZ |
Definition at line 17 of file MapBounds.cs.
Referenced by CanExpand(), Point.Clamp(), Contains(), Map.CreateNew(), BaseTileMap.DrawTile(), Expand(), ForeachCell(), ForeachPoint(), ForeachXYZ(), GetLeftPos(), GetRandomEdge(), GetRandomLeftPos(), GetRandomRightPos(), GetRandomSpace(), GetRandomTopPos(), GetRightPos(), GetSpawnPos(), GetTopPos(), Zone_TestRoom.OnGenerateMap(), MapGen.OnGenerateTerrain(), Cell.Refresh(), Map.Resize(), SetBounds(), Map.SetBounds(), Map.Shift(), and AI_Goto.TryGoTo().
int MapBounds.Size |
Definition at line 20 of file MapBounds.cs.
Referenced by UIMapPreview._RefreshPoint(), Zone.Activate(), Map.AddDecal(), ZoneInspector.ResizeUtil.Apply(), TraitSpotExit.CanBuiltAt(), CanExpand(), Point.Clamp(), Crawler.Crawl(), Map.CreateNew(), BaseTileMap.Draw(), TileMapElona.Draw(), Expand(), BaseGameScreen.FocusCenter(), Map.ForeachCell(), Map.ForeachNeighbor(), Map.ForeachPoint(), Map.ForeachSphere(), Map.ForeachXYZ(), MapGen.GenerateTerrain(), Map.GetCell(), Point.GetHashCode(), TileTypeWallHang.GetMountHeight(), Map.GetRandomEdge(), GetRandomEdge(), Point.GetRandomNeighbor(), Los.IsBlocked(), GenBounds.IsEmpty(), GenBounds.ListEmptyPoint(), Map.Load(), MapGen.MakeRiver(), MapGen.OnGenerateTerrain(), Map.OnSetBlockOrDoor(), Fov.Perform(), Map.Quake(), Map.QuickRefreshTile(), Room.Refresh(), Map.RefreshAllTiles(), Map.RefreshNeighborTiles(), BaseGameScreen.RefreshPosition(), GameScreenElona.RefreshPosition(), Map.Reset(), Map.Resize(), Map.RevealAll(), RecipeUpdater.RunRecipe(), Map.Save(), Point.Set(), Lot.SetBaseRoom(), Map.SetBounds(), UIMapPreview.SetMap(), Map.SetReference(), Fov.SetVisible(), Map.SetZone(), Map.Shift(), LayerCraftFloat.ShowContextMenu(), and Map.TryAddRoom().
int MapBounds.x |
Definition at line 8 of file MapBounds.cs.
Referenced by Map._AddCard(), Map._ValidateInstalled(), Map.AddDecal(), Map.Burn(), CanExpand(), Point.Clamp(), Contains(), GenBounds.Create(), Map.CreateNew(), Map.DestroyBlock(), BaseTileMap.DrawTile(), Expand(), ForeachCell(), ForeachPoint(), ForeachXYZ(), GetBottomPos(), GetLeftPos(), Map.GetRampDir(), GetRandomBottomPos(), GetRandomEdge(), GetRandomLeftPos(), GetRandomPoint(), GetRandomSpace(), GetRandomSurface(), GetRandomTopPos(), Zone.GetSpawnPos(), GetSpawnPos(), GetSurface(), GetTopPos(), Map.Load(), Map.ModFire(), Map.ModLiquid(), Map.OnCardAddedToZone(), Player.OnExitBorder(), Zone_TestRoom.OnGenerateMap(), MapGen.OnGenerateTerrain(), Map.OnSetBlockOrDoor(), Map.QuickRefreshTile(), Map.RefreshFOV(), Map.RefreshNeighborTiles(), Map.RefreshSingleTile(), Map.Resize(), Map.SetBlock(), Map.SetBlockDir(), SetBounds(), Map.SetBounds(), Map.SetBridge(), Map.SetDecal(), Map.SetEffect(), Map.SetFloor(), Map.SetLiquid(), UIMapPreview.SetMap(), Map.SetObj(), Map.SetRoofBlock(), Map.SetSeen(), Map.Shift(), Map.TryAddRoom(), AI_Goto.TryGoTo(), and Map.TryRemoveRoom().
int MapBounds.z |
Definition at line 11 of file MapBounds.cs.
Referenced by Map._AddCard(), Map.AddDecal(), Map.Burn(), CanExpand(), Point.Clamp(), Contains(), GenBounds.Create(), Map.CreateNew(), Map.DestroyBlock(), BaseTileMap.DrawTile(), Expand(), ForeachCell(), ForeachPoint(), ForeachXYZ(), GetBottomPos(), GetLeftPos(), Map.GetRampDir(), GetRandomBottomPos(), GetRandomEdge(), GetRandomLeftPos(), GetRandomPoint(), GetRandomRightPos(), GetRandomSpace(), GetRandomSurface(), GetRightPos(), GetSpawnPos(), GetSurface(), Map.Load(), Map.ModFire(), Map.ModLiquid(), Map.OnCardAddedToZone(), Player.OnExitBorder(), Zone_TestRoom.OnGenerateMap(), MapGen.OnGenerateTerrain(), Map.OnSetBlockOrDoor(), Map.QuickRefreshTile(), Map.RefreshFOV(), Map.RefreshNeighborTiles(), Map.RefreshSingleTile(), Map.Resize(), Map.SetBlock(), Map.SetBlockDir(), SetBounds(), Map.SetBounds(), Map.SetBridge(), Map.SetDecal(), Map.SetEffect(), Map.SetFloor(), Map.SetLiquid(), UIMapPreview.SetMap(), Map.SetObj(), Map.SetRoofBlock(), Map.SetSeen(), Map.Shift(), Map.TryAddRoom(), AI_Goto.TryGoTo(), and Map.TryRemoveRoom().
|
get |
Definition at line 22 of file MapBounds.cs.
Referenced by GetCenterPos(), and GetRandomSurface().
|
get |
Definition at line 24 of file MapBounds.cs.
Referenced by GetCenterPos(), and GetRandomSurface().
|
get |
Definition at line 28 of file MapBounds.cs.
Referenced by GetRandomEdge(), GetRandomPoint(), GetRandomSurface(), Player.OnExitBorder(), AM_Cinema.OnUpdateInput(), UIMapPreview.SetMap(), and Zone.TryGenerateOre().
|
get |
Definition at line 26 of file MapBounds.cs.
Referenced by GenBounds.Create(), GetRandomEdge(), GetRandomPoint(), GetRandomSurface(), Player.OnExitBorder(), AM_Cinema.OnUpdateInput(), ActEffect.Proc(), UIMapPreview.SetMap(), and Zone.TryGenerateOre().