Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

no codechanges, just changed eol-style to native

  • Property svn:eol-style set to native
File size: 1.7 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{
[2083]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();
[2055]22                virtual
[2000]23
[1998]24        private:
[2000]25                itemType type;
[2055]26                string itemname;
[2000]27        };
[1998]28
29
[2000]30/* Useables are Items the Player can choose when to activate and then show an instant action/effect
31 * or for a certain duration */
[2083]32class _OrxonoxExport Useable : public ShipItem{
[1998]33
34
[2000]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                        };
[1998]43
[2000]44                        public:
[2055]45                                //subItemTypeUseable CheckSubType();
[1998]46
[2000]47                        private:
[2055]48                                subItemTypeUseable subtype_usable;
[2000]49};
[1998]50
[2000]51/* Permanents are Items, that effect the Player or his Ship from the instance he picks them up
52   until he drops them again */
[2083]53class _OrxonoxExport Permanent : public ShipItem{
[1998]54
[2000]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();
[1998]63
[2000]64                        private:
[2055]65                                subItemTypePermanent subtype_permanent;
[2000]66};
[1998]67
[2000]68// Powerups effect the Player right after he picks them up for a certain Duration /or permanently.
[2083]69class _OrxonoxExport Powerups : public ShipItem{
[1998]70
[2055]71        enum subItem TypePowerups{ //Diffrent Types of Items of the Type Powerups
[2000]72                        Weapon,
73                        Boosters,
74                        Shields,
75                        Repairkits,
76                        Appearance,
77                        Trigger
78                        };
79                        public:
[2055]80                        //subItemTypePowerups CheckSubType();
[1998]81
[2000]82                        private:
[2055]83                        subItemTypePowerups subtype_powerups;
[2000]84};
85
86}
87
88
89
90
91
92
93
94
95
96
[1998]97#endif
Note: See TracBrowser for help on using the repository browser.