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
Line 
1#ifndef _ShipItems_H__
2#define _ShipItems_H__
3#include <string>
4#include "SpaceShip.h"
5#include <map>
6#include "ShipEquipmentClasses.h"
7
8
9
10namespace 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        };
26
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 */
30Class _OrxonoxExport Useable : public ShipItem{
31
32
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                        };
41
42                        public:
43                                subItemTypeUseable CheckSubType();
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 */
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}
85
86
87
88
89
90
91
92
93
94
95#endif
Note: See TracBrowser for help on using the repository browser.