Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2000


Ignore:
Timestamp:
Oct 22, 2008, 10:30:59 PM (15 years ago)
Author:
dsommer
Message:

Adding Subclasses to ShipItem.h

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  
    66#include "ShipEquipmentClasses.h"
    77
    8 enum itemType{ //Diffrent Types of Items
    9        
    10                 Usable,
    11                 Powerups,
    12                 Permanent
    13                 };
     8
    149
    1510namespace orxonox{
     11Class _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        };
    1626
    1727
     28/* Useables are Items the Player can choose when to activate and then show an instant action/effect
     29 * or for a certain duration */
     30Class _OrxonoxExport Useable : public ShipItem{
    1831
    1932
    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                        };
    2941
     42                        public:
     43                                subItemTypeUseable CheckSubType();
    3044
     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 */
     51Class _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.
     67Class _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}
    3185
    3286
Note: See TracChangeset for help on using the changeset viewer.