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);
35
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
46 char *replacement,
47 char *deprecated_since);
48
49#ifdef __cplusplus
50}
51#endif /* __cplusplus */
52
53#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)
int api_utilities_versions_compare(lua_State *L, const char *ver1, const char *ver2)
const char * api_utilities_dir2str(lua_State *L, Direction dir)
const char * api_utilities_comparable_version(lua_State *L)
int api_utilities_random(lua_State *L, int min, int max)
const Direction * api_utilities_opposite_dir(lua_State *L, Direction dir)
bool api_utilities_direction_is_cardinal(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)
const char * api_utilities_name_version(lua_State *L)
const char * api_utilities_version_string(lua_State *L)
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)
char * incite_cost
Definition comments.c:75
enum direction8 Direction
struct setting_list * level[OLEVELS_NUM]
Definition settings.c:190