Elin Modding Docs Doc
Loading...
Searching...
No Matches
Point Class Reference
Inheritance diagram for Point:
EClass LogicalPoint LogicalFire

Public Member Functions

bool Within (int _x, int _z, int _w, int _h)
 
Chara FirstVisibleChara ()
 
bool HasRoomOrArea (BaseArea a)
 
bool IsPublicSpace ()
 
 Point (Point p)
 
 Point (int _x, int _z)
 
 Point (int _index)
 
Point Copy ()
 
Copy< T > ()
 
Point Set (int _x, int _z)
 
Point Set (int index)
 
Point Set (Point point)
 
override string ToString ()
 
void Set (Vector3 v)
 
ref Vector3 PositionAuto ()
 
ref Vector3 Position (int height)
 
ref Vector3 Position ()
 
ref Vector3 PositionTopdown ()
 
ref Vector3 PositionTopdownTreasure ()
 
ref Vector3 PositionCenter ()
 
Quaternion GetRotation (Point to)
 
unsafe float GetAngle (Point to)
 
float GetAngle2 (Point to)
 
Point GetNearestPoint (bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false)
 
bool ForeachNearestPoint (Func< Point, bool > endFunc, bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false)
 
Point GetRandomNeighbor ()
 
Point GetRandomPoint (int radius, bool requireLos=true, bool allowChara=true, bool allowBlocked=false, int tries=100)
 
Point GetPointTowards (Point dest)
 
void TalkWitnesses (Chara criminal, string idTalk, int radius=4, WitnessType type=WitnessType.everyone, Func< Chara, bool > talkIf=null, int chance=3)
 
List< CharaListWitnesses (Chara criminal, int radius=4, WitnessType type=WitnessType.crime, Chara target=null)
 
bool TryWitnessCrime (Chara criminal, Chara target=null, int radius=4, Func< Chara, bool > funcWitness=null)
 
void CallGuard (Chara criminal, Chara caller)
 
void SetBlock (int idMat=0, int idBlock=0)
 
void SetFloor (int idMat=0, int idFloor=0)
 
void SetObj (int id=0, int value=1, int dir=0)
 
void ModFire (int value)
 
void Plow ()
 
bool Equals (int _x, int _z)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
int Distance (Point p)
 
int Distance (int tx, int tz)
 
bool IsBlockByHeight (Point p)
 
Point Clamp (bool useBounds=false)
 
List< CardListCards (bool includeMasked=false)
 
List< CardListVisibleCards ()
 
Card FindAttackTarget ()
 
FindThing< T > ()
 
List< CardListThings< T > (bool onlyInstalled=true)
 
List< CharaListCharas ()
 
List< CharaListVisibleCharas ()
 
List< CharaListCharasInNeighbor (Func< Chara, bool > func)
 
List< CharaListCharasInRadius (Chara cc, int dist, Func< Chara, bool > func)
 
GetInstalled< T > ()
 
Effect PlayEffect (string id)
 
unsafe SoundSource PlaySound (string id, bool synced=true, float v=1f, bool spatial=true)
 
void RefreshNeighborTiles ()
 
void RefreshTile ()
 
bool HasNonHomeProperty (Thing exclude=null)
 
void Animate (AnimeID id, bool animeBlock=false)
 
RenderParam ApplyAnime (RenderParam p)
 
Vector3 ApplyAnime (ref Vector3 p)
 
List< IInspectListInspectorTargets ()
 
void ForeachMultiSize (int w, int h, Action< Point, bool > action)
 
void ForeachNeighbor (Action< Point > action, bool diagonal=true)
 
Point ToRegionPos ()
 

Static Public Member Functions

static Point GetShared (int x, int z)
 
- 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)
 

Public Attributes

int x
 
int z
 

Static Public Attributes

static readonly XY[] Surrounds
 
static Vector3 fixedPos
 
static Point shared = new Point()
 
static Point shared2 = new Point()
 
static Point shared3 = new Point()
 
static Map map
 
static Point Invalid
 
static Point Zero = new Point()
 
static BaseGameScreen _screen
 
- Static Public Attributes inherited from EClass
static Core core
 

Properties

int index [get]
 
Cell cell [get]
 
SourceMaterial.Row matRoofBlock [get]
 
SourceMaterial.Row matBlock [get]
 
SourceMaterial.Row matFloor [get]
 
SourceMaterial.Row matBridge [get]
 
SourceBlock.Row sourceRoofBlock [get]
 
SourceBlock.Row sourceBlock [get]
 
SourceFloor.Row sourceFloor [get]
 
SourceFloor.Row sourceBridge [get]
 
SourceObj.Row sourceObj [get]
 
CellDetail detail [get]
 
Area area [get]
 
Point Front [get]
 
GrowSystem growth [get]
 
int eloX [get]
 
int eloY [get]
 
bool HasDesignation [get]
 
bool HasDirt [get]
 
bool IsValid [get, set]
 
bool IsInBounds [get]
 
bool IsInBoundsPlus [get]
 
bool IsFarmField [get]
 
bool IsWater [get]
 
bool HasRamp [get]
 
bool HasRail [get]
 
bool HasRampOrLadder [get]
 
bool HasObj [get]
 
bool HasDecal [get]
 
bool HasBlock [get]
 
bool HasMinableBlock [get]
 
bool HasWallOrFence [get]
 
bool HasWall [get]
 
bool HasFence [get]
 
bool HasNonWallBlock [get]
 
bool HasTaskBuild [get]
 
bool HasBlockRecipe [get]
 
bool HasFloor [get]
 
bool HasBridge [get]
 
bool IsSky [get]
 
bool HasArea [get]
 
bool HasChara [get]
 
bool HasThing [get]
 
bool HasMultipleChara [get]
 
Chara FirstChara [get]
 
Thing FirstThing [get]
 
Thing LastThing [get]
 
Thing Installed [get]
 
List< ThingThings [get]
 
List< CharaCharas [get]
 
bool IsSeen [get]
 
bool IsSync [get]
 
bool IsHidden [get]
 
bool IsBlocked [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]
 

Detailed Description

Definition at line 10 of file Point.cs.

Constructor & Destructor Documentation

◆ Point() [1/4]

Point.Point ( )

Definition at line 634 of file Point.cs.

◆ Point() [2/4]

Point.Point ( Point p)

Definition at line 639 of file Point.cs.

◆ Point() [3/4]

Point.Point ( int _x,
int _z )

Definition at line 646 of file Point.cs.

◆ Point() [4/4]

Point.Point ( int _index)

Definition at line 653 of file Point.cs.

Member Function Documentation

◆ Animate()

void Point.Animate ( AnimeID id,
bool animeBlock = false )

Definition at line 1461 of file Point.cs.

◆ ApplyAnime() [1/2]

Vector3 Point.ApplyAnime ( ref Vector3 p)

Definition at line 1503 of file Point.cs.

◆ ApplyAnime() [2/2]

RenderParam Point.ApplyAnime ( RenderParam p)

Definition at line 1487 of file Point.cs.

◆ CallGuard()

void Point.CallGuard ( Chara criminal,
Chara caller )

Definition at line 1079 of file Point.cs.

◆ Clamp()

Point Point.Clamp ( bool useBounds = false)

Definition at line 1181 of file Point.cs.

◆ Copy()

Point Point.Copy ( )

Definition at line 659 of file Point.cs.

◆ Copy< T >()

T Point.Copy< T > ( )
Type Constraints
T :Point 

Definition at line 665 of file Point.cs.

◆ Distance() [1/2]

int Point.Distance ( int tx,
int tz )

Definition at line 1169 of file Point.cs.

◆ Distance() [2/2]

int Point.Distance ( Point p)

Definition at line 1163 of file Point.cs.

◆ Equals() [1/2]

bool Point.Equals ( int _x,
int _z )

Definition at line 1135 of file Point.cs.

◆ Equals() [2/2]

override bool Point.Equals ( object obj)

Definition at line 1141 of file Point.cs.

◆ FindAttackTarget()

Card Point.FindAttackTarget ( )

Definition at line 1274 of file Point.cs.

◆ FindThing< T >()

T Point.FindThing< T > ( )
Type Constraints
T :Trait 

Definition at line 1287 of file Point.cs.

◆ FirstVisibleChara()

Chara Point.FirstVisibleChara ( )

Definition at line 498 of file Point.cs.

◆ ForeachMultiSize()

void Point.ForeachMultiSize ( int w,
int h,
Action< Point, bool > action )

Definition at line 1550 of file Point.cs.

◆ ForeachNearestPoint()

bool Point.ForeachNearestPoint ( Func< Point, bool > endFunc,
bool allowBlock = false,
bool allowChara = true,
bool allowInstalled = true,
bool ignoreCenter = false )

Definition at line 872 of file Point.cs.

◆ ForeachNeighbor()

void Point.ForeachNeighbor ( Action< Point > action,
bool diagonal = true )

Definition at line 1563 of file Point.cs.

◆ GetAngle()

unsafe float Point.GetAngle ( Point to)

Definition at line 796 of file Point.cs.

◆ GetAngle2()

float Point.GetAngle2 ( Point to)

Definition at line 803 of file Point.cs.

◆ GetHashCode()

override int Point.GetHashCode ( )

Definition at line 1157 of file Point.cs.

◆ GetInstalled< T >()

T Point.GetInstalled< T > ( )
Type Constraints
T :Trait 

Definition at line 1386 of file Point.cs.

◆ GetNearestPoint()

Point Point.GetNearestPoint ( bool allowBlock = false,
bool allowChara = true,
bool allowInstalled = true,
bool ignoreCenter = false )

Definition at line 810 of file Point.cs.

◆ GetPointTowards()

Point Point.GetPointTowards ( Point dest)

Definition at line 960 of file Point.cs.

◆ GetRandomNeighbor()

Point Point.GetRandomNeighbor ( )

Definition at line 934 of file Point.cs.

◆ GetRandomPoint()

Point Point.GetRandomPoint ( int radius,
bool requireLos = true,
bool allowChara = true,
bool allowBlocked = false,
int tries = 100 )

Definition at line 945 of file Point.cs.

◆ GetRotation()

Quaternion Point.GetRotation ( Point to)

Definition at line 790 of file Point.cs.

◆ GetShared()

static Point Point.GetShared ( int x,
int z )
static

Definition at line 13 of file Point.cs.

◆ HasNonHomeProperty()

bool Point.HasNonHomeProperty ( Thing exclude = null)

Definition at line 1444 of file Point.cs.

◆ HasRoomOrArea()

bool Point.HasRoomOrArea ( BaseArea a)

Definition at line 618 of file Point.cs.

◆ IsBlockByHeight()

bool Point.IsBlockByHeight ( Point p)

Definition at line 1175 of file Point.cs.

◆ IsPublicSpace()

bool Point.IsPublicSpace ( )

Definition at line 624 of file Point.cs.

◆ ListCards()

List< Card > Point.ListCards ( bool includeMasked = false)

Definition at line 1225 of file Point.cs.

◆ ListCharas()

List< Chara > Point.ListCharas ( )

Definition at line 1320 of file Point.cs.

◆ ListCharasInNeighbor()

List< Chara > Point.ListCharasInNeighbor ( Func< Chara, bool > func)

Definition at line 1351 of file Point.cs.

◆ ListCharasInRadius()

List< Chara > Point.ListCharasInRadius ( Chara cc,
int dist,
Func< Chara, bool > func )

Definition at line 1372 of file Point.cs.

◆ ListInspectorTargets()

List< IInspect > Point.ListInspectorTargets ( )

Definition at line 1516 of file Point.cs.

◆ ListThings< T >()

List< Card > Point.ListThings< T > ( bool onlyInstalled = true)
Type Constraints
T :Trait 

Definition at line 1303 of file Point.cs.

◆ ListVisibleCards()

List< Card > Point.ListVisibleCards ( )

Definition at line 1250 of file Point.cs.

◆ ListVisibleCharas()

List< Chara > Point.ListVisibleCharas ( )

Definition at line 1334 of file Point.cs.

◆ ListWitnesses()

List< Chara > Point.ListWitnesses ( Chara criminal,
int radius = 4,
WitnessType type = WitnessType::crime,
Chara target = null )

Definition at line 991 of file Point.cs.

◆ ModFire()

void Point.ModFire ( int value)

Definition at line 1112 of file Point.cs.

◆ PlayEffect()

Effect Point.PlayEffect ( string id)

Definition at line 1402 of file Point.cs.

◆ PlaySound()

unsafe SoundSource Point.PlaySound ( string id,
bool synced = true,
float v = 1f,
bool spatial = true )

Definition at line 1408 of file Point.cs.

◆ Plow()

void Point.Plow ( )

Definition at line 1118 of file Point.cs.

◆ Position() [1/2]

ref Vector3 Point.Position ( )

Definition at line 744 of file Point.cs.

◆ Position() [2/2]

ref Vector3 Point.Position ( int height)

Definition at line 731 of file Point.cs.

◆ PositionAuto()

ref Vector3 Point.PositionAuto ( )

Definition at line 721 of file Point.cs.

◆ PositionCenter()

ref Vector3 Point.PositionCenter ( )

Definition at line 774 of file Point.cs.

◆ PositionTopdown()

ref Vector3 Point.PositionTopdown ( )

Definition at line 754 of file Point.cs.

◆ PositionTopdownTreasure()

ref Vector3 Point.PositionTopdownTreasure ( )

Definition at line 764 of file Point.cs.

◆ RefreshNeighborTiles()

void Point.RefreshNeighborTiles ( )

Definition at line 1432 of file Point.cs.

◆ RefreshTile()

void Point.RefreshTile ( )

Definition at line 1438 of file Point.cs.

◆ Set() [1/4]

Point Point.Set ( int _x,
int _z )

Definition at line 673 of file Point.cs.

◆ Set() [2/4]

Point Point.Set ( int index)

Definition at line 681 of file Point.cs.

◆ Set() [3/4]

Point Point.Set ( Point point)

Definition at line 689 of file Point.cs.

◆ Set() [4/4]

void Point.Set ( Vector3 v)

Definition at line 710 of file Point.cs.

◆ SetBlock()

void Point.SetBlock ( int idMat = 0,
int idBlock = 0 )

Definition at line 1094 of file Point.cs.

◆ SetFloor()

void Point.SetFloor ( int idMat = 0,
int idFloor = 0 )

Definition at line 1100 of file Point.cs.

◆ SetObj()

void Point.SetObj ( int id = 0,
int value = 1,
int dir = 0 )

Definition at line 1106 of file Point.cs.

◆ TalkWitnesses()

void Point.TalkWitnesses ( Chara criminal,
string idTalk,
int radius = 4,
WitnessType type = WitnessType::everyone,
Func< Chara, bool > talkIf = null,
int chance = 3 )

Definition at line 975 of file Point.cs.

◆ ToRegionPos()

Point Point.ToRegionPos ( )

Definition at line 1583 of file Point.cs.

◆ ToString()

override string Point.ToString ( )

Definition at line 697 of file Point.cs.

◆ TryWitnessCrime()

bool Point.TryWitnessCrime ( Chara criminal,
Chara target = null,
int radius = 4,
Func< Chara, bool > funcWitness = null )

Definition at line 1049 of file Point.cs.

◆ Within()

bool Point.Within ( int _x,
int _z,
int _w,
int _h )

Definition at line 252 of file Point.cs.

Member Data Documentation

◆ _screen

BaseGameScreen Point._screen
static

Definition at line 1652 of file Point.cs.

◆ fixedPos

Vector3 Point.fixedPos
static

Definition at line 1617 of file Point.cs.

◆ Invalid

Point Point.Invalid
static
Initial value:
= new Point
{
IsValid = false
}
Definition Point.cs:11

Definition at line 1632 of file Point.cs.

◆ map

Map Point.map
static

Definition at line 1629 of file Point.cs.

◆ shared

Point Point.shared = new Point()
static

Definition at line 1620 of file Point.cs.

◆ shared2

Point Point.shared2 = new Point()
static

Definition at line 1623 of file Point.cs.

◆ shared3

Point Point.shared3 = new Point()
static

Definition at line 1626 of file Point.cs.

◆ Surrounds

readonly XY [] Point.Surrounds
static
Initial value:
= new XY[]
{
new XY(0, -1),
new XY(1, 0),
new XY(0, 1),
new XY(-1, 0)
}
Definition XY.cs:5

Definition at line 1608 of file Point.cs.

◆ x

int Point.x

Definition at line 1642 of file Point.cs.

◆ z

int Point.z

Definition at line 1646 of file Point.cs.

◆ Zero

Point Point.Zero = new Point()
static

Definition at line 1638 of file Point.cs.

Property Documentation

◆ area

Area Point.area
get

Definition at line 142 of file Point.cs.

◆ cell

Cell Point.cell
get

Definition at line 32 of file Point.cs.

◆ Charas

List<Chara> Point.Charas
get

Definition at line 569 of file Point.cs.

◆ detail

CellDetail Point.detail
get

Definition at line 132 of file Point.cs.

◆ eloX

int Point.eloX
get

Definition at line 177 of file Point.cs.

◆ eloY

int Point.eloY
get

Definition at line 187 of file Point.cs.

◆ FirstChara

Chara Point.FirstChara
get

Definition at line 484 of file Point.cs.

◆ FirstThing

Thing Point.FirstThing
get

Definition at line 515 of file Point.cs.

◆ Front

Point Point.Front
get

Definition at line 157 of file Point.cs.

◆ growth

GrowSystem Point.growth
get

Definition at line 167 of file Point.cs.

◆ HasArea

bool Point.HasArea
get

Definition at line 441 of file Point.cs.

◆ HasBlock

bool Point.HasBlock
get

Definition at line 329 of file Point.cs.

◆ HasBlockRecipe

bool Point.HasBlockRecipe
get

Definition at line 399 of file Point.cs.

◆ HasBridge

bool Point.HasBridge
get

Definition at line 421 of file Point.cs.

◆ HasChara

bool Point.HasChara
get

Definition at line 452 of file Point.cs.

◆ HasDecal

bool Point.HasDecal
get

Definition at line 319 of file Point.cs.

◆ HasDesignation

bool Point.HasDesignation
get

Definition at line 197 of file Point.cs.

◆ HasDirt

bool Point.HasDirt
get

Definition at line 208 of file Point.cs.

◆ HasFence

bool Point.HasFence
get

Definition at line 369 of file Point.cs.

◆ HasFloor

bool Point.HasFloor
get

Definition at line 411 of file Point.cs.

◆ HasMinableBlock

bool Point.HasMinableBlock
get

Definition at line 339 of file Point.cs.

◆ HasMultipleChara

bool Point.HasMultipleChara
get

Definition at line 474 of file Point.cs.

◆ HasNonWallBlock

bool Point.HasNonWallBlock
get

Definition at line 379 of file Point.cs.

◆ HasObj

bool Point.HasObj
get

Definition at line 309 of file Point.cs.

◆ HasRail

bool Point.HasRail
get

Definition at line 289 of file Point.cs.

◆ HasRamp

bool Point.HasRamp
get

Definition at line 279 of file Point.cs.

◆ HasRampOrLadder

bool Point.HasRampOrLadder
get

Definition at line 299 of file Point.cs.

◆ HasTaskBuild

bool Point.HasTaskBuild
get

Definition at line 389 of file Point.cs.

◆ HasThing

bool Point.HasThing
get

Definition at line 463 of file Point.cs.

◆ HasWall

bool Point.HasWall
get

Definition at line 359 of file Point.cs.

◆ HasWallOrFence

bool Point.HasWallOrFence
get

Definition at line 349 of file Point.cs.

◆ index

int Point.index
get

Definition at line 22 of file Point.cs.

◆ Installed

Thing Point.Installed
get

Definition at line 545 of file Point.cs.

◆ IsBlocked

bool Point.IsBlocked
get

Definition at line 609 of file Point.cs.

◆ IsFarmField

bool Point.IsFarmField
get

Definition at line 259 of file Point.cs.

◆ IsHidden

bool Point.IsHidden
get

Definition at line 599 of file Point.cs.

◆ IsInBounds

bool Point.IsInBounds
get

Definition at line 233 of file Point.cs.

◆ IsInBoundsPlus

bool Point.IsInBoundsPlus
get

Definition at line 243 of file Point.cs.

◆ IsSeen

bool Point.IsSeen
get

Definition at line 579 of file Point.cs.

◆ IsSky

bool Point.IsSky
get

Definition at line 431 of file Point.cs.

◆ IsSync

bool Point.IsSync
get

Definition at line 589 of file Point.cs.

◆ IsValid

bool Point.IsValid
getset

Definition at line 219 of file Point.cs.

◆ IsWater

bool Point.IsWater
get

Definition at line 269 of file Point.cs.

◆ LastThing

Thing Point.LastThing
get

Definition at line 530 of file Point.cs.

◆ matBlock

SourceMaterial.Row Point.matBlock
get

Definition at line 52 of file Point.cs.

◆ matBridge

SourceMaterial.Row Point.matBridge
get

Definition at line 72 of file Point.cs.

◆ matFloor

SourceMaterial.Row Point.matFloor
get

Definition at line 62 of file Point.cs.

◆ matRoofBlock

SourceMaterial.Row Point.matRoofBlock
get

Definition at line 42 of file Point.cs.

◆ sourceBlock

SourceBlock.Row Point.sourceBlock
get

Definition at line 92 of file Point.cs.

◆ sourceBridge

SourceFloor.Row Point.sourceBridge
get

Definition at line 112 of file Point.cs.

◆ sourceFloor

SourceFloor.Row Point.sourceFloor
get

Definition at line 102 of file Point.cs.

◆ sourceObj

SourceObj.Row Point.sourceObj
get

Definition at line 122 of file Point.cs.

◆ sourceRoofBlock

SourceBlock.Row Point.sourceRoofBlock
get

Definition at line 82 of file Point.cs.

◆ Things

List<Thing> Point.Things
get

Definition at line 559 of file Point.cs.


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