Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2008, 9:14:14 PM (15 years ago)
Author:
landauf
Message:

found more tabs in pickups ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/pickup/ShipItem.h

    r2089 r2094  
    88
    99
    10 namespace orxonox{
    11 class _OrxonoxExport ShipItem{
     10namespace orxonox
     11{
     12    class _OrxonoxExport ShipItem
     13    {
     14        enum itemType //Diffrent Types of Items
     15        {
     16            Useable,
     17            Powerups,
     18            Permanent
     19        };
    1220
    13         enum itemType{ //Diffrent Types of Items
     21        public:
     22            itemType CheckType();
     23            virtual
    1424
    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    };
    2829
    2930
    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        };
    3344
     45        public:
     46            //subItemTypeUseable CheckSubType();
    3447
    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    };
    4351
    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        };
    4663
    47                         private:
    48                                 subItemTypeUseable subtype_usable;
    49 };
     64        public:
     65            subItemTypePermanent CheckSubType();
    5066
    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    };
    5470
    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        };
    6383
    64                         private:
    65                                 subItemTypePermanent subtype_permanent;
    66 };
     84        public:
     85            //subItemTypePowerups CheckSubType();
    6786
    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    };
    8690}
    8791
    88 
    89 
    90 
    91 
    92 
    93 
    94 
    95 
    96 
    9792#endif
Note: See TracChangeset for help on using the changeset viewer.