aboutsummaryrefslogtreecommitdiff
path: root/src/game.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-01-03 17:28:57 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-01-05 20:59:30 +0100
commit3a772e7ed6c02f91de57320b1694c7d11e1c7618 (patch)
tree8662cc6a9ac690713d74abdf01406b30c86c8e3b /src/game.h
parent0ebaed430ad5cd2523d78d2e2c051576e948fe13 (diff)
downloadhax-minetest-server-3a772e7ed6c02f91de57320b1694c7d11e1c7618.tar.gz
hax-minetest-server-3a772e7ed6c02f91de57320b1694c7d11e1c7618.zip
GameUI refactor (part 2/X): Move Game::guitext to GameUI + enhancements on StaticText
Other enhancements: * C++ friendlyness for addStaticText() -> move to static StaticText::add()
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game.h b/src/game.h
index 223278006..6101c4f7a 100644
--- a/src/game.h
+++ b/src/game.h
@@ -26,6 +26,16 @@ class InputHandler;
class ChatBackend; /* to avoid having to include chat.h */
struct SubgameSpec;
+struct Jitter {
+ f32 max, min, avg, counter, max_sample, min_sample, max_fraction;
+};
+
+struct RunStats {
+ u32 drawtime;
+
+ Jitter dtime_jitter, busy_time_jitter;
+};
+
void the_game(bool *kill,
bool random_input,
InputHandler *input,