Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation/src/orxonox/objects/pickup/ShipItem.h @ 2390

Last change on this file since 2390 was 2094, checked in by landauf, 16 years ago

found more tabs in pickups ;)

  • Property svn:eol-style set to native
File size: 2.1 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
11{
12    class _OrxonoxExport ShipItem
13    {
14        enum itemType //Diffrent Types of Items
15        {
16            Useable,
17            Powerups,
18            Permanent
19        };
20
21        public:
22            itemType CheckType();
23            virtual
24
25        private:
26            itemType type;
27            string itemname;
28    };
29
30
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        };
44
45        public:
46            //subItemTypeUseable CheckSubType();
47
48        private:
49            subItemTypeUseable subtype_usable;
50    };
51
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        };
63
64        public:
65            subItemTypePermanent CheckSubType();
66
67        private:
68            subItemTypePermanent subtype_permanent;
69    };
70
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        };
83
84        public:
85            //subItemTypePowerups CheckSubType();
86
87        private:
88            subItemTypePowerups subtype_powerups;
89    };
90}
91
92#endif
Note: See TracBrowser for help on using the repository browser.