1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
/**********************************************************************
Freeciv - Copyright (C) 2005 - The Freeciv Project
This program 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, or (at your option)
any later version.
This program 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.
***********************************************************************/
#ifndef FC__API_TYPES_H
#define FC__API_TYPES_H
#include "game.h"
#include "player.h"
#include "city.h"
#include "unit.h"
#include "tile.h"
#include "government.h"
#include "nation.h"
#include "improvement.h"
#include "tech.h"
#include "unittype.h"
#include "terrain.h"
#include "events.h"
/* Classes. */
typedef struct player Player;
typedef struct player_ai Player_ai;
typedef struct city City;
typedef struct unit Unit;
typedef struct tile Tile;
typedef struct government Government;
typedef struct nation_type Nation_Type;
typedef struct impr_type Building_Type;
typedef struct unit_type Unit_Type;
typedef struct advance Tech_Type;
typedef struct terrain Terrain;
typedef void Nonexistent;
/* List Classes.
* NOTE: These should not to be exposed since the pointers
* are not safe. They are only used by the API internally.
* Separate types makes use from lua type safe.
*/
typedef const struct unit_list_link Unit_List_Link;
typedef const struct city_list_link City_List_Link;
#endif
|