home *** CD-ROM | disk | FTP | other *** search
/ Amiga Times / AmigaTimes.iso / spiele / FreeCiv / src / freeciv-1.7.0 / server / settlers.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-06  |  2.3 KB  |  56 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 __SETTLERS_H
  14. #define __SETTLERS_H
  15.  
  16. #include "unit.h"
  17.  
  18. int auto_settler_do_goto(struct player *pplayer, struct unit *punit, 
  19.              int x, int y);
  20. int auto_settler_findwork(struct player *pplayer, struct unit *punit); 
  21. void auto_settlers_player(struct player *pplayer); 
  22. void auto_settlers();
  23. int find_boat(struct player *pplayer, int *x, int *y, int cap);
  24.  
  25. #define MORT 24
  26.  
  27. const char *get_a_name(struct player *pplayer);
  28. int amortize(int b, int d);
  29. void generate_minimap(void);
  30. int city_desirability(int x, int y);
  31. void ai_manage_settler(struct player *pplayer, struct unit *punit);
  32.  
  33. int is_already_assigned(struct unit *myunit, struct player *pplayer, 
  34.             int x, int y);
  35. int ai_calc_pollution(struct city *pcity, struct player *pplayer, int i, int j);
  36. int ai_calc_mine(struct city *pcity, struct player *pplayer, int i, int j);
  37. int ai_calc_road(struct city *pcity, struct player *pplayer, int i, int j);
  38. int ai_calc_railroad(struct city *pcity, struct player *pplayer, int i, int j);
  39. int ai_calc_irrigate(struct city *pcity, struct player *pplayer, int i, int j);
  40. int in_city_radius(int x, int y);
  41. int is_ok_city_spot(int x, int y); /* laughable, really. */
  42. int make_dy(int y1, int y2);
  43. int make_dx(int x1, int x2);
  44. void generate_minimap(void);
  45. void remove_city_from_minimap(int x, int y);
  46. void add_city_to_minimap(int x, int y);
  47. void locally_zero_minimap(int x, int y); /* I should imp this someday -- Syela */
  48. void initialize_infrastructure_cache(struct city *pcity);
  49. void contemplate_settling(struct player *pplayer, struct city *pcity);
  50. struct unit *other_passengers(struct unit *punit);
  51.  
  52. #endif
  53.  
  54.  
  55.  
  56.