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

Public Member Functions

void OnSetGoal (AIAct newGoal)
 
AIAct Pop ()
 
Queue ManualAdd (AIAct interaction)
 
Queue Add (AIAct interaction, bool insert=false)
 
void Remove (Queue q)
 
void Cancel (Queue q)
 
void SetOwner (Chara _owner)
 

Public Attributes

Chara owner
 
List< Queuelist = new List<Queue>()
 

Properties

UIQueue uiq [get]
 
Queue currentQueue [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 QueueManager.cs.

Member Function Documentation

◆ Add()

Queue QueueManager.Add ( AIAct  interaction,
bool  insert = false 
)
inline

Definition at line 37 of file QueueManager.cs.

38 {
39 Queue queue = new Queue
40 {
41 interaction = interaction
42 };
43 if (insert)
44 {
45 list.Insert(0, queue);
46 }
47 else
48 {
49 list.Add(queue);
50 }
51 if ((bool)uiq)
52 {
53 uiq.OnAdd(queue, insert);
54 }
55 return queue;
56 }
List< Queue > list
Definition: QueueManager.cs:7
UIQueue uiq
Definition: QueueManager.cs:9
Definition: Queue.cs:2
void OnAdd(Queue q, bool insert=false)
Definition: UIQueue.cs:25

References list, UIQueue.OnAdd(), and uiq.

◆ Cancel()

void QueueManager.Cancel ( Queue  q)
inline

Definition at line 68 of file QueueManager.cs.

69 {
70 if (list[0] == q)
71 {
73 }
74 else
75 {
76 Remove(q);
77 }
78 }
virtual Status Cancel()
Definition: AIAct.cs:291
void Remove(Queue q)
Definition: QueueManager.cs:58
AIAct interaction
Definition: Queue.cs:3

References AIAct.Cancel(), Queue.interaction, list, and Remove().

Referenced by UIQueue.OnAdd().

◆ ManualAdd()

Queue QueueManager.ManualAdd ( AIAct  interaction)
inline

Definition at line 32 of file QueueManager.cs.

33 {
34 return null;
35 }

◆ OnSetGoal()

void QueueManager.OnSetGoal ( AIAct  newGoal)
inline

Definition at line 23 of file QueueManager.cs.

24 {
25 }

Referenced by Chara.SetAI().

◆ Pop()

AIAct QueueManager.Pop ( )
inline

Definition at line 27 of file QueueManager.cs.

28 {
29 return null;
30 }

◆ Remove()

void QueueManager.Remove ( Queue  q)
inline

Definition at line 58 of file QueueManager.cs.

59 {
60 q.removed = true;
61 list.Remove(q);
62 if ((bool)uiq)
63 {
64 uiq.OnRemove(q);
65 }
66 }
void OnRemove(Queue q)
Definition: UIQueue.cs:48

References list, UIQueue.OnRemove(), and uiq.

Referenced by Cancel().

◆ SetOwner()

void QueueManager.SetOwner ( Chara  _owner)
inline

Definition at line 80 of file QueueManager.cs.

81 {
82 list.Clear();
83 owner = _owner;
84 if ((bool)uiq)
85 {
87 }
88 }
void OnSetOwner()
Definition: UIQueue.cs:64

References list, UIQueue.OnSetOwner(), owner, and uiq.

Referenced by UI.OnActivateZone().

Member Data Documentation

◆ list

List<Queue> QueueManager.list = new List<Queue>()

Definition at line 7 of file QueueManager.cs.

Referenced by Add(), Cancel(), Remove(), SetOwner(), and UIQueue.Update().

◆ owner

Chara QueueManager.owner

Definition at line 5 of file QueueManager.cs.

Referenced by SetOwner().

Property Documentation

◆ currentQueue

Queue QueueManager.currentQueue
get

Definition at line 11 of file QueueManager.cs.

12 {
13 get
14 {
15 if (list.Count <= 0)
16 {
17 return null;
18 }
19 return list[0];
20 }
21 }

Referenced by UIQueue.Update().

◆ uiq

UIQueue QueueManager.uiq
get

Definition at line 9 of file QueueManager.cs.

Referenced by Add(), Remove(), and SetOwner().


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