Changeset 2094 for code/trunk/src/orxonox/objects/pickup/ShipItem.h
- Timestamp:
- Nov 1, 2008, 9:14:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/pickup/ShipItem.h
r2089 r2094 8 8 9 9 10 namespace orxonox{ 11 class _OrxonoxExport ShipItem{ 10 namespace orxonox 11 { 12 class _OrxonoxExport ShipItem 13 { 14 enum itemType //Diffrent Types of Items 15 { 16 Useable, 17 Powerups, 18 Permanent 19 }; 12 20 13 enum itemType{ //Diffrent Types of Items 21 public: 22 itemType CheckType(); 23 virtual 14 24 15 Useable, 16 Powerups, 17 Permanent 18 }; 19 20 public: 21 itemType CheckType(); 22 virtual 23 24 private: 25 itemType type; 26 string itemname; 27 }; 25 private: 26 itemType type; 27 string itemname; 28 }; 28 29 29 30 30 /* Useables are Items the Player can choose when to activate and then show an instant action/effect 31 * or for a certain duration */ 32 class _OrxonoxExport Useable : public ShipItem{ 31 /* Useables are Items the Player can choose when to activate and then show an instant action/effect 32 * or for a certain duration */ 33 class _OrxonoxExport Useable : public ShipItem 34 { 35 enum subItemTypeUseable //Diffrent Types of Items of the Type Useable 36 { 37 Rockets, 38 Repairkits, 39 Triggers, //trigger events usable by the player (Quests f.exp.) 40 Boosters, 41 Shields, 42 Appearance, 43 }; 33 44 45 public: 46 //subItemTypeUseable CheckSubType(); 34 47 35 enum subItemTypeUseable{ //Diffrent Types of Items of the Type Useable 36 Rockets, 37 Repairkits, 38 Triggers, //trigger events usable by the player (Quests f.exp.) 39 Boosters, 40 Shields, 41 Appearance, 42 }; 48 private: 49 subItemTypeUseable subtype_usable; 50 }; 43 51 44 public: 45 //subItemTypeUseable CheckSubType(); 52 /* Permanents are Items, that effect the Player or his Ship from the instance he picks them up 53 until he drops them again */ 54 class _OrxonoxExport Permanent : public ShipItem 55 { 56 enum subItemTypePermanent //Diffrent Types of Items of the Type Permanent 57 { 58 Weapon, 59 Thrusters, 60 Shields, 61 Armor 62 }; 46 63 47 private: 48 subItemTypeUseable subtype_usable; 49 }; 64 public: 65 subItemTypePermanent CheckSubType(); 50 66 51 /* Permanents are Items, that effect the Player or his Ship from the instance he picks them up 52 until he drops them again */53 class _OrxonoxExport Permanent : public ShipItem{ 67 private: 68 subItemTypePermanent subtype_permanent; 69 }; 54 70 55 enum subItemTypePermanent{ //Diffrent Types of Items of the Type Permanent 56 Weapon, 57 Thrusters, 58 Shields, 59 Armor 60 }; 61 public: 62 subItemTypePermanent CheckSubType(); 71 // Powerups effect the Player right after he picks them up for a certain Duration /or permanently. 72 class _OrxonoxExport Powerups : public ShipItem 73 { 74 enum subItem TypePowerups //Diffrent Types of Items of the Type Powerups 75 { 76 Weapon, 77 Boosters, 78 Shields, 79 Repairkits, 80 Appearance, 81 Trigger 82 }; 63 83 64 private: 65 subItemTypePermanent subtype_permanent; 66 }; 84 public: 85 //subItemTypePowerups CheckSubType(); 67 86 68 // Powerups effect the Player right after he picks them up for a certain Duration /or permanently. 69 class _OrxonoxExport Powerups : public ShipItem{ 70 71 enum subItem TypePowerups{ //Diffrent Types of Items of the Type Powerups 72 Weapon, 73 Boosters, 74 Shields, 75 Repairkits, 76 Appearance, 77 Trigger 78 }; 79 public: 80 //subItemTypePowerups CheckSubType(); 81 82 private: 83 subItemTypePowerups subtype_powerups; 84 }; 85 87 private: 88 subItemTypePowerups subtype_powerups; 89 }; 86 90 } 87 91 88 89 90 91 92 93 94 95 96 97 92 #endif
Note: See TracChangeset
for help on using the changeset viewer.