Last change
on this file since 10305 was
10232,
checked in by patrick, 18 years ago
|
mount point xml file parsing and object creation
|
File size:
987 bytes
|
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 | |
---|
21 | void setDescription(const std::string& description); |
---|
22 | void setOrxClass(const std::string& orxClass); |
---|
23 | |
---|
24 | virtual void tick (float time); |
---|
25 | virtual void draw() const; |
---|
26 | |
---|
27 | void debugDraw() const; |
---|
28 | |
---|
29 | |
---|
30 | void mount(WorldEntity* entity); |
---|
31 | void unmount(); |
---|
32 | |
---|
33 | |
---|
34 | private: |
---|
35 | WorldEntity* _mount; //!< the entity mounted at this mount point |
---|
36 | std::string _name; //!< the name of the mount point |
---|
37 | |
---|
38 | std::string _description; //!< string containing an optional description |
---|
39 | |
---|
40 | }; |
---|
41 | |
---|
42 | #endif /* _MOUNT_POINT_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.