Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

more on mounting weapons

File size: 1.2 KB
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:
[10314]14    MountPoint (const Vector& up, const Vector& forward, const Vector& center, const std::string& name);
[10050]15    virtual ~MountPoint ();
16
17    void init();
[10314]18    void initMountPoint(const TiXmlElement* root);
19    void loadParam(const TiXmlElement* root);
20    void loadDetails(const TiXmlElement* root);
[10050]21
[10314]22    void setDescription(const std::string& description);
23    void setOrxClass(const std::string& orxClass);
[10050]24
25    virtual void tick (float time);
26    virtual void draw() const;
27
28    void debugDraw() const;
29
[10549]30    inline const Vector& getCenter() { return this->_center; }
[10057]31
[10534]32    void mount(PNode* entity);
[10057]33    void unmount();
[10540]34    PNode* getMount() { return this->_mount; }
[10057]35
36  private:
[10534]37    PNode*               _mount;       //!< the entity mounted at this mount point
[10314]38    std::string          _name;        //!< the name of the mount point
[10057]39
[10314]40    std::string          _description; //!< string containing an optional description
41
[10549]42    Vector               _center;
43    Vector               _up;
44    Vector               _forward;
45
[10050]46};
47
48#endif /* _MOUNT_POINT_H */
Note: See TracBrowser for help on using the repository browser.