Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
game.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4
5#pragma once
6
7#include "irrlichttypes.h"
8#include "config.h"
9#include <csignal>
10#include <string>
11
12#if !IS_CLIENT_BUILD
13#error Do not include in server builds
14#endif
15
16class InputHandler;
17class ChatBackend;
18class RenderingEngine;
19struct GameStartData;
20
24
30
32 f32 camera_yaw; // "right/left"
33 f32 camera_pitch; // "up/down"
34};
35
36#define GAME_FALLBACK_TIMEOUT 1.8f
37#define GAME_CONNECTION_TIMEOUT 10.0f
38
39void the_game(volatile std::sig_atomic_t *kill,
40 InputHandler *input,
41 RenderingEngine *rendering_engine,
42 const GameStartData &start_data,
43 std::string &error_message,
44 ChatBackend &chat_backend,
45 bool *reconnect_requested);
Definition chat.h:270
Definition inputhandler.h:137
Definition renderingengine.h:64
void the_game(volatile std::sig_atomic_t *kill, InputHandler *input, RenderingEngine *rendering_engine, const GameStartData &start_data, std::string &error_message, ChatBackend &chat_backend, bool *reconnect_requested)
Definition game.cpp:3729
Definition game.h:31
f32 camera_yaw
Definition game.h:32
f32 camera_pitch
Definition game.h:33
Definition gameparams.h:30
Definition game.h:21
f32 max_fraction
Definition game.h:22
f32 max
Definition game.h:22
f32 counter
Definition game.h:22
f32 avg
Definition game.h:22
f32 min_sample
Definition game.h:22
f32 max_sample
Definition game.h:22
f32 min
Definition game.h:22
Definition game.h:25
Jitter busy_time_jitter
Definition game.h:28
u64 drawtime
Definition game.h:26
Jitter dtime_jitter
Definition game.h:28