154 calc->extra_turns[
ei][act] = turns;
174 calc->rmextra_turns[
ei][act] = turns;
191 calc->activity_turns[act] = turns;
220 turns =
calc->extra_turns[
tgti][act];
224 turns =
calc->rmextra_turns[
tgti][act];
226 turns =
calc->activity_turns[act];
252 if (
calc->extra_turns[
ei][
i] > 0) {
280 if (
calc->rmextra_turns[
ei][
i] > 0) {
293 if (
calc->activity_turns[
i] > 0) {
347 ptype->attack_strength,
ptype->defense_strength,
351 const char *veteran_name =
354 if (veteran_name !=
NULL) {
void astr_add_line(struct astring *astr, const char *format,...)
void astr_clear(struct astring *astr)
void astr_add(struct astring *astr, const char *format,...)
static const char * astr_str(const struct astring *astr) fc__attribute((nonnull(1)))
int turns_to_activity_done(const struct tile *ptile, Activity_type_id act, const struct extra_type *tgt, const struct unit *pmodunit)
void combat_odds_to_astr(struct astring *str, struct unit_list *punits, const struct tile *ptile, const struct unit *punit, const char *pct_str)
static void calc_activity(struct actcalc *calc, const struct tile *ptile, const struct unit *pmodunit, Activity_type_id new_act, const struct extra_type *new_tgt)
const char * concat_tile_activity_text(struct tile *ptile)
double unit_win_chance(const struct civ_map *nmap, const struct unit *attacker, const struct unit *defender, const struct action *paction)
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
enum unit_activity Activity_type_id
#define fc_assert(condition)
#define fc_calloc(n, esz)
int rmextra_turns[MAX_EXTRA_TYPES][ACTIVITY_LAST]
int activity_turns[ACTIVITY_LAST]
int extra_turns[MAX_EXTRA_TYPES][ACTIVITY_LAST]
enum unit_activity activity
struct extra_type * activity_target
int tile_activity_time(enum unit_activity activity, const struct tile *ptile, const struct extra_type *tgt)
bool is_tile_activity(enum unit_activity activity)
int get_activity_rate_this_turn(const struct unit *punit)
int get_activity_rate(const struct unit *punit)
bool is_build_activity(enum unit_activity activity)
const char * get_activity_text(enum unit_activity activity)
bool is_clean_activity(enum unit_activity activity)
#define activity_type_iterate(_act_)
#define activity_type_iterate_end
#define unit_list_iterate(unitlist, punit)
#define unit_list_iterate_end
const char * utype_veteran_name_translation(const struct unit_type *punittype, int level)
const struct unit_type * unit_type_get(const struct unit *punit)