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
15
class
InputHandler
;
16
class
ChatBackend
;
17
class
RenderingEngine
;
18
struct
SubgameSpec
;
19
struct
GameStartData
;
20
21
struct
Jitter
{
22
f32
max
,
min
,
avg
,
counter
,
max_sample
,
min_sample
,
max_fraction
;
23
};
24
25
struct
RunStats
{
26
u64
drawtime
;
// (us)
27
28
Jitter
dtime_jitter
,
busy_time_jitter
;
29
};
30
31
struct
CameraOrientation
{
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
39
void
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);
ChatBackend
Definition
chat.h:270
InputHandler
Definition
inputhandler.h:222
RenderingEngine
Definition
renderingengine.h:68
config.h
the_game
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
irrlichttypes.h
CameraOrientation
Definition
game.h:31
CameraOrientation::camera_yaw
f32 camera_yaw
Definition
game.h:32
CameraOrientation::camera_pitch
f32 camera_pitch
Definition
game.h:33
GameStartData
Definition
gameparams.h:29
Jitter
Definition
game.h:21
Jitter::max_fraction
f32 max_fraction
Definition
game.h:22
Jitter::max
f32 max
Definition
game.h:22
Jitter::counter
f32 counter
Definition
game.h:22
Jitter::avg
f32 avg
Definition
game.h:22
Jitter::min_sample
f32 min_sample
Definition
game.h:22
Jitter::max_sample
f32 max_sample
Definition
game.h:22
Jitter::min
f32 min
Definition
game.h:22
RunStats
Definition
game.h:25
RunStats::busy_time_jitter
Jitter busy_time_jitter
Definition
game.h:28
RunStats::drawtime
u64 drawtime
Definition
game.h:26
RunStats::dtime_jitter
Jitter dtime_jitter
Definition
game.h:28
SubgameSpec
Definition
subgames.h:15
client
game.h
Generated on Fri Nov 1 2024 10:48:59 for Luanti by
1.11.0