Freeciv-3.1: /fast/freeciv/nightly/S3_1/common/scriptcore/api_common_utilities.h Source File

Freeciv-3.1

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);
32int api_utilities_direction_id(lua_State *L, Direction dir);
33const char *api_utilities_dir2str(lua_State *L, Direction dir);
34
35const char *api_utilities_fc_version(lua_State *L);
36
37void api_utilities_log_base(lua_State *L, int level, const char *message);
38
39void api_utilities_deprecation_warning(lua_State *L, char *method,
40 char *replacement,
41 char *deprecated_since);
42
43#ifdef __cplusplus
44}
45#endif /* __cplusplus */
46
47#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:124
api_utilities_fc_version
const char * api_utilities_fc_version(lua_State *L)
Definition api_common_utilities.c:51
api_utilities_dir2str
const char * api_utilities_dir2str(lua_State *L, Direction dir)
Definition api_common_utilities.c:86
api_utilities_random
int api_utilities_random(lua_State *L, int min, int max)
Definition api_common_utilities.c:37
api_utilities_opposite_dir
const Direction * api_utilities_opposite_dir(lua_State *L, Direction dir)
Definition api_common_utilities.c:141
api_utilities_log_base
void api_utilities_log_base(lua_State *L, int level, const char *message)
Definition api_common_utilities.c:59
api_utilities_str2dir
const Direction * api_utilities_str2dir(lua_State *L, const char *dir)
Definition api_common_utilities.c:97
api_utilities_deprecation_warning
void api_utilities_deprecation_warning(lua_State *L, char *method, char *replacement, char *deprecated_since)
Definition api_common_utilities.c:151
api_utilities_direction_id
int api_utilities_direction_id(lua_State *L, Direction dir)
Definition api_common_utilities.c:76
api_utilities_dir_ccw
const Direction * api_utilities_dir_ccw(lua_State *L, Direction dir)
Definition api_common_utilities.c:108
luascript_types.h
Direction
enum direction8 Direction
Definition luascript_types.h:57
level
struct setting_list * level[OLEVELS_NUM]
Definition settings.c:183
message
Definition messagewin_common.h:29