blob: c9d7917d18ec4fd639b415552b315b4685f8c6d6 (
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
|
@startuml
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()
@enduml
|