OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
worldobjects.cpp File Reference
#include "worldobjects.h"
#include "game/serialize.h"
#include "world/objects/itemtorchburning.h"
#include "world/objects/item.h"
#include "world/objects/npc.h"
#include "world/objects/interactive.h"
#include "world/objects/vob.h"
#include "world/collisionzone.h"
#include "world/triggers/cscamera.h"
#include "world/triggers/pfxcontroller.h"
#include "world/triggers/triggerworldstart.h"
#include "world/triggers/abstracttrigger.h"
#include "world.h"
#include "utils/workers.h"
#include "utils/dbgpainter.h"
#include "gothic.h"
#include <Tempest/Painter>
#include <Tempest/Application>
#include <Tempest/Log>

Go to the source code of this file.

Functions

template<class T >
static T & deref (std::unique_ptr< T > &x)
 
template<class T >
static T & deref (T *x)
 
template<class T >
static T & deref (T &x)
 
template<class T >
static bool checkFlag (T &, WorldObjects::SearchFlg)
 
static bool checkFlag (Npc &n, WorldObjects::SearchFlg f)
 
static bool checkFlag (Interactive &i, WorldObjects::SearchFlg f)
 
template<class T >
static bool checkTargetType (T &, TargetType)
 
static bool checkTargetType (Npc &n, TargetType t)
 
template<class T >
static bool canSee (const Npc &, const T &)
 
static bool canSee (const Npc &pl, const Npc &n)
 
static bool canSee (const Npc &pl, const Interactive &n)
 
static bool canSee (const Npc &pl, const Item &n)
 

Function Documentation

◆ canSee() [1/4]

template<class T >
static bool canSee ( const Npc ,
const T &   
)
static

Definition at line 1032 of file worldobjects.cpp.

◆ canSee() [2/4]

static bool canSee ( const Npc pl,
const Interactive n 
)
static

Definition at line 1038 of file worldobjects.cpp.

◆ canSee() [3/4]

static bool canSee ( const Npc pl,
const Item n 
)
static

Definition at line 1042 of file worldobjects.cpp.

◆ canSee() [4/4]

static bool canSee ( const Npc pl,
const Npc n 
)
static

Definition at line 1034 of file worldobjects.cpp.

◆ checkFlag() [1/3]

static bool checkFlag ( Interactive i,
WorldObjects::SearchFlg  f 
)
static

Definition at line 1018 of file worldobjects.cpp.

◆ checkFlag() [2/3]

static bool checkFlag ( Npc n,
WorldObjects::SearchFlg  f 
)
static

Definition at line 1008 of file worldobjects.cpp.

◆ checkFlag() [3/3]

template<class T >
static bool checkFlag ( T &  ,
WorldObjects::SearchFlg   
)
static

Definition at line 1006 of file worldobjects.cpp.

◆ checkTargetType() [1/2]

static bool checkTargetType ( Npc n,
TargetType  t 
)
static

Definition at line 1027 of file worldobjects.cpp.

◆ checkTargetType() [2/2]

template<class T >
static bool checkTargetType ( T &  ,
TargetType   
)
static

Definition at line 1025 of file worldobjects.cpp.

◆ deref() [1/3]

template<class T >
static T & deref ( std::unique_ptr< T > &  x)
static

Definition at line 997 of file worldobjects.cpp.

◆ deref() [2/3]

template<class T >
static T & deref ( T &  x)
static

Definition at line 1003 of file worldobjects.cpp.

◆ deref() [3/3]

template<class T >
static T & deref ( T *  x)
static

Definition at line 1000 of file worldobjects.cpp.