aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/items.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-02-04 20:22:59 -0500
committerPaul Gilbert2015-02-04 20:22:59 -0500
commit8eb9ad50f8ddf23147b999fa40c6231a1a623d41 (patch)
tree1d0d34dcf4b41500272ce60a571725b5fb5243c5 /engines/xeen/items.h
parent4953b7954aca078be9655971f925f82c51e472db (diff)
downloadscummvm-rg350-8eb9ad50f8ddf23147b999fa40c6231a1a623d41.tar.gz
scummvm-rg350-8eb9ad50f8ddf23147b999fa40c6231a1a623d41.tar.bz2
scummvm-rg350-8eb9ad50f8ddf23147b999fa40c6231a1a623d41.zip
XEEN: Split Character class into it's own file
Diffstat (limited to 'engines/xeen/items.h')
-rw-r--r--engines/xeen/items.h54
1 files changed, 1 insertions, 53 deletions
diff --git a/engines/xeen/items.h b/engines/xeen/items.h
index c0b82b9fce..1e208615f8 100644
--- a/engines/xeen/items.h
+++ b/engines/xeen/items.h
@@ -23,63 +23,11 @@
#ifndef XEEN_ITEMS_H
#define XEEN_ITEMS_H
-#include "common/scummsys.h"
-#include "common/array.h"
-#include "common/serializer.h"
+#include "xeen/character.h"
namespace Xeen {
#define TOTAL_ITEMS 10
-#define INV_ITEMS_TOTAL 9
-
-enum BonusFlags {
- ITEMFLAG_BONUS_MASK = 0xBF, ITEMFLAG_CURSED = 0x40, ITEMFLAG_BROKEN = 0x80
-};
-
-enum ItemCategory {
- CATEGORY_WEAPON = 0, CATEGORY_ARMOR = 1, CATEGORY_ACCESSORY = 2, CATEGORY_MISC = 3
-};
-
-class XeenItem {
-public:
- int _material;
- uint _id;
- int _bonusFlags;
- int _frame;
-public:
- XeenItem();
-
- void clear();
-
- void synchronize(Common::Serializer &s);
-
- int getElementalCategory() const;
-
- int getAttributeCategory() const;
-};
-
-class InventoryItems : public Common::Array<XeenItem> {
-public:
- InventoryItems();
-
- void discardItem(int itemIndex);
-
- void equipItem(int itemIndex);
-
- void removeItem(int itemIndex);
-
- void sort();
-};
-
-class InventoryItemsGroup {
-private:
- InventoryItems *_itemSets[4];
-public:
- InventoryItemsGroup(InventoryItems &weapons, InventoryItems &armor,
- InventoryItems &accessories, InventoryItems &misc);
-
- InventoryItems &operator[](ItemCategory category);
-};
class Treasure {
public: