2010-08-08 10:06:34 +02:00
|
|
|
#ifndef H_GC_GIVE
|
|
|
|
#define H_GC_GIVE
|
2017-01-10 18:20:47 +01:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2010-08-08 10:06:34 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2014-11-03 08:33:07 +01:00
|
|
|
struct item_type;
|
|
|
|
struct order;
|
|
|
|
struct unit;
|
2014-12-10 21:17:00 +01:00
|
|
|
struct message;
|
2014-11-03 08:33:07 +01:00
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
int give_item(int want, const struct item_type *itype,
|
2011-03-07 08:02:35 +01:00
|
|
|
struct unit *src, struct unit *dest, struct order *ord);
|
2015-01-30 20:37:14 +01:00
|
|
|
struct message * disband_men(int n, struct unit * u, struct order *ord);
|
|
|
|
struct message * give_men(int n, struct unit *u, struct unit *u2,
|
2011-03-07 08:02:35 +01:00
|
|
|
struct order *ord);
|
2019-05-01 20:46:26 +02:00
|
|
|
int give_unit_allowed(const struct unit * u);
|
2015-01-30 20:37:14 +01:00
|
|
|
void give_unit(struct unit *u, struct unit *u2, struct order *ord);
|
|
|
|
void give_cmd(struct unit * u, struct order * ord);
|
|
|
|
struct message * check_give(const struct unit * u, const struct unit * u2, struct order *ord);
|
|
|
|
bool can_give_to(struct unit *u, struct unit *u2);
|
2019-05-01 20:46:26 +02:00
|
|
|
bool rule_transfermen(void);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|