/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2016, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure, Markus Armbruster
*
* Empire is free software: you can redistribute it and/or modify
*
* Known contributors to this file:
* Ville Virrankoski, 1995
- * Markus Armbruster, 2004-2016
+ * Markus Armbruster, 2004-2020
*/
#ifndef UPDATE_H
/* A nation's budget for an update */
struct budget {
/* production by sector type */
- struct budg_item prod[SCT_TYPE_MAX + 1];
+ struct budg_item prod[ARRAY_SIZE(dchr) - 1];
/* level production output */
float level[4];
/* building and maintenance */
extern void dodeliver(struct sctstr *);
/* distribute.c */
extern int dodistribute(struct sctstr *, int, double);
+/* fallout.c */
+extern void fallout(int);
/* finish.c */
extern void finish_sects(int);
/* human.c */
extern void prep_planes(int, struct bp *);
extern void prod_plane(int, struct bp *, int);
/* populace.c */
+extern void check_pop_loss(struct sctstr *);
extern void populace(struct sctstr *, int);
extern int total_work(int, int, int, int, int, int);
/* prepare.c */
extern void guerrilla(struct sctstr *);
/* sect.c */
extern double buildeff(struct sctstr *);
-extern void do_fallout(struct sctstr *, int);
-extern void spread_fallout(struct sctstr *, int);
-extern void decay_fallout(struct sctstr *, int);
extern void produce_sect(int, struct bp *);
/* ship.c */
extern void prep_ships(int, struct bp *);