forked from github/server
cf1f3972b6
rules should be in their own modules. here: upkeep is a concept all by itself, should have its own tests, etc. movement code should be in move.c. cleaning up some superfluous include directives.
22 lines
332 B
C
22 lines
332 B
C
#ifndef UPKEEP_H
|
|
#define UPKEEP_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct region;
|
|
struct unit;
|
|
void get_food(struct region * r);
|
|
int lifestyle(const struct unit * u);
|
|
|
|
enum {
|
|
FOOD_FROM_PEASANTS = 1,
|
|
FOOD_FROM_OWNER = 2,
|
|
FOOD_IS_FREE = 4
|
|
};
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|