Freeciv21
Develop your civilization from humble roots to a global empire
api_server_notify.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  part of Freeciv21. Freeciv21 is free software: you can redistribute it
4  and/or modify it under the terms of the GNU General Public License as
5  published by the Free Software Foundation, either version 3 of the
6  License, or (at your option) any later version. You should have received
7  a copy of the GNU General Public License along with Freeciv21. If not,
8  see https://www.gnu.org/licenses/.
9 **************************************************************************/
10 
11 #pragma once
12 
13 /* common/scriptcore */
14 #include "luascript_types.h"
15 
16 struct lua_State;
17 
18 void api_notify_embassies_msg(lua_State *L, Player *pplayer, Tile *ptile,
19  int event, const char *message);
20 void api_notify_event_msg(lua_State *L, Player *pplayer, Tile *ptile,
21  int event, const char *message);
22 void api_notify_research_msg(lua_State *L, Player *pplayer, bool include_plr,
23  int event, const char *message);
24 void api_notify_research_embassies_msg(lua_State *L, Player *pplayer,
25  int event, const char *message);
void api_notify_event_msg(lua_State *L, Player *pplayer, Tile *ptile, int event, const char *message)
Notify pplayer of a complex event.
void api_notify_embassies_msg(lua_State *L, Player *pplayer, Tile *ptile, int event, const char *message)
Notify players which have embassies with pplayer with the given message.
void api_notify_research_embassies_msg(lua_State *L, Player *pplayer, int event, const char *message)
Notify players sharing research with the player.
void api_notify_research_msg(lua_State *L, Player *pplayer, bool include_plr, int event, const char *message)
Notify players sharing research with the player.
enum event_type event
Definition: events.cpp:68
Definition: player.h:231
Definition: tile.h:42