Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/orxonox/objects/pickup/ShipItem.h @ 2457

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