80 EventState(
const FunctorPtr& statefunction,
Identifier* subclass,
bool bSink =
false) : bProcessingEvent_(false), activeEvents_(0), statefunction_(statefunction), subclass_(subclass), bSink_(bSink) {}
85 {
return this->statefunction_; }
The BaseObject is the parent of all classes representing an instance in the game. ...
Definition: BaseObject.h:63
std::shared_ptr< Functor > FunctorPtr
Definition: FunctorPtr.h:57
The EventState contains information about an event state.
Definition: Event.h:77
bool activate_
True if this is an activating event (the event source was inactive before and just triggered the even...
Definition: Event.h:55
Shared library macros, enums, constants and forward declarations for the core library ...
::std::string string
Definition: gtest-port.h:756
Structure to describe a single event.
Definition: ScriptController.h:42
BaseObject * originator_
The object which triggered this event.
Definition: Event.h:57
bool bSink_
Determines whether the EventState acts as an EventSink forwarding any Event (even if the state didn't...
Definition: Event.h:92
EventState(const FunctorPtr &statefunction, Identifier *subclass, bool bSink=false)
Definition: Event.h:80
std::string statename_
The name of the state this event affects.
Definition: Event.h:56
The Event struct contains information about a fired Event.
Definition: Event.h:51
Event(bool activate, BaseObject *originator, const std::string &name)
Definition: Event.h:53
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _CoreExport
Definition: CorePrereqs.h:61
std::string name_
The name of this event.
Definition: Event.h:58
The Identifier is used to identify the class of an object and to store information about the class...
Definition: Identifier.h:109
FunctorPtr statefunction_
A functor to set the state.
Definition: Event.h:90
const FunctorPtr & getFunctor() const
Definition: Event.h:84
Identifier * subclass_
Originators must be an instance of this class (usually BaseObject, but some statefunctions allow a se...
Definition: Event.h:91
bool bProcessingEvent_
This becomes true while the container processes an event (used to prevent loops)
Definition: Event.h:88
int activeEvents_
The number of events which affect this state and are currently active.
Definition: Event.h:89
internal::String name_
Definition: gtest.cc:2289