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)
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
22 void unit_activity_handling(struct unit
*punit
,
23 enum unit_activity new_activity
);
24 void unit_activity_handling_targeted(struct unit
*punit
,
25 enum unit_activity new_activity
,
26 struct extra_type
**new_target
);
27 void unit_change_homecity_handling(struct unit
*punit
, struct city
*new_pcity
,
30 bool unit_move_handling(struct unit
*punit
, struct tile
*pdesttile
,
31 bool igzoc
, bool move_diplomat_city
,
32 struct unit
*embark_to
);
34 bool unit_build_city(struct player
*pplayer
, struct unit
*punit
,
37 void city_add_or_build_error(struct player
*pplayer
, struct unit
*punit
,
38 enum unit_add_build_city_result res
);
40 struct city
*action_tgt_city(struct unit
*actor
, struct tile
*target_tile
);
42 #endif /* FC__UNITHAND_H */