Last change
on this file since 10431 was
10314,
checked in by patrick, 18 years ago
|
merged branche mount_point to trunk. this will add mount point abilities, bsp transparency fix and some other smaller stuff to this trunk
|
File size:
1.0 KB
|
Line | |
---|
1 | #ifndef _MOUNT_POINT_H |
---|
2 | #define _MOUNT_POINT_H |
---|
3 | |
---|
4 | #include "world_entity.h" |
---|
5 | |
---|
6 | class TiXmlElement; |
---|
7 | |
---|
8 | |
---|
9 | class MountPoint : public WorldEntity |
---|
10 | { |
---|
11 | ObjectListDeclaration(MountPoint); |
---|
12 | |
---|
13 | public: |
---|
14 | MountPoint (const Vector& up, const Vector& forward, const Vector& center, const std::string& name); |
---|
15 | virtual ~MountPoint (); |
---|
16 | |
---|
17 | void init(); |
---|
18 | void initMountPoint(const TiXmlElement* root); |
---|
19 | void loadParam(const TiXmlElement* root); |
---|
20 | void loadDetails(const TiXmlElement* root); |
---|
21 | |
---|
22 | void setDescription(const std::string& description); |
---|
23 | void setOrxClass(const std::string& orxClass); |
---|
24 | |
---|
25 | virtual void tick (float time); |
---|
26 | virtual void draw() const; |
---|
27 | |
---|
28 | void debugDraw() const; |
---|
29 | |
---|
30 | |
---|
31 | void mount(WorldEntity* entity); |
---|
32 | void unmount(); |
---|
33 | |
---|
34 | |
---|
35 | private: |
---|
36 | WorldEntity* _mount; //!< the entity mounted at this mount point |
---|
37 | std::string _name; //!< the name of the mount point |
---|
38 | |
---|
39 | std::string _description; //!< string containing an optional description |
---|
40 | |
---|
41 | }; |
---|
42 | |
---|
43 | #endif /* _MOUNT_POINT_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.