2016-03-27 11:49:47 +02:00
|
|
|
/*
|
|
|
|
===========================================================================
|
2024-02-28 22:21:53 +01:00
|
|
|
Copyright (C) 2023 the OpenMoHAA team
|
2016-03-27 11:49:47 +02:00
|
|
|
|
|
|
|
This file is part of OpenMoHAA source code.
|
|
|
|
|
|
|
|
OpenMoHAA source code is free software; you can redistribute it
|
|
|
|
and/or modify it under the terms of the GNU General Public License as
|
|
|
|
published by the Free Software Foundation; either version 2 of the License,
|
|
|
|
or (at your option) any later version.
|
|
|
|
|
|
|
|
OpenMoHAA source code is distributed in the hope that it will be
|
|
|
|
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with OpenMoHAA source code; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
===========================================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
// game.h: General Game Info
|
|
|
|
|
2023-01-29 20:59:31 +01:00
|
|
|
#pragma once
|
2016-03-27 11:49:47 +02:00
|
|
|
|
|
|
|
#include "level.h"
|
2023-01-29 20:59:31 +01:00
|
|
|
#include "listener.h"
|
|
|
|
#include "g_public.h"
|
2016-03-27 11:49:47 +02:00
|
|
|
|
|
|
|
class Game : public Listener
|
|
|
|
{
|
|
|
|
public:
|
2023-08-15 01:40:06 +02:00
|
|
|
gclient_t *clients;
|
|
|
|
qboolean autosaved;
|
|
|
|
int maxclients;
|
|
|
|
int maxentities;
|
2016-03-27 11:49:47 +02:00
|
|
|
|
|
|
|
public:
|
2023-08-15 01:40:06 +02:00
|
|
|
CLASS_PROTOTYPE(Game);
|
2016-03-27 11:49:47 +02:00
|
|
|
|
2024-02-28 22:21:53 +01:00
|
|
|
protected:
|
|
|
|
void GetSkill(Event *ev);
|
|
|
|
void GetDetail(Event *ev);
|
2016-03-27 11:49:47 +02:00
|
|
|
|
2024-02-28 22:21:53 +01:00
|
|
|
public:
|
2023-08-15 01:40:06 +02:00
|
|
|
Game();
|
|
|
|
~Game();
|
2024-02-28 22:21:53 +01:00
|
|
|
|
|
|
|
void Init();
|
|
|
|
void Archive(Archiver& arc) override;
|
2016-03-27 11:49:47 +02:00
|
|
|
};
|
|
|
|
|
2023-01-29 20:59:31 +01:00
|
|
|
class SimpleArchivedEntity;
|
|
|
|
|
2016-03-27 11:49:47 +02:00
|
|
|
extern Game game;
|