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

Freeciv-3.2

Loading...
Searching...
No Matches
api_common_utilities.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_COMMON_UTILITIES_H
15#define FC__API_COMMON_UTILITIES_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21/* common/scriptcore */
22#include "luascript_types.h"
23
24struct lua_State;
25
26int api_utilities_random(lua_State *L, int min, int max);
27
28const Direction *api_utilities_str2dir(lua_State *L, const char *dir);
29const Direction *api_utilities_dir_ccw(lua_State *L, Direction dir);
30const Direction *api_utilities_dir_cw(lua_State *L, Direction dir);
31const Direction *api_utilities_opposite_dir(lua_State *L, Direction dir);
32bool api_utilities_direction_is_cardinal(lua_State *L, Direction dir);
33int api_utilities_direction_id(lua_State *L, Direction dir);
34const char *api_utilities_dir2str(lua_State *L, Direction dir);
35
36const char *api_utilities_fc_version(lua_State *L);
37const char *api_utilities_name_version(lua_State *L);
38const char *api_utilities_comparable_version(lua_State *L);
39const char *api_utilities_version_string(lua_State *L);
40
41int api_utilities_versions_compare(lua_State *L, const char *ver1, const char *ver2);
42
43void api_utilities_log_base(lua_State *L, int level, const char *message);
44
45void api_utilities_deprecation_warning(lua_State *L, char *method,
46 char *replacement,
47 char *deprecated_since);
48
49#ifdef __cplusplus
50}
51#endif /* __cplusplus */
52
53#endif /* FC__API_COMMON_UTILITIES_H */
api_utilities_dir_cw
const Direction * api_utilities_dir_cw(lua_State *L, Direction dir)
Definition api_common_utilities.c:194
api_utilities_fc_version
const char * api_utilities_fc_version(lua_State *L)
Definition api_common_utilities.c:55
api_utilities_versions_compare
int api_utilities_versions_compare(lua_State *L, const char *ver1, const char *ver2)
Definition api_common_utilities.c:100
api_utilities_dir2str
const char * api_utilities_dir2str(lua_State *L, Direction dir)
Definition api_common_utilities.c:156
api_utilities_comparable_version
const char * api_utilities_comparable_version(lua_State *L)
Definition api_common_utilities.c:79
api_utilities_random
int api_utilities_random(lua_State *L, int min, int max)
Definition api_common_utilities.c:40
api_utilities_opposite_dir
const Direction * api_utilities_opposite_dir(lua_State *L, Direction dir)
Definition api_common_utilities.c:211
api_utilities_direction_is_cardinal
bool api_utilities_direction_is_cardinal(lua_State *L, Direction dir)
Definition api_common_utilities.c:221
api_utilities_log_base
void api_utilities_log_base(lua_State *L, int level, const char *message)
Definition api_common_utilities.c:129
api_utilities_str2dir
const Direction * api_utilities_str2dir(lua_State *L, const char *dir)
Definition api_common_utilities.c:167
api_utilities_name_version
const char * api_utilities_name_version(lua_State *L)
Definition api_common_utilities.c:69
api_utilities_version_string
const char * api_utilities_version_string(lua_State *L)
Definition api_common_utilities.c:89
api_utilities_deprecation_warning
void api_utilities_deprecation_warning(lua_State *L, char *method, char *replacement, char *deprecated_since)
Definition api_common_utilities.c:231
api_utilities_direction_id
int api_utilities_direction_id(lua_State *L, Direction dir)
Definition api_common_utilities.c:146
api_utilities_dir_ccw
const Direction * api_utilities_dir_ccw(lua_State *L, Direction dir)
Definition api_common_utilities.c:178
incite_cost
char * incite_cost
Definition comments.c:74
luascript_types.h
Direction
enum direction8 Direction
Definition luascript_types.h:59
level
struct setting_list * level[OLEVELS_NUM]
Definition settings.c:190
message
Definition messagewin_common.h:29