Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
LogicalPointManager Class Reference
Inheritance diagram for LogicalPointManager:
EClass CellEffectManager

Public Member Functions

virtual LogicalPoint Create ()
 
LogicalPoint GetOrCreate (Point point)
 
LogicalPoint Refresh (Point point)
 
void Remove (int key)
 

Public Attributes

List< LogicalPointlist = new List<LogicalPoint>()
 
Dictionary< int, LogicalPointdict = new Dictionary<int, LogicalPoint>()
 
HashSet< PointrefreshList = new HashSet<Point>()
 

Properties

virtual bool AllowBlock [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 3 of file LogicalPointManager.cs.

Member Function Documentation

◆ Create()

virtual LogicalPoint LogicalPointManager.Create ( )
inlinevirtual

Reimplemented in CellEffectManager.

Definition at line 13 of file LogicalPointManager.cs.

14 {
15 return null;
16 }

Referenced by GetOrCreate().

◆ GetOrCreate()

LogicalPoint LogicalPointManager.GetOrCreate ( Point  point)
inline

Definition at line 18 of file LogicalPointManager.cs.

19 {
20 if (!point.IsValid)
21 {
22 return null;
23 }
24 int index = point.index;
25 LogicalPoint logicalPoint = dict.TryGetValue(index);
26 if (logicalPoint == null)
27 {
28 if (!AllowBlock && point.cell.HasBlock)
29 {
30 return null;
31 }
32 logicalPoint = Create();
33 logicalPoint.Set(point);
34 list.Add(logicalPoint);
35 dict.Add(index, logicalPoint);
36 }
37 return logicalPoint;
38 }
bool HasBlock
Definition: Cell.cs:643
Dictionary< int, LogicalPoint > dict
virtual LogicalPoint Create()
List< LogicalPoint > list
new void Set(Point p)
Definition: LogicalPoint.cs:11
int index
Definition: Point.cs:49
bool IsValid
Definition: Point.cs:88
Cell cell
Definition: Point.cs:51

References AllowBlock, Point.cell, Create(), dict, Cell.HasBlock, Point.index, Point.IsValid, list, and LogicalPoint.Set().

Referenced by Map.Load(), Map.ModFire(), Refresh(), and LogicalFire.Update().

◆ Refresh()

LogicalPoint LogicalPointManager.Refresh ( Point  point)
inline

Definition at line 40 of file LogicalPointManager.cs.

41 {
42 return GetOrCreate(point);
43 }
LogicalPoint GetOrCreate(Point point)

References GetOrCreate().

◆ Remove()

void LogicalPointManager.Remove ( int  key)
inline

Definition at line 45 of file LogicalPointManager.cs.

46 {
47 LogicalPoint item = dict[key];
48 list.Remove(item);
49 dict.Remove(key);
50 }

References dict, item, and list.

Referenced by LogicalPoint.Kill().

Member Data Documentation

◆ dict

Dictionary<int, LogicalPoint> LogicalPointManager.dict = new Dictionary<int, LogicalPoint>()

Definition at line 7 of file LogicalPointManager.cs.

Referenced by GetOrCreate(), and Remove().

◆ list

List<LogicalPoint> LogicalPointManager.list = new List<LogicalPoint>()

Definition at line 5 of file LogicalPointManager.cs.

Referenced by GameUpdater.LogicUpdater.FixedUpdate(), GetOrCreate(), and Remove().

◆ refreshList

HashSet<Point> LogicalPointManager.refreshList = new HashSet<Point>()

Property Documentation

◆ AllowBlock

virtual bool LogicalPointManager.AllowBlock
get

Definition at line 11 of file LogicalPointManager.cs.

Referenced by GetOrCreate().


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