Freeciv-3.2
Loading...
Searching...
No Matches
unithand.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
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#ifndef FC__UNITHAND_H
14#define FC__UNITHAND_H
15
16/* common */
17#include "explanation.h"
18#include "unit.h"
19
20/* server */
21#include <hand_gen.h> /* <> so looked from the build directory first. */
22
27 struct extra_type **new_target);
29 bool rehome);
30
31bool unit_move_handling(struct unit *punit, struct tile *pdesttile,
33
34void unit_do_action(struct player *pplayer,
35 const int actor_id,
36 const int target_id,
37 const int sub_tgt_id,
38 const char *name,
39 const action_id action_type);
40
41bool unit_perform_action(struct player *pplayer,
42 const int actor_id,
43 const int target_id,
44 const int sub_tgt_id,
45 const char *name,
46 const action_id action_type,
47 const enum action_requester requester);
48
49void illegal_action_msg(struct player *pplayer,
50 const enum event_type event,
51 struct unit *actor,
53 const struct tile *target_tile,
54 const struct city *target_city,
55 const struct unit *target_unit);
56
58 action_id act_id,
59 const struct tile *target_tile,
60 const struct city *target_city,
61 const struct unit *target_unit);
62
63bool unit_server_side_agent_set(struct player *pplayer,
64 struct unit *punit,
66
67#endif /* FC__UNITHAND_H */
char * incite_cost
Definition comments.c:75
struct unit struct city struct unit * target_unit
Definition dialogs_g.h:56
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit * actor
Definition dialogs_g.h:73
struct unit struct city struct unit struct tile * target_tile
Definition dialogs_g.h:57
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
Definition dialogs_g.h:74
struct unit struct city * target_city
Definition dialogs_g.h:56
enum event_type event
Definition events.c:81
ane_kind
Definition explanation.h:22
int action_id
Definition fc_types.h:389
const char * name
Definition inputfile.c:127
Definition agents.h:40
Definition city.h:320
Definition tile.h:50
Definition unit.h:138
void illegal_action_msg(struct player *pplayer, const enum event_type event, struct unit *actor, const action_id stopped_action, const struct tile *target_tile, const struct city *target_city, const struct unit *target_unit)
Definition unithand.c:2492
bool unit_move_handling(struct unit *punit, struct tile *pdesttile, bool move_diplomat_city)
Definition unithand.c:5533
bool unit_activity_handling(struct unit *punit, enum unit_activity new_activity)
Definition unithand.c:6471
void unit_do_action(struct player *pplayer, const int actor_id, const int target_id, const int sub_tgt_id, const char *name, const action_id action_type)
Definition unithand.c:3293
void unit_change_homecity_handling(struct unit *punit, struct city *new_pcity, bool rehome)
Definition unithand.c:4016
bool unit_activity_handling_targeted(struct unit *punit, enum unit_activity new_activity, struct extra_type **new_target)
Definition unithand.c:6538
bool unit_server_side_agent_set(struct player *pplayer, struct unit *punit, enum server_side_agent agent)
Definition unithand.c:6370
enum ane_kind action_not_enabled_reason(struct unit *punit, action_id act_id, const struct tile *target_tile, const struct city *target_city, const struct unit *target_unit)
Definition unithand.c:1913
bool unit_perform_action(struct player *pplayer, const int actor_id, const int target_id, const int sub_tgt_id, const char *name, const action_id action_type, const enum action_requester requester)
Definition unithand.c:3313