Files
oboe/osx/item.h
Celtic Minstrel fad42597a6 - Fixed up file loading (but then broke it again)
- Reworked preferences to use plist
- Cleaned out the shareware code
- More tweaks to the dialog engine
- Edited dialog #869 (the choose prefab scenario dialog) to use new invisible button (type 6) and to remove the "Must be registered" lines.
- Tweaked window size so that the startup screen fits within it.
- More major refactoring work.
- A few additions/alterations to boe.consts.h

Current status:
- Scenario editor: compiles and runs, but can't load a scenario
- Character editor: don't know
- Game: Doesn't even compile
I wouldn't normally submit code that doesn't compile, but I have already made a lot of major changes in this revision.
I will submit a version that compiles as soon as possible.

git-svn-id: http://openexile.googlecode.com/svn/trunk@28 4ebdad44-0ea0-11de-aab3-ff745001d230
2009-04-23 20:53:49 +00:00

60 lines
1.5 KiB
C++

/*
* item.h
* BoE
*
* Created by Celtic Minstrel on 20/04/09.
*
*/
#include "location.h"
namespace legacy { struct item_record_type; };
class cItemRec {
public:
short variety, item_level;
char awkward, bonus, protection, charges, type, magic_use_type;
unsigned char graphic_num,ability, ability_strength,type_flag, is_special;
short value;
unsigned char weight, special_class;
location item_loc;
char full_name[25], name[15];
unsigned char treas_class,item_properties;
private:
unsigned char reserved1;
unsigned char reserved2;
public:
//string desc; // for future use
unsigned char rec_treas_class() const;
bool is_ident() const;
bool is_property() const;
bool is_magic() const;
bool is_contained() const;
bool is_cursed() const;
bool is_concealed() const;
void set_ident(bool b);
void set_property(bool b);
void set_magic(bool b);
void set_contained(bool b);
void set_cursed(bool b);
void set_concealed(bool b);
short item_weight() const;
cItemRec();
cItemRec(long preset);
cItemRec& operator = (legacy::item_record_type& old);
};
/*
typedef struct {
short variety, item_level;
char awkward, bonus, protection, charges, type;
unsigned char graphic_num,ability, type_flag, is_special;
short value;
Boolean identified, magic;
unsigned char weight, description_flag;
char full_name[25], name[15];
unsigned char reserved1,reserved2;
unsigned char magic_use_type, ability_strength, treas_class, real_abil;
} short_item_record_type;
*/