blob: e66b7d8c0c88f48be98eafc505ac1de56c930a0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
@startuml
!include theme.ipuml
class LoopManager {
+static LoopManager& getInstance()
+void loop()
+void setup()
-void render()
-void processInput()
-void fixedUpdate()
-void update()
-bool gameRunning
-LoopManager()
}
class LoopTimer {
+static LoopTimer& getInstance()
+void start()
+void update()
+float getLag()
+float getFixedDeltaTime()
+void advanceFixedUpdate()
+void enforceFrameRate()
+float getDeltaTime()
-float lag
-float fixedDeltaTime
-float deltaTime
}
LoopManager --> LoopTimer : uses
LoopManager : loop()
LoopManager : |-- processInput()
LoopManager : |-- fixedUpdate()
LoopManager : |-- update()
LoopManager : |-- render()
' TODO: what is this supposed to be?
@enduml
|