Last change
on this file since 10342 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
|
Rev | Line | |
---|
[10050] | 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: |
---|
[10314] | 14 | MountPoint (const Vector& up, const Vector& forward, const Vector& center, const std::string& name); |
---|
[10050] | 15 | virtual ~MountPoint (); |
---|
| 16 | |
---|
| 17 | void init(); |
---|
[10314] | 18 | void initMountPoint(const TiXmlElement* root); |
---|
| 19 | void loadParam(const TiXmlElement* root); |
---|
| 20 | void loadDetails(const TiXmlElement* root); |
---|
[10050] | 21 | |
---|
[10314] | 22 | void setDescription(const std::string& description); |
---|
| 23 | void setOrxClass(const std::string& orxClass); |
---|
[10050] | 24 | |
---|
| 25 | virtual void tick (float time); |
---|
| 26 | virtual void draw() const; |
---|
| 27 | |
---|
| 28 | void debugDraw() const; |
---|
| 29 | |
---|
[10057] | 30 | |
---|
| 31 | void mount(WorldEntity* entity); |
---|
| 32 | void unmount(); |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | private: |
---|
[10058] | 36 | WorldEntity* _mount; //!< the entity mounted at this mount point |
---|
[10314] | 37 | std::string _name; //!< the name of the mount point |
---|
[10057] | 38 | |
---|
[10314] | 39 | std::string _description; //!< string containing an optional description |
---|
| 40 | |
---|
[10050] | 41 | }; |
---|
| 42 | |
---|
| 43 | #endif /* _MOUNT_POINT_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.