Initial Import of Win32 Classic Blades of Exile and associated Scenario Editor codes.
Chokboyz git-svn-id: http://openexile.googlecode.com/svn/trunk@70 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
44
Win32/Blades of Exile/ITEM.H
Normal file
44
Win32/Blades of Exile/ITEM.H
Normal file
@@ -0,0 +1,44 @@
|
||||
#ifndef _ITEM_H
|
||||
#define _ITEM_H
|
||||
|
||||
#include "location.h"
|
||||
|
||||
/* item_properties: */
|
||||
/*
|
||||
0000 0001 identified
|
||||
0000 0010 someone's property
|
||||
0000 0100 magic
|
||||
0000 1000 contained in sth
|
||||
0001 0000 cursed
|
||||
0010 0000 concealed
|
||||
0100 0000 <not used>
|
||||
1000 0000 <not used>
|
||||
*/
|
||||
|
||||
#define ITEM_PROP_IDENTIFIED 1
|
||||
#define ITEM_PROP_PROPERTY 2
|
||||
#define ITEM_PROP_MAGIC 4
|
||||
#define ITEM_PROP_CONTAINED 8
|
||||
#define ITEM_PROP_CURSED 16
|
||||
#define ITEM_PROP_CONCEALED 32
|
||||
|
||||
struct item_record_type {
|
||||
short variety, item_level;
|
||||
char awkward, bonus, protection, charges, type, magic_use_type;
|
||||
unsigned char graphic_num,ability, ability_strength, type_flag, is_special,a;
|
||||
short value;
|
||||
unsigned char weight, special_class;
|
||||
location item_loc;
|
||||
char full_name[25], name[15];
|
||||
unsigned char treas_class, item_properties, reserved1, reserved2;
|
||||
|
||||
/* functions */
|
||||
bool isIdent() const; /* is identified ? */
|
||||
bool isMagic() const; /* is magic ? */
|
||||
bool isContained() const; /* is contained in sth ? */
|
||||
bool isCursed() const; /* is cursed ? */
|
||||
bool isProperty() const; /* is someones property? */
|
||||
bool isConcealed() const; /* is the item ability concealed ? */
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user