Elin Decompiled Documentation EA 23.307 Stable
Loading...
Searching...
No Matches
GameUpdater.CharaUpdater Class Reference
Inheritance diagram for GameUpdater.CharaUpdater:
GameUpdater.Updater EClass GameUpdater.ConditionUpdater

Public Member Functions

override void FixedUpdate ()
 
- Public Member Functions inherited from GameUpdater.Updater
virtual void FixedUpdate ()
 
void SetUpdatesPerFrame (int _maxcount, float _duration)
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rndSeed (int a, int seed)
 
static int rnd (long a)
 
static int rnd (int a)
 
static int curve (long _a, int start, int step, int rate=75)
 
static int sqrt (int a)
 
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 inherited from GameUpdater.Updater
int index
 
int updatesPerFrame
 
int maxCount
 
float duration = 1f
 
float _updatesPerFrame
 
Point pos = new Point()
 
- Static Public Attributes inherited from EClass
static Core core
 
- 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 248 of file GameUpdater.cs.

Member Function Documentation

◆ FixedUpdate()

override void GameUpdater.CharaUpdater.FixedUpdate ( )
inlinevirtual

Reimplemented from GameUpdater.Updater.

Reimplemented in GameUpdater.ConditionUpdater.

Definition at line 250 of file GameUpdater.cs.

251 {
252 if (Game.isPaused)
253 {
254 return;
255 }
256 List<Chara> charas = EClass._map.charas;
257 float gameDelta = Core.gameDelta;
258 SetUpdatesPerFrame(charas.Count, 0.05f);
259 for (int i = 0; i < charas.Count; i++)
260 {
261 Chara chara = charas[i];
262 if (Game.isPaused && !chara.IsPC)
263 {
264 break;
265 }
266 chara.roundTimer += gameDelta;
267 float actTime = chara.actTime;
268 if (chara.roundTimer > actTime)
269 {
270 chara.Tick();
271 chara.roundTimer -= actTime;
272 if (chara.ai is GoalEndTurn)
273 {
274 chara.SetNoGoal();
275 break;
276 }
277 if (i > charas.Count)
278 {
279 break;
280 }
281 }
282 }
283 }
Definition: Chara.cs:10
Definition: Core.cs:14
static float gameDelta
Definition: Core.cs:21
Definition: EClass.cs:6
static Map _map
Definition: EClass.cs:19
void SetUpdatesPerFrame(int _maxcount, float _duration)
Definition: GameUpdater.cs:25
CharaUpdater chara
Definition: GameUpdater.cs:359
Definition: Game.cs:9
static bool isPaused
Definition: Game.cs:150
List< Chara > charas
Definition: Map.cs:81

References EClass._map, GameUpdater.chara, Map.charas, Core.gameDelta, Game.isPaused, and GameUpdater.Updater.SetUpdatesPerFrame().

Referenced by GameUpdater.FixedUpdate().


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