10017
|
1 |
/*
|
|
2 |
* Hedgewars, a free turn based strategy game
|
|
3 |
* Copyright (C) 2012 Simeon Maxein <smaxein@googlemail.com>
|
|
4 |
*
|
|
5 |
* This program is free software; you can redistribute it and/or
|
|
6 |
* modify it under the terms of the GNU General Public License
|
|
7 |
* as published by the Free Software Foundation; either version 2
|
|
8 |
* of the License, or (at your option) any later version.
|
|
9 |
*
|
|
10 |
* This program is distributed in the hope that it will be useful,
|
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13 |
* GNU General Public License for more details.
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License
|
|
16 |
* along with this program; if not, write to the Free Software
|
|
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
18 |
*/
|
|
19 |
|
|
20 |
/**
|
|
21 |
* A complete game configuration that contains all settings the engine needs to start a
|
|
22 |
* local or networked game.
|
|
23 |
*/
|
|
24 |
|
|
25 |
#ifndef MODEL_GAMESETUP_H_
|
|
26 |
#define MODEL_GAMESETUP_H_
|
|
27 |
|
|
28 |
#include "scheme.h"
|
|
29 |
#include "weapon.h"
|
|
30 |
#include "map.h"
|
|
31 |
#include "teamlist.h"
|
|
32 |
|
|
33 |
typedef struct {
|
|
34 |
char *style; //!< e.g. "Capture the Flag"
|
|
35 |
flib_scheme *gamescheme;
|
|
36 |
flib_map *map;
|
|
37 |
flib_teamlist *teamlist;
|
|
38 |
} flib_gamesetup;
|
|
39 |
|
|
40 |
void flib_gamesetup_destroy(flib_gamesetup *gamesetup);
|
|
41 |
|
|
42 |
/**
|
|
43 |
* Deep-copy of the flib_gamesetup.
|
|
44 |
*/
|
|
45 |
flib_gamesetup *flib_gamesetup_copy(const flib_gamesetup *gamesetup);
|
|
46 |
|
|
47 |
#endif
|