00001 #ifndef _INVENTORY_H_ 00002 #define _INVENTORY_H_ 00003 00004 #include <stdlib.h> 00005 00006 #include "Animation.h" 00007 #include "AnimationTypes.h" 00008 #include "Object.h" 00009 00010 class Inventory : public Object 00011 { 00012 public: 00013 00014 Inventory(); 00015 Inventory(int condition,int value); 00016 virtual ~Inventory(); 00017 00021 bool hasAnimation() { return _hasAnimation;} 00022 int getAnimation() { return _animation;} 00023 00024 vector < Animation > getMovementAnimations() { return _movementAnimations; } 00025 vector < Animation > getStillAnimations() { return _stillAnimations; } 00026 vector < Animation > getActionAnimations() { return _actionAnimations; } 00027 00028 void setValue(int t) { _value = t;} 00029 int getValue() { return _value;} 00030 void setCondition(int c) {_condition = c;} 00031 int getCondition() {return _condition;} 00032 int getRandomValue(int low, int high); 00033 void calculateValue(); 00034 00035 protected: 00039 bool _hasAnimation; 00040 int _animation; 00041 00042 00043 int _value; // how much the item is worth 00044 int _condition; // condition of the item 00045 00046 vector <Animation> _movementAnimations; 00047 vector <Animation> _stillAnimations; 00048 vector <Animation> _actionAnimations; 00049 }; 00050 00051 #endif