- Timestamp:
- Apr 6, 2011, 11:06:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/portals/src/orxonox/worldentities/PortalEndPoint.h
r8177 r8198 8 8 #include "StaticEntity.h" 9 9 #include "graphics/Billboard.h" 10 #include "objects/triggers/DistanceMultiTrigger.h" 11 #include "tools/interfaces/Tickable.h" 10 #include "../../modules/objects/triggers/DistanceMultiTrigger.h" 12 11 13 12 namespace orxonox 14 13 { 15 class _OrxonoxExport PortalEndPoint : public StaticEntity14 class _OrxonoxExport PortalEndPoint : public DistanceMultiTrigger 16 15 { 17 16 public: … … 20 19 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 21 20 //virtual void tick(float dt); 22 static std::map<unsigned int, PortalEndPoint *> idMap_s; 21 static std::map<unsigned int, PortalEndPoint *> idMap_s; //!< maps integer id values to portalendpoints 23 22 inline void setID(unsigned int id) 24 23 { … … 30 29 return this->id_; 31 30 } 31 void jumpOut(WorldEntity * entity); //!< relocate an entity to the position of the endpoint and add it to the set of recentlyPortedOut entities 32 void tick(float dt); 33 bool hasRecentlyJumpedOut(WorldEntity * entity); //!< check if a certain entity recently jumped out of this endpoint 32 34 protected: 33 35 private: 34 36 unsigned int id_; 35 std::set<WorldEntity *> recentlyJumpedOut_; 36 std::string material_; 37 std::set<WorldEntity *> recentlyJumpedOut_; //!< Entities which recently jumped out of this EndPoint, hence they shouldn't be pulled in again if the endpoint is the beginning of a link 37 38 Billboard billboard_; 38 DistanceMultiTrigger trigger_;39 39 }; 40 40
Note: See TracChangeset
for help on using the changeset viewer.