diff options
author | Max-001 <80035972+Max-001@users.noreply.github.com> | 2024-11-05 11:33:16 +0100 |
---|---|---|
committer | Max-001 <80035972+Max-001@users.noreply.github.com> | 2024-11-05 11:33:16 +0100 |
commit | 65fd4db4aead74c0bb28c8f099522536d5ce5f6c (patch) | |
tree | 7f9a7510b18e8eefbcd7129cf987c9f3f3b69e34 /img/gameloop-class.puml | |
parent | 8fd4ebc33c2eba64e6be15c750ae8a821b72fd36 (diff) | |
parent | e696e7a6ac438c4af2e3d597c12950ad72b88520 (diff) |
Merge branch 'master' of https://github.com/lonkaars/crepe-docs into max/time
Diffstat (limited to 'img/gameloop-class.puml')
-rw-r--r-- | img/gameloop-class.puml | 37 |
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 |