Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/tools/mount_point.h @ 10768

Last change on this file since 10768 was 10618, checked in by bknecht, 18 years ago

merged cleanup into trunk (only improvements)

File size: 1.2 KB
Line 
1#ifndef _MOUNT_POINT_H
2#define _MOUNT_POINT_H
3
4#include "world_entity.h"
5
6class TiXmlElement;
7
8
9class 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    inline const Vector& getCenter() { return this->_center; }
31
32    void mount(PNode* entity);
33    void unmount();
34    PNode* getMount() { return this->_mount; }
35
36  private:
37    PNode*               _mount;       //!< the entity mounted at this mount point
38    std::string          _name;        //!< the name of the mount point
39
40    std::string          _description; //!< string containing an optional description
41
42    Vector               _center;
43    Vector               _up;
44    Vector               _forward;
45
46};
47
48#endif /* _MOUNT_POINT_H */
Note: See TracBrowser for help on using the repository browser.