OpenMoHAA 0.83.0
Loading...
Searching...
No Matches
g_bot.h
1/*
2===========================================================================
3Copyright (C) 2025 the OpenMoHAA team
4
5This file is part of OpenMoHAA source code.
6
7OpenMoHAA source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12OpenMoHAA source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with OpenMoHAA source code; if not, write to the Free Software
19Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20===========================================================================
21*/
22
23#pragma once
24
25struct saved_bot_t {
26 char userinfo[MAX_INFO_STRING];
27
28 saved_bot_t();
29};
30
31struct bot_info_t {
32 str name;
33};
34
35void G_BotBegin(gentity_t *ent);
36void G_BotThink(gentity_t *ent, int msec);
37void G_BotShift(int clientNum);
38gentity_t *G_GetFirstBot();
39unsigned int G_GetBotId(gentity_t *e);
40gentity_t *G_AddBot(const bot_info_t *info = NULL);
41gentity_t *G_RestoreBot(const saved_bot_t& saved);
42void G_AddBots(unsigned int num);
43void G_RemoveBot(gentity_t *ent);
44void G_RemoveBots(unsigned int num);
45unsigned int G_GetNumBots();
46const char *G_GetBotSkill();
47bool G_IsBot(gentity_t *ent);
48bool G_IsPlayer(gentity_t *ent);
49void G_ResetBots();
50void G_RestartBots();
51void G_BotInit();
52void G_BotFrame();
53void G_BotPostInit();
54void G_SpawnBots();
55const char *G_GetRandomAlliedPlayerModel();
56const char *G_GetRandomGermanPlayerModel();
Definition g_bot.h:31
Definition g_bot.h:25