Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pickups/src/orxonox/objects/pickup/ShipItem.h @ 2000

Last change on this file since 2000 was 2000, checked in by dsommer, 16 years ago

Adding Subclasses to ShipItem.h

File size: 1.6 KB
RevLine 
[1998]1#ifndef _ShipItems_H__
2#define _ShipItems_H__
3#include <string>
4#include "SpaceShip.h"
5#include <map>
6#include "ShipEquipmentClasses.h"
7
8
[2000]9
[1998]10namespace orxonox{
[2000]11Class _OrxonoxExport ShipItem{
[1998]12
[2000]13        enum itemType{ //Diffrent Types of Items
[1998]14
[2000]15                        Useable,
16                        Powerups,
17                        Permanent
18                        };
[1998]19
20        public:
21                itemType CheckType();
[2000]22
[1998]23        private:
[2000]24                itemType type;
25        };
[1998]26
27
[2000]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{
[1998]31
32
[2000]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                        };
[1998]41
[2000]42                        public:
43                                subItemTypeUseable CheckSubType();
[1998]44
[2000]45                        private:
46                                subItemTypeUseable subtype;
47};
[1998]48
[2000]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{
[1998]52
[2000]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();
[1998]61
[2000]62                        private:
63                                subItemTypePermanent subtype;
64};
[1998]65
[2000]66// Powerups effect the Player right after he picks them up for a certain Duration /or permanently.
67Class _OrxonoxExport Powerups : public ShipItem{
[1998]68
[2000]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();
[1998]79
[2000]80                        private:
81                        subItemTypePowerups subtype;
82};
83
84}
85
86
87
88
89
90
91
92
93
94
[1998]95#endif
Note: See TracBrowser for help on using the repository browser.