home *** CD-ROM | disk | FTP | other *** search
/ Amiga Times / AmigaTimes.iso / spiele / FreeCiv / src / freeciv-1.7.0 / server / unithand.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-06  |  2.4 KB  |  55 lines

  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 __UNITHAND_H
  14. #define __UNITHAND_H
  15.  
  16. #include "packets.h"
  17. #include "unit.h"
  18. void handle_unit_goto_tile(struct player *pplayer, 
  19.                struct packet_unit_request *req);
  20. void handle_upgrade_unit_request(struct player *pplayer, 
  21.                 struct packet_unittype_info *packet);
  22. void handle_diplomat_action(struct player *pplayer, 
  23.                 struct packet_diplomat_action *packet);
  24. void handle_unit_change_homecity(struct player *pplayer, 
  25.                  struct packet_unit_request *req);
  26. void handle_unit_disband(struct player *pplayer, 
  27.              struct packet_unit_request *req);
  28. void handle_unit_build_city(struct player *pplayer, 
  29.                 struct packet_unit_request *req);
  30. void handle_unit_info(struct player *pplayer, struct packet_unit_info *pinfo);
  31. void handle_unit_attack_request(struct player *pplayer, struct unit *punit,
  32.                 struct unit *pdefender);
  33. void handle_unit_enter_hut(struct unit *punit);
  34. int handle_unit_move_request(struct player *pplayer, struct unit *punit,
  35.                   int dest_x, int dest_y);
  36. void handle_unit_help_build_wonder(struct player *pplayer, 
  37.                    struct packet_unit_request *req);
  38. void handle_unit_establish_trade(struct player *pplayer, 
  39.                  struct packet_unit_request *req);
  40. void handle_unit_enter_city(struct player *pplayer, struct city *pcity);
  41. void handle_unit_auto_request(struct player *pplayer, 
  42.                   struct packet_unit_request *req);
  43. void handle_unit_activity_request(struct player *pplayer, struct unit *punit, 
  44.                   enum unit_activity new_activity);
  45. void handle_unit_unload_request(struct player *pplayer, 
  46.                 struct packet_unit_request *req);
  47. void handle_move_unit(struct player *pplayer, struct packet_move_unit *pmove);
  48. void handle_incite_inq(struct player *pplayer,
  49.                struct packet_generic_integer *packet);
  50.  
  51. #endif
  52.  
  53.  
  54.  
  55.