aboutsummaryrefslogtreecommitdiff
path: root/img/gameloop-class.puml
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-03 00:22:58 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-03 00:22:58 +0100
commit07f40f3dc1ef4655844e312ba69be3fbebec51b7 (patch)
tree4ebc5e65290cace95cac5dabe5cfe8f5a5d4a95a /img/gameloop-class.puml
parent3007b3677ae6a0752a9d1fb136d6ea84c1b6d555 (diff)
parent0bed01a4e2e820b8974207145cd2eb3430864ad7 (diff)
merge #49
Diffstat (limited to 'img/gameloop-class.puml')
-rw-r--r--img/gameloop-class.puml37
1 files changed, 37 insertions, 0 deletions
diff --git a/img/gameloop-class.puml b/img/gameloop-class.puml
new file mode 100644
index 0000000..e66b7d8
--- /dev/null
+++ b/img/gameloop-class.puml
@@ -0,0 +1,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