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
RevLine 
[10050]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:
[10184]14    MountPoint (const Vector& up, const Vector& forward, const Vector& center, const std::string& name);
[10050]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
[10057]27
28    void mount(WorldEntity* entity);
29    void unmount();
30
31
32  private:
[10058]33    WorldEntity*         _mount;       //!< the entity mounted at this mount point
[10184]34    std::string          _name;        //!< the name of the mount point
[10057]35
[10050]36};
37
38#endif /* _MOUNT_POINT_H */
Note: See TracBrowser for help on using the repository browser.