Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2117 was 2083, checked in by landauf, 16 years ago

made some small adjustments in Pickups branch

File size: 1.7 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                virtual
23
24        private:
25                itemType type;
26                string itemname;
27        };
28
29
30/* Useables are Items the Player can choose when to activate and then show an instant action/effect
31 * or for a certain duration */
32class _OrxonoxExport Useable : public ShipItem{
33
34
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                        };
43
44                        public:
45                                //subItemTypeUseable CheckSubType();
46
47                        private:
48                                subItemTypeUseable subtype_usable;
49};
50
51/* Permanents are Items, that effect the Player or his Ship from the instance he picks them up
52   until he drops them again */
53class _OrxonoxExport Permanent : public ShipItem{
54
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();
63
64                        private:
65                                subItemTypePermanent subtype_permanent;
66};
67
68// Powerups effect the Player right after he picks them up for a certain Duration /or permanently.
69class _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
86}
87
88
89
90
91
92
93
94
95
96
97#endif
Note: See TracBrowser for help on using the repository browser.