2010-08-08 10:06:34 +02:00
|
|
|
#ifndef H_KRNL_EQUIPMENT_H
|
|
|
|
#define H_KRNL_EQUIPMENT_H
|
2014-06-21 08:59:04 +02:00
|
|
|
|
2018-05-11 21:30:26 +02:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2010-08-08 10:06:34 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2014-11-01 13:10:22 +01:00
|
|
|
struct unit;
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#define EQUIP_SKILLS (1<<1)
|
|
|
|
#define EQUIP_SPELLS (1<<2)
|
|
|
|
#define EQUIP_ITEMS (1<<3)
|
|
|
|
#define EQUIP_SPECIAL (1<<4)
|
|
|
|
#define EQUIP_ALL (0xFF)
|
2018-05-11 21:30:26 +02:00
|
|
|
bool equip_unit_mask(struct unit *u, const char *eqname, int mask);
|
|
|
|
bool equip_unit(struct unit *u, const char *eqname);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|