OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
FirePlace Class Reference

#include <fireplace.h>

Inheritance diagram for FirePlace:
Interactive Vob

Public Member Functions

 FirePlace (Vob *parent, World &world, const zenkit::VFire &vob, Flags flags)
 
- Public Member Functions inherited from Interactive
 Interactive (Vob *parent, World &world, const zenkit::VMovableObject &vob, Flags flags)
 
void load (Serialize &fin) override
 
void save (Serialize &fout) const override
 
void postValidate ()
 
void resetPositionToTA (int32_t state)
 
void updateAnimation (uint64_t dt)
 
void tick (uint64_t dt)
 
void onKeyInput (KeyCodec::Action act)
 
std::string_view tag () const
 
std::string_view focusName () const
 
bool checkMobName (std::string_view dest) const
 
std::string_view ownerName () const
 
bool overrideFocus () const
 
Tempest::Vec3 displayPosition () const
 
std::string_view displayName () const
 
auto bBox () const -> const Tempest::Vec3 *
 
int32_t stateId () const
 
int32_t stateCount () const
 
bool setMobState (std::string_view scheme, int32_t st) override
 
void emitTriggerEvent (TriggerEvent::Type type) const
 
void emitSoundEffect (std::string_view sound, float range, bool freeSlot)
 
std::string_view schemeName () const
 
std::string_view posSchemeName () const
 
bool isContainer () const
 
bool isDoor () const
 
bool isTrueDoor (const Npc &npc) const
 
bool isLadder () const
 
std::string_view pickLockCode () const
 
void setAsCracked (bool c)
 
bool isCracked () const
 
bool needToLockpick (const Npc &pl) const
 
Inventoryinventory ()
 
void setSlotItem (MeshObjects::Mesh &&itm, std::string_view slot)
 
uint32_t stateMask () const
 
bool canSeeNpc (const Npc &npc, bool freeLos) const
 
Tempest::Vec3 nearestPoint (const Npc &to) const
 
bool isAvailable () const
 
bool isStaticState () const
 
bool isDetachState (const Npc &npc) const
 
bool canQuitAtState (const Npc &npc, int32_t state) const
 
bool attach (Npc &npc)
 
bool detach (Npc &npc, bool quick)
 
bool isAttached (const Npc &to)
 
auto animNpc (const AnimationSolver &solver, Anim t) const -> const Animation::Sequence *
 
void marchInteractives (DbgPainter &p) const
 
- 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 isDynamic () const
 

Protected Member Functions

void load (Serialize &fin) override
 
void moveEvent () override
 
void onStateChanged () override
 
- Protected Member Functions inherited from Interactive
Tempest::Matrix4x4 nodeTranform (std::string_view nodeName) const
 
void moveEvent () override
 
float extendedSearchRadius () const override
 

Additional Inherited Members

- Public Types inherited from Interactive
enum  Anim : int8_t {
  In = 1 , Active = 0 , Out = -1 , ToStand = 10 ,
  FromStand = 11
}
 
- 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< Vobload (Vob *parent, World &world, const zenkit::VirtualObject &vob, Flags flags)
 
- Protected Attributes inherited from Vob
Worldworld
 
zenkit::VirtualObjectType vobType = zenkit::VirtualObjectType::UNKNOWN
 
uint32_t vobObjectID = uint32_t(-1)
 

Detailed Description

Definition at line 6 of file fireplace.h.

Constructor & Destructor Documentation

◆ FirePlace()

FirePlace::FirePlace ( Vob parent,
World world,
const zenkit::VFire &  vob,
Flags  flags 
)

Definition at line 5 of file fireplace.cpp.

Member Function Documentation

◆ load()

void FirePlace::load ( Serialize fin)
overrideprotectedvirtual

Reimplemented from Vob.

Definition at line 11 of file fireplace.cpp.

◆ moveEvent()

void FirePlace::moveEvent ( )
overrideprotectedvirtual

Reimplemented from Vob.

Definition at line 16 of file fireplace.cpp.

◆ onStateChanged()

void FirePlace::onStateChanged ( )
overrideprotectedvirtual

Reimplemented from Interactive.

Definition at line 23 of file fireplace.cpp.


The documentation for this class was generated from the following files: