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