Item();
public:
+ const char *Name() const { return name; }
+
bool IsMostUseful() const { return usability & USABILITY_MOST_USEFUL; }
bool IsEquipable() const { return usability & USABILITY_EQUIPABLE; }
bool IsCursed() const { return usability & USABILITY_CURSED; }
bool HasBattleAnimation() const { return properties & PROPERTY_HAS_BATTLE_ANIMATION; }
bool HasIkariEffect() const { return properties & PROPERTY_HAS_IKARI_EFFECT; }
-private:
+// temporary setters
+public:
+ void SetName(const char *n) { name = n; }
+ void SetMenuIcon(const graphics::Sprite *icon) { menuIcon = icon; }
+ void SetUsableInBattle() { usability |= USABILITY_BATTLE; }
+ void SetTargettingMode(int m) { targettingMode = m; }
+
+public:
enum Usability {
USABILITY_MOST_USEFUL = 1,
USABILITY_EQUIPABLE = 2,
};
private:
- graphics::Sprite *menuIcon;
- graphics::Sprite *chestIcon;
+ const char *name;
+ const graphics::Sprite *menuIcon;
+ const graphics::Sprite *chestIcon;
Uint16 value;
Uint16 properties;