Luanti 5.10.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 <string>
10
11#if !IS_CLIENT_BUILD
12#error Do not include in server builds
13#endif
14
15class InputHandler;
16class ChatBackend;
17class RenderingEngine;
18struct SubgameSpec;
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(bool *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:222
Definition renderingengine.h:68
void the_game(bool *kill, InputHandler *input, RenderingEngine *rendering_engine, const GameStartData &start_data, std::string &error_message, ChatBackend &chat_backend, bool *reconnect_requested)
Definition game.cpp:4583
Definition game.h:31
f32 camera_yaw
Definition game.h:32
f32 camera_pitch
Definition game.h:33
Definition gameparams.h:29
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
Definition subgames.h:15