updated GPL headers in source code
[dribble.git] / game.c
blobfcc18e92cd0c6b2acef189572c3606b718503470
1 /*
2 dribble - a football manager game
3 Copyright (C) 2008 Jonas Sandberg
5 This file is part of dribble.
7 dribble is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 any later version.
12 dribble is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with dribble. If not, see <http://www.gnu.org/licenses/>.
20 #include <string.h>
21 #include "defs.h"
23 struct game
25 int version;
26 char *notepad[256];
27 int countrydatabase[1];
28 char *manager;
29 int m_country;
30 int m_division;
31 int m_team;
34 static struct game g;
36 void game_init()
38 bzero(g, sizeof(*g));
39 g.countrydatabase[0] = country_read("italy.txt");
42 void game_free()
44 free(g.manager);
47 void game_set_manager_name(char *s)
49 g.manager = strdup(s);