~ubuntu-branches/debian/sid/freeciv/sid

« back to all changes in this revision

Viewing changes to common/aicore/cm.h

  • Committer: Package Import Robot
  • Author(s): Clint Adams, Karl Goetz, Clint Adams
  • Date: 2011-08-28 22:40:00 UTC
  • mfrom: (1.2.19 upstream)
  • Revision ID: package-import@ubuntu.com-20110828224000-j2r1erewlem25dox
Tags: 2.3.0-1
[ Karl Goetz ]
* New upstream version.
* Fix themes_sdl_use_system_fonts.diff to apply cleanly on 2.3.0
* Massage work_around_unity_induced_breakage.diff to get it
  applying to the new codebase (The patch assumes commits made
  after 2.3.0 was tagged upstream).

[ Clint Adams ]
* Fudge build system to think there is no libtool mismatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 * the weighted sum over the surplus of each type.
27
27
 */
28
28
 
29
 
#include "city.h"               /* CITY_MAP_SIZE */
30
 
#include "shared.h"             /* bool type */
 
29
/* utility */
 
30
#include "support.h"            /* bool type */
 
31
 
 
32
/* common */
 
33
#include "city.h"               /* CITY_MAP_MAX_SIZE */
31
34
 
32
35
/* A description of the goal. */
33
36
struct cm_parameter {
46
49
 
47
50
  int surplus[O_LAST];
48
51
 
49
 
  bool worker_positions_used[CITY_MAP_SIZE][CITY_MAP_SIZE];
 
52
  int city_radius_sq;
 
53
  bool *worker_positions;
50
54
  int specialists[SP_MAX];
51
55
};
52
56
 
53
 
 
54
57
void cm_init(void);
55
58
void cm_init_citymap(void);
56
 
 
 
59
void cm_clear_cache(struct city *pcity);
57
60
void cm_free(void);
58
61
 
 
62
struct cm_result *cm_result_new(struct city *pcity);
 
63
void cm_result_destroy(struct cm_result *result);
 
64
 
59
65
/*
60
66
 * Will try to meet the requirements and fill out the result. Caller
61
67
 * should test result->found_a_valid. cm_query_result will not change
87
93
int cm_result_workers(const struct cm_result *result);
88
94
 
89
95
void cm_result_from_main_map(struct cm_result *result,
90
 
                             const struct city *pcity, bool main_map);
91
 
#endif
 
96
                             const struct city *pcity);
 
97
 
 
98
#endif /* FC__CM_H */