Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/mount_points/src/world_entities/mount_point.h @ 10184

Last change on this file since 10184 was 10184, checked in by patrick, 17 years ago

extended model again, added mounting point generation procedures now working on a nicer interface

File size: 792 bytes
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    MountPoint(const TiXmlElement* root);
16    virtual ~MountPoint ();
17
18    void init();
19    virtual void loadParams(const TiXmlElement* root);
20
21
22    virtual void tick (float time);
23    virtual void draw() const;
24
25    void debugDraw() const;
26
27
28    void mount(WorldEntity* entity);
29    void unmount();
30
31
32  private:
33    WorldEntity*         _mount;       //!< the entity mounted at this mount point
34    std::string          _name;        //!< the name of the mount point
35
36};
37
38#endif /* _MOUNT_POINT_H */
Note: See TracBrowser for help on using the repository browser.