00001
00002
00003
00004
00005
00006
00007
00008
00035
00036
00038 extern int could_see(int u);
00039
00040
00041
00043 extern int can_be_on(int u, Side *side, int x, int y, int *p_without = NULL);
00045 extern int can_be_on_known(
00046 int u, Side *side, int x, int y, int *p_without = NULL);
00047
00049 extern int could_be_occupant_of(int u, int u2);
00051 extern int could_be_occupant(int u);
00052
00054 extern int can_be_in(int u2, Side *side, UnitView *uvtspt);
00055
00056
00057
00059 extern int longest_economic_input(int u, int u2, int m);
00061 extern int longest_economic_input(int u, int u2);
00063 extern int *cv__longest_economic_inputs;
00065 extern int longest_economic_input(int u);
00066
00068 extern void productivity_on_known(
00069 int *p_mtypes, int u, Side *side, int x, int y);
00070
00072 extern int can_survive_on_known(
00073 int u, Side *side, int x, int y, int *p_without = NULL);
00075 extern int can_survive_on_known(
00076 Unit *survivor, int x, int y, int *p_without = NULL);
00077
00079 extern int can_refuel(Unit *supplier, Unit *demander, int m);
00080
00081
00082
00084 extern int can_create_completed_unit(Unit *acpsrc, Unit *creator, int u2);
00086 extern int can_construct_any(int u, Side *side);
00088 extern int can_construct(Unit *acpsrc, Unit *constructor, int u2);
00090 extern int can_construct_any(Unit *acpsrc, Unit *constructor);
00091
00093 extern int can_repair_any(Unit *actor, Unit *repairer);
00094
00095
00096
00098 extern int fire_damage_mean(int u, int u2);
00099
00101 extern int attack_damage_mean(int u, int u2);
00102
00104 extern int detonate_0dist_damage_mean(int u, int u2);
00106 extern int detonate_ranged_damage_mean(int u, int u2);
00108 extern int detonate_damage_mean(int u, int u2);
00110 extern int n_detonations_available(int u);
00111
00113 extern int could_counterattack(int u, int u2);
00115 extern int could_countercapture(int u, int u2, Side *side);
00117 extern int could_prevent_capture_of(int u, int u2);
00119 extern int could_prevent_capture_by(int u, int u2);
00121 extern int could_damage_by_fire(int u, int u2);
00123 extern int could_damage_by_attacks(int u, int u2);
00125 extern int could_destroy_by_fire(int u, int u2);
00127 extern int can_destroy_by_fire(Unit *actor, Unit *destroyer, int u);
00129 extern int can_destroy_any_by_fire(Unit *actor, Unit *destroyer);
00131 extern int could_destroy_by_attacks(int u, int u2);
00133 extern int can_destroy_by_attacks(Unit *actor, Unit *destroyer, int u);
00135 extern int can_destroy_any_by_attacks(Unit *actor, Unit *destroyer);
00137 extern int could_damage_by_combat(int u, int u2);
00139 extern int can_destroy_any_by_combat(Unit *acpsrc, Unit *destroyer);
00141 extern int could_damage_by_detonations(int u, int u2);
00143 extern int could_destroy_by_detonations(int u, int u2);
00145 extern int can_destroy_any_by_detonations(int u, Side *side);
00147 extern int can_destroy_any_by_detonations(Unit *acpsrc, Unit *exploder);
00149 extern int could_damage(int u, int u2);
00151 extern int could_damage_any(int u);
00153 extern int can_destroy_any(Unit *acpsrc, Unit *destroyer);
00155 extern int can_capture_by_fire(Unit *actor, Unit *captor, int u);
00157 extern int can_capture_any(Unit *actor, Unit *captor);
00159 extern int can_countercapture_any(Unit *actor, Unit *countercaptor);
00161 extern int can_prevent_capture_by_any(Unit *actor, Unit *anticaptor);
00163 extern int could_defeat_by_fire(int u, int u2, Side *side);
00165 extern int can_defeat_by_fire(Unit *actor, Unit *firer, int u);
00167 extern int could_defeat_by_attacks(int u, int u2, Side *side);
00169 extern int can_defeat_by_attacks(Unit *actor, Unit *attacker, int u);
00171 extern int could_defeat_by_counterattacks(int u, int u2, Side *side);
00173 extern int can_defeat_by_counterattacks(
00174 Unit *actor, Unit *counterattacker, int u);
00176 extern int can_defeat_any_by_counterattacks(
00177 Unit *actor, Unit *counterattacker);
00179 extern int could_overwatch_against(int u, int u2, Side *side);
00181 extern int could_overwatch_against_and_defeat(int u, int u2);
00183 extern int can_overwatch_against_and_defeat(
00184 Unit *actor, Unit *overwatcher, int u);
00186 extern int can_overwatch_against_and_defeat_any(
00187 Unit *actor, Unit *overwatcher);
00189 extern int could_defend_against(int u, int u2, Side *side);
00191 extern int could_defend_against_any(int u);
00193 extern int can_defend_against_any(Unit *actor, Unit *defender);
00194
00195
00196
00198 extern int could_explore(int u);
00200 extern int can_explore(Unit *actor, Unit *explorer);
00201
00202
00203
00205 extern int can_construct_explorers(Unit *actor, Unit *constructor);
00207 extern int could_colonize(int u);
00209 extern int can_colonize(int u, Side *side);
00211 extern int can_colonize(Unit *actor, Unit *colonizer);
00213 extern int can_construct_colonizers(Unit *actor, Unit *constructor);
00215 extern int can_construct_offenders(Unit *actor, Unit *constructor);
00217 extern int can_construct_defenders(Unit *actor, Unit *constructor);