Last change
on this file since 8177 was
8177,
checked in by anbueche, 13 years ago
|
added PortalEndPoint and PortalLink, billboard for endpoint implemented
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Rev | Line | |
---|
[8177] | 1 | #ifndef _PortalEndPoint_H__ |
---|
| 2 | #define _PortalEndPoint_H__ |
---|
| 3 | |
---|
| 4 | #include <set> |
---|
| 5 | #include <string> |
---|
| 6 | #include <map> |
---|
| 7 | |
---|
| 8 | #include "StaticEntity.h" |
---|
| 9 | #include "graphics/Billboard.h" |
---|
| 10 | #include "objects/triggers/DistanceMultiTrigger.h" |
---|
| 11 | #include "tools/interfaces/Tickable.h" |
---|
| 12 | |
---|
| 13 | namespace orxonox |
---|
| 14 | { |
---|
| 15 | class _OrxonoxExport PortalEndPoint : public StaticEntity |
---|
| 16 | { |
---|
| 17 | public: |
---|
| 18 | PortalEndPoint(BaseObject* creator); |
---|
| 19 | virtual ~PortalEndPoint(); |
---|
| 20 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); |
---|
| 21 | //virtual void tick(float dt); |
---|
| 22 | static std::map<unsigned int, PortalEndPoint *> idMap_s; |
---|
| 23 | inline void setID(unsigned int id) |
---|
| 24 | { |
---|
| 25 | this->id_ = id; |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | inline unsigned int getID() const |
---|
| 29 | { |
---|
| 30 | return this->id_; |
---|
| 31 | } |
---|
| 32 | protected: |
---|
| 33 | private: |
---|
| 34 | unsigned int id_; |
---|
| 35 | std::set<WorldEntity *> recentlyJumpedOut_; |
---|
| 36 | std::string material_; |
---|
| 37 | Billboard billboard_; |
---|
| 38 | DistanceMultiTrigger trigger_; |
---|
| 39 | }; |
---|
| 40 | |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | #endif /* _Portals_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.