35 #ifndef _PortalEndPoint_H__ 36 #define _PortalEndPoint_H__ 66 virtual void changedActivity(
void)
override;
69 { this->trigger_->addTarget(target); }
71 virtual void XMLEventPort(Element& xmlelement,
XMLPort::Mode mode)
override;
72 static std::map<unsigned int, PortalEndPoint *>
idMap_s;
74 { this->reenterDelay_ = seconds; }
76 {
return this->reenterDelay_; }
77 inline void setID(
unsigned int id)
80 inline unsigned int getID()
const 85 { this->templateName_ = name; this->addTemplate(name); }
89 {
return this->templateName_; }
95 bool execute(
bool bTriggered,
BaseObject* trigger);
The BaseObject is the parent of all classes representing an instance in the game. ...
Definition: BaseObject.h:63
const std::string & getTemplate()
Get the name of the attached design template.
Definition: PortalEndPoint.h:88
Definition of the DistanceMultiTrigger class.
#define _PortalsExport
Definition: PortalsPrereqs.h:58
The StaticEntity is the simplest derivative of the orxonox::WorldEntity class.
Definition: StaticEntity.h:50
The WorldSound class is to be used for sounds with position and orientation.
Definition: WorldSound.h:44
::std::string string
Definition: gtest-port.h:756
unsigned int getReenterDelay()
Definition: PortalEndPoint.h:75
The DistanceMultiTrigger is a MultiTrigger that triggers whenever an object (that is of the specified...
Definition: DistanceMultiTrigger.h:90
Shared library macros, enums, constants and forward declarations for the questsystem module ...
Interface for receiving window events.
Definition: RadarViewable.h:48
static std::map< unsigned int, PortalEndPoint * > idMap_s
Maps the id of each PortalEndPoint to a pointer to that PortalEndPoint.
Definition: PortalEndPoint.h:72
static const std::string EVENTFUNCTIONNAME
= "execute"
Definition: PortalEndPoint.h:108
xmlelement
Definition: Super.h:519
The MobileEntity is a derived class from orxonox::WorldEntity and orxonox::Tickable.
Definition: MobileEntity.h:53
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
A PortalEndPoint serves as portal entrance and/or exit.
Definition: PortalEndPoint.h:59
void setReenterDelay(unsigned int seconds)
Definition: PortalEndPoint.h:73
void setTemplate(const std::string &name)
Set templateName_ (the name of the design Template) and add that Template to this Object...
Definition: PortalEndPoint.h:84
Mode
Definition: CorePrereqs.h:102
std::map< MobileEntity *, time_t > jumpOutTimes_
Stores the time at which a certain MobileEntity jumped out of this PortalEndPoint.
Definition: PortalEndPoint.h:115
WorldSound * portalSound_
Definition: PortalEndPoint.h:118
void setTarget(const std::string &target)
Definition: PortalEndPoint.h:68
std::string templateName_
The name of the design template used for this endpoint.
Definition: PortalEndPoint.h:112
std::set< MobileEntity * > recentlyJumpedOut_
Stores the entities witch recently jumped out of this PortalEndPoint and haven't left the activation ...
Definition: PortalEndPoint.h:116
unsigned int id_
the hopefully (depends on the writer of the levelfile) unique id, which is used to establish links be...
Definition: PortalEndPoint.h:110
int reenterDelay_
Definition: PortalEndPoint.h:114
Definition of the XMLPortEventState() macro, as well as some more useful macros.
DistanceMultiTrigger * trigger_
the DistanceMultiTrigger which notices near entities of the defined type
Definition: PortalEndPoint.h:111
unsigned int getID() const
Definition: PortalEndPoint.h:80
void setID(unsigned int id)
Definition: PortalEndPoint.h:77