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 */
const Direction * api_utilities_dir_cw(lua_State *L, Direction dir)
const char * api_utilities_fc_version(lua_State *L)
const char * api_utilities_dir2str(lua_State *L, Direction dir)
int api_utilities_random(lua_State *L, int min, int max)
const Direction * api_utilities_opposite_dir(lua_State *L, Direction dir)
void api_utilities_log_base(lua_State *L, int level, const char *message)
const Direction * api_utilities_str2dir(lua_State *L, const char *dir)
void api_utilities_deprecation_warning(lua_State *L, char *method, char *replacement, char *deprecated_since)
int api_utilities_direction_id(lua_State *L, Direction dir)
const Direction * api_utilities_dir_ccw(lua_State *L, Direction dir)
enum direction8 Direction
struct setting_list * level[OLEVELS_NUM]
Definition settings.c:183