|
OpenGothic
Open source reimplementation of Gothic I and II
|
#include <abstracttrigger.h>
Classes | |
| struct | Cb |
Public Member Functions | |
| AbstractTrigger (Vob *parent, World &world, const zenkit::VirtualObject &data, Flags flags) | |
| virtual | ~AbstractTrigger () |
| std::string_view | name () const |
| bool | isEnabled () const |
| bool | hasDelayedEvents () const |
| void | processDelayedEvents () |
| void | processEvent (const TriggerEvent &evt) |
| virtual void | onIntersect (Npc &n) |
| virtual void | tick (uint64_t dt) |
| void | save (Serialize &fout) const override |
| void | load (Serialize &fin) override |
Public Member Functions inherited from Vob | |
| Vob (World &owner) | |
| Vob (Vob *parent, World &owner, const zenkit::VirtualObject &vob, Flags flags) | |
| virtual | ~Vob () |
| void | saveVobTree (Serialize &fin) const |
| void | loadVobTree (Serialize &fin) |
| Tempest::Vec3 | position () const |
| auto | transform () const -> const Tempest::Matrix4x4 & |
| void | setGlobalTransform (const Tempest::Matrix4x4 &p) |
| auto | localTransform () const -> const Tempest::Matrix4x4 & |
| void | setLocalTransform (const Tempest::Matrix4x4 &p) |
| virtual bool | setMobState (std::string_view scheme, int32_t st) |
| virtual bool | isDynamic () const |
| virtual float | extendedSearchRadius () const |
Protected Member Functions | |
| virtual void | onTrigger (const TriggerEvent &evt) |
| virtual void | onUntrigger (const TriggerEvent &evt) |
| virtual void | onGotoMsg (const TriggerEvent &evt) |
| void | moveEvent () override |
| bool | hasTicksEnabled () const |
| void | enableTicks () |
| void | disableTicks () |
| const std::vector< Npc * > & | intersections () const |
| void | implProcessEvent (const TriggerEvent &evt) |
Protected Attributes | |
| std::string | vobName |
| std::string | target |
Protected Attributes inherited from Vob | |
| World & | world |
| zenkit::VirtualObjectType | vobType = zenkit::VirtualObjectType::UNKNOWN |
| uint32_t | vobObjectID = uint32_t(-1) |
Additional Inherited Members | |
Public Types inherited from Vob | |
| enum | Flags : uint8_t { None = 0 , Startup = 0x1 << 0 , Static = 0x1 << 1 } |
Static Public Member Functions inherited from Vob | |
| static std::unique_ptr< Vob > | load (Vob *parent, World &world, const zenkit::VirtualObject &vob, Flags flags) |
Definition at line 46 of file abstracttrigger.h.
| AbstractTrigger::AbstractTrigger | ( | Vob * | parent, |
| World & | world, | ||
| const zenkit::VirtualObject & | data, | ||
| Flags | flags | ||
| ) |
Definition at line 13 of file abstracttrigger.cpp.
|
virtual |
Definition at line 53 of file abstracttrigger.cpp.
|
protected |
Definition at line 203 of file abstracttrigger.cpp.
|
protected |
Definition at line 196 of file abstracttrigger.cpp.
| bool AbstractTrigger::hasDelayedEvents | ( | ) | const |
Definition at line 192 of file abstracttrigger.cpp.
|
protected |
Definition at line 143 of file abstracttrigger.cpp.
|
protected |
Definition at line 91 of file abstracttrigger.cpp.
|
protected |
Definition at line 210 of file abstracttrigger.cpp.
| bool AbstractTrigger::isEnabled | ( | ) | const |
Definition at line 59 of file abstracttrigger.cpp.
|
overridevirtual |
Reimplemented from Vob.
Reimplemented in MoveTrigger, and PfxController.
Definition at line 174 of file abstracttrigger.cpp.
|
overrideprotectedvirtual |
Reimplemented from Vob.
Definition at line 139 of file abstracttrigger.cpp.
| std::string_view AbstractTrigger::name | ( | ) | const |
Definition at line 55 of file abstracttrigger.cpp.
|
protectedvirtual |
Reimplemented in MoveTrigger.
Definition at line 136 of file abstracttrigger.cpp.
|
virtual |
Reimplemented in ZoneTrigger.
Definition at line 147 of file abstracttrigger.cpp.
|
protectedvirtual |
Reimplemented in CodeMaster, Earthquake, MoveTrigger, Trigger, TriggerList, TriggerScript, and TriggerWorldStart.
Definition at line 129 of file abstracttrigger.cpp.
|
protectedvirtual |
Reimplemented in MoveTrigger.
Definition at line 133 of file abstracttrigger.cpp.
| void AbstractTrigger::processDelayedEvents | ( | ) |
Definition at line 63 of file abstracttrigger.cpp.
| void AbstractTrigger::processEvent | ( | const TriggerEvent & | evt | ) |
Definition at line 73 of file abstracttrigger.cpp.
|
overridevirtual |
Reimplemented from Vob.
Reimplemented in MoveTrigger, and PfxController.
Definition at line 164 of file abstracttrigger.cpp.
|
virtual |
Reimplemented in MoveTrigger.
Definition at line 161 of file abstracttrigger.cpp.
|
protected |
Definition at line 107 of file abstracttrigger.h.
|
protected |
Definition at line 106 of file abstracttrigger.h.