Freeciv-3.2: /fast/freeciv/nightly/S3_2/common/scriptcore/api_game_find.h Source File

Freeciv-3.2

Loading...
Searching...
No Matches
api_game_find.h
Go to the documentation of this file.
1/*****************************************************************************
2 Freeciv - Copyright (C) 2005 - The Freeciv Project
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12*****************************************************************************/
13
14#ifndef FC__API_GAME_FIND_H
15#define FC__API_GAME_FIND_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21/* dependencies/lua */
22#include "lua.h"
23
24/* common/scriptcore */
25#include "luascript_types.h"
26
27/* Object find module. */
28 Player *api_find_player_by_name(lua_State *L, const char *name);
29 Player *api_find_player(lua_State *L, int player_id);
30
31 City *api_find_city(lua_State *L, Player *pplayer, int city_id);
32
33 Counter *api_find_counter_by_name(lua_State *L, const char *name);
34 Counter *api_find_counter(lua_State *L, int counter_id);
35
36 Unit *api_find_unit(lua_State *L, Player *pplayer, int unit_id);
37 Unit *api_find_transport_unit(lua_State *L, Player *pplayer, Unit_Type *ptype,
38 Tile *ptile);
39 Tile *api_find_tile(lua_State *L, int nat_x, int nat_y);
40 Tile *api_find_tile_by_index(lua_State *L, int tindex);
41
42 Government *api_find_government(lua_State *L, int government_id);
43 Government *api_find_government_by_name(lua_State *L, const char *name_orig);
44
45 Nation_Type *api_find_nation_type(lua_State *L, int nation_type_id);
46 Nation_Type *api_find_nation_type_by_name(lua_State *L,
47 const char *name_orig);
48 Action *api_find_action(lua_State *L, action_id act_id);
49 Action *api_find_action_by_name(lua_State *L, const char *name_orig);
50 Building_Type *api_find_building_type(lua_State *L, int building_type_id);
51 Building_Type *api_find_building_type_by_name(lua_State *L,
52 const char *name_orig);
53 Unit_Type *api_find_unit_type(lua_State *L, int unit_type_id);
54 Unit_Type *api_find_unit_type_by_name(lua_State *L, const char *name_orig);
55 Unit_Type *api_find_role_unit_type(lua_State *L, const char *role_name,
56 Player *pplayer);
57 Tech_Type *api_find_tech_type(lua_State *L, int tech_type_id);
58 Tech_Type *api_find_tech_type_by_name(lua_State *L, const char *name_orig);
59
60 Terrain *api_find_terrain(lua_State *L, int terrain_id);
61 Terrain *api_find_terrain_by_name(lua_State *L, const char *name_orig);
62
63 Achievement *api_find_achievement(lua_State *L, int achievement_id);
64 Achievement *api_find_achievement_by_name(lua_State *L, const char *name_orig);
65
66 Disaster *api_find_disaster(lua_State *L, int disaster_id);
67 Disaster *api_find_disaster_by_name(lua_State *L, const char *name_orig);
68
69const Direction *api_find_direction (lua_State *L, int id);
70
71 Action *api_find_action_type_by_id(lua_State *L, int id);
72 Action *api_find_action_type_by_name(lua_State *L, const char *name);
73
74 Nonexistent *api_find_nonexistent(lua_State *L);
75
76#ifdef __cplusplus
77}
78#endif /* __cplusplus */
79
80#endif /* API_GAME_FIND */
81
api_find_nation_type
Nation_Type * api_find_nation_type(lua_State *L, int nation_type_id)
Definition api_game_find.c:174
api_find_tile
Tile * api_find_tile(lua_State *L, int nat_x, int nat_y)
Definition api_game_find.c:132
api_find_unit_type
Unit_Type * api_find_unit_type(lua_State *L, int unit_type_id)
Definition api_game_find.c:240
api_find_government_by_name
Government * api_find_government_by_name(lua_State *L, const char *name_orig)
Definition api_game_find.c:162
api_find_player
Player * api_find_player(lua_State *L, int player_id)
Definition api_game_find.c:42
api_find_achievement_by_name
Achievement * api_find_achievement_by_name(lua_State *L, const char *name_orig)
Definition api_game_find.c:313
api_find_achievement
Achievement * api_find_achievement(lua_State *L, int achievement_id)
Definition api_game_find.c:303
api_find_role_unit_type
Unit_Type * api_find_role_unit_type(lua_State *L, const char *role_name, Player *pplayer)
Definition api_game_find.c:103
api_find_direction
const Direction * api_find_direction(lua_State *L, int id)
Definition api_game_find.c:345
api_find_action_type_by_name
Action * api_find_action_type_by_name(lua_State *L, const char *name)
Definition api_game_find.c:365
api_find_tile_by_index
Tile * api_find_tile_by_index(lua_State *L, int tindex)
Definition api_game_find.c:142
api_find_building_type_by_name
Building_Type * api_find_building_type_by_name(lua_State *L, const char *name_orig)
Definition api_game_find.c:228
api_find_nation_type_by_name
Nation_Type * api_find_nation_type_by_name(lua_State *L, const char *name_orig)
Definition api_game_find.c:184
api_find_disaster
Disaster * api_find_disaster(lua_State *L, int disaster_id)
Definition api_game_find.c:324
api_find_tech_type_by_name
Tech_Type * api_find_tech_type_by_name(lua_State *L, const char *name_orig)
Definition api_game_find.c:271
api_find_government
Government * api_find_government(lua_State *L, int government_id)
Definition api_game_find.c:152
api_find_disaster_by_name
Disaster * api_find_disaster_by_name(lua_State *L, const char *name_orig)
Definition api_game_find.c:334
api_find_counter
Counter * api_find_counter(lua_State *L, int counter_id)
Definition api_game_find.c:376
api_find_building_type
Building_Type * api_find_building_type(lua_State *L, int building_type_id)
Definition api_game_find.c:218
api_find_action_type_by_id
Action * api_find_action_type_by_id(lua_State *L, int id)
Definition api_game_find.c:355
api_find_action_by_name
Action * api_find_action_by_name(lua_State *L, const char *name_orig)
Definition api_game_find.c:206
api_find_nonexistent
Nonexistent * api_find_nonexistent(lua_State *L)
Definition api_game_find.c:397
api_find_player_by_name
Player * api_find_player_by_name(lua_State *L, const char *name)
Definition api_game_find.c:32
api_find_transport_unit
Unit * api_find_transport_unit(lua_State *L, Player *pplayer, Unit_Type *ptype, Tile *ptile)
Definition api_game_find.c:80
api_find_tech_type
Tech_Type * api_find_tech_type(lua_State *L, int tech_type_id)
Definition api_game_find.c:261
api_find_city
City * api_find_city(lua_State *L, Player *pplayer, int city_id)
Definition api_game_find.c:52
api_find_unit
Unit * api_find_unit(lua_State *L, Player *pplayer, int unit_id)
Definition api_game_find.c:66
api_find_action
Action * api_find_action(lua_State *L, action_id act_id)
Definition api_game_find.c:196
api_find_terrain
Terrain * api_find_terrain(lua_State *L, int terrain_id)
Definition api_game_find.c:282
api_find_terrain_by_name
Terrain * api_find_terrain_by_name(lua_State *L, const char *name_orig)
Definition api_game_find.c:292
api_find_counter_by_name
Counter * api_find_counter_by_name(lua_State *L, const char *name)
Definition api_game_find.c:386
api_find_unit_type_by_name
Unit_Type * api_find_unit_type_by_name(lua_State *L, const char *name_orig)
Definition api_game_find.c:250
incite_cost
char * incite_cost
Definition comments.c:74
counter_id
int counter_id(struct counter *pcount)
Definition counters.c:105
action_id
int action_id
Definition fc_types.h:392
name
const char * name
Definition inputfile.c:127
luascript_types.h
Direction
enum direction8 Direction
Definition luascript_types.h:59
Nonexistent
void Nonexistent
Definition luascript_types.h:65
nat_x
#define nat_x
nat_y
#define nat_y
achievement
Definition achievements.h:26
action
Definition actions.h:360
advance
Definition tech.h:124
city
Definition city.h:320
counter
Definition counters.h:27
disaster_type
Definition disaster.h:46
government
Definition government.h:52
impr_type
Definition improvement.h:50
nation_type
Definition nation.h:98
player
Definition player.h:247
terrain
Definition terrain.h:182
tile
Definition tile.h:50
unit_type
Definition unittype.h:500
unit
Definition unit.h:138