Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

more on mount points

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