xoreos  0.0.5
Classes | Enumerations | Functions | Variables
Engines::Witcher Namespace Reference

Classes

class  Area
 An area in The Witcher, holding all objects and area geometry within, as well as general area properties like the current background music and ambient sounds. More...
 
class  Campaign
 
class  Console
 
class  Creature
 
class  Door
 
class  EngineProbe
 
class  Functions
 
class  Game
 
class  Location
 
class  LuaBindings
 
class  Module
 
class  Object
 An object within a Witcher area. More...
 
class  ObjectContainer
 
class  ObjectDistanceSort
 A class able to sort objects by distance to a target object. More...
 
class  Placeable
 
class  ScriptContainer
 
struct  ScriptName
 
class  SearchType
 
class  Situated
 Witcher situated object. More...
 
class  Waypoint
 
class  WitcherEngine
 
class  WitcherModelLoader
 

Enumerations

enum  ObjectType {
  kObjectTypeCreature = 1U << 0, kObjectTypeItem = 1U << 1, kObjectTypeTrigger = 1U << 2, kObjectTypeDoor = 1U << 3,
  kObjectTypeAreaOfEffect = 1U << 4, kObjectTypeWaypoint = 1U << 5, kObjectTypePlaceable = 1U << 6, kObjectTypeStore = 1U << 7,
  kObjectTypeSound = 1U << 9, kObjectTypeSpawnPoint = 1U << 10, kObjectTypeActionPoint = 1U << 11, kObjectTypeInvalid = 0x7FFF,
  kObjectTypeAll = 0x7FFF, kObjectTypeMAX = 0x7FFF, kObjectTypeArea = 1U << 29, kObjectTypeModule = 1U << 30,
  kObjectTypeSelf = 1U << 31
}
 
enum  Script {
  kScriptAttackBegin = 0, kScriptAttacked, kScriptBattleBegin, kScriptBlocked,
  kScriptCastSpellAt, kScriptClick, kScriptClosed, kScriptDamaged,
  kScriptDeath, kScriptDialogue, kScriptDisarm, kScriptDisturbed,
  kScriptEndDialogue, kScriptEndRound, kScriptEnter, kScriptExit,
  kScriptFailToOpen, kScriptHeartbeat, kScriptInternal, kScriptIsUsable,
  kScriptItemSold, kScriptJoinAttempt, kScriptLock, kScriptModuleLoad,
  kScriptModuleStart, kScriptNotice, kScriptOpen, kScriptOpenStore,
  kScriptOutOfAmmo, kScriptPlayerDeath, kScriptPlayerDying, kScriptPlayerLevelUp,
  kScriptPlayerRespawn, kScriptPlayerRest, kScriptPutIntoInventory, kScriptRemoveFromInventory,
  kScriptRest, kScriptSpawn, kScriptSpellCastAt, kScriptTrapTriggered,
  kScriptUnlock, kScriptUsed, kScriptUserdefine, kScriptUserdefined,
  kScriptWitness, kScriptMAX
}
 

Functions

static int pushFakeObject (lua_State &state, const Common::UString &type)
 
static void unimplementedFunction (const Common::UString &name, const Common::UString &type="")
 
static void unimplementedVariable (const Common::UString &name, const Common::UString &type="")
 
static Witcher::Object kDefaultValueObjectInvalid (kObjectTypeInvalid)
 
static Witcher::Object kDefaultValueObjectSelf (kObjectTypeSelf)
 
static const Aurora::NWScript::Variable kDefaultIntMinus1 ((int32) - 1)
 
static const Aurora::NWScript::Variable kDefaultInt0 ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultInt1 ((int32) 1)
 
static const Aurora::NWScript::Variable kDefaultInt9 ((int32) 9)
 
static const Aurora::NWScript::Variable kDefaultInt18 ((int32) 18)
 
static const Aurora::NWScript::Variable kDefaultFloatMinus1_0 (- 1.0f)
 
static const Aurora::NWScript::Variable kDefaultFloat0_0 (0.0f)
 
static const Aurora::NWScript::Variable kDefaultFloat0_5 (0.5f)
 
static const Aurora::NWScript::Variable kDefaultFloat1_0 (1.0f)
 
static const Aurora::NWScript::Variable kDefaultFloat30_0 (30.0f)
 
static const Aurora::NWScript::Variable kDefaultFloat40_0 (40.0f)
 
static const Aurora::NWScript::Variable kDefaultVector0 (0.0f, 0.0f, 0.0f)
 
static const Aurora::NWScript::Variable kDefaultStringEmpty (Common::UString(""))
 
static const Aurora::NWScript::Variable kDefaultCameraTransitionTypeSnap ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultFalse ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultGenderMale ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultObjectTypeAll ((int32) 32767)
 
static const Aurora::NWScript::Variable kDefaultObjectTypeCreature ((int32) 1)
 
static const Aurora::NWScript::Variable kDefaultPersistentZoneActive ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultProjectilePathTypeDefault ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultTalkVolumeTalk ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultTrue ((int32) 1)
 
static const Aurora::NWScript::Variable kDefaultFadeSpeedMedium (2.0f)
 
void createEngineProbes (std::list< const ::Engines::EngineProbe *> &probes)
 
void createEngineProbes (std::list< const EngineProbe *> &probes)
 Create all probes for this engine and add them to the list. More...
 

Variables

static const ScriptName kScriptNames []
 
static const Aurora::NWScript::Variable kDefaultObjectInvalid & kDefaultValueObjectInvalid
 
static const Aurora::NWScript::Variable kDefaultObjectSelf & kDefaultValueObjectSelf
 

Enumeration Type Documentation

◆ ObjectType

Enumerator
kObjectTypeCreature 
kObjectTypeItem 
kObjectTypeTrigger 
kObjectTypeDoor 
kObjectTypeAreaOfEffect 
kObjectTypeWaypoint 
kObjectTypePlaceable 
kObjectTypeStore 
kObjectTypeSound 
kObjectTypeSpawnPoint 
kObjectTypeActionPoint 
kObjectTypeInvalid 
kObjectTypeAll 
kObjectTypeMAX 
kObjectTypeArea 

Fake value for an area object.

kObjectTypeModule 

Fake value for a module object.

kObjectTypeSelf 

Fake value to describe the calling object in a script.

Definition at line 34 of file types.h.

◆ Script

Enumerator
kScriptAttackBegin 
kScriptAttacked 
kScriptBattleBegin 
kScriptBlocked 
kScriptCastSpellAt 
kScriptClick 
kScriptClosed 
kScriptDamaged 
kScriptDeath 
kScriptDialogue 
kScriptDisarm 
kScriptDisturbed 
kScriptEndDialogue 
kScriptEndRound 
kScriptEnter 
kScriptExit 
kScriptFailToOpen 
kScriptHeartbeat 
kScriptInternal 
kScriptIsUsable 
kScriptItemSold 
kScriptJoinAttempt 
kScriptLock 
kScriptModuleLoad 
kScriptModuleStart 
kScriptNotice 
kScriptOpen 
kScriptOpenStore 
kScriptOutOfAmmo 
kScriptPlayerDeath 
kScriptPlayerDying 
kScriptPlayerLevelUp 
kScriptPlayerRespawn 
kScriptPlayerRest 
kScriptPutIntoInventory 
kScriptRemoveFromInventory 
kScriptRest 
kScriptSpawn 
kScriptSpellCastAt 
kScriptTrapTriggered 
kScriptUnlock 
kScriptUsed 
kScriptUserdefine 
kScriptUserdefined 
kScriptWitness 
kScriptMAX 

Definition at line 57 of file types.h.

Function Documentation

◆ createEngineProbes() [1/2]

void Engines::Witcher::createEngineProbes ( std::list< const EngineProbe *> &  probes)

Create all probes for this engine and add them to the list.

◆ createEngineProbes() [2/2]

void Engines::Witcher::createEngineProbes ( std::list< const ::Engines::EngineProbe *> &  probes)

Definition at line 87 of file probes.cpp.

Referenced by createEngineProbes().

Here is the caller graph for this function:

◆ kDefaultCameraTransitionTypeSnap()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultCameraTransitionTypeSnap ( (int32 0)
static

◆ kDefaultFadeSpeedMedium()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultFadeSpeedMedium ( 2.  0f)
static

◆ kDefaultFalse()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultFalse ( (int32 0)
static

◆ kDefaultFloat0_0()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultFloat0_0 ( 0.  0f)
static

◆ kDefaultFloat0_5()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultFloat0_5 ( 0.  5f)
static

◆ kDefaultFloat1_0()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultFloat1_0 ( 1.  0f)
static

◆ kDefaultFloat30_0()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultFloat30_0 ( 30.  0f)
static

◆ kDefaultFloat40_0()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultFloat40_0 ( 40.  0f)
static

◆ kDefaultFloatMinus1_0()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultFloatMinus1_0 ( - 1.  0f)
static

◆ kDefaultGenderMale()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultGenderMale ( (int32 0)
static

◆ kDefaultInt0()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultInt0 ( (int32 0)
static

◆ kDefaultInt1()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultInt1 ( (int32 1)
static

◆ kDefaultInt18()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultInt18 ( (int32 18)
static

◆ kDefaultInt9()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultInt9 ( (int32 9)
static

◆ kDefaultIntMinus1()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultIntMinus1 ( (int32) -  1)
static

◆ kDefaultObjectTypeAll()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultObjectTypeAll ( (int32 32767)
static

◆ kDefaultObjectTypeCreature()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultObjectTypeCreature ( (int32 1)
static

◆ kDefaultPersistentZoneActive()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultPersistentZoneActive ( (int32 0)
static

◆ kDefaultProjectilePathTypeDefault()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultProjectilePathTypeDefault ( (int32 0)
static

◆ kDefaultStringEmpty()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultStringEmpty ( Common::UString("")  )
static

◆ kDefaultTalkVolumeTalk()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultTalkVolumeTalk ( (int32 0)
static

◆ kDefaultTrue()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultTrue ( (int32 1)
static

◆ kDefaultValueObjectInvalid()

static Witcher::Object Engines::Witcher::kDefaultValueObjectInvalid ( kObjectTypeInvalid  )
static

◆ kDefaultValueObjectSelf()

static Witcher::Object Engines::Witcher::kDefaultValueObjectSelf ( kObjectTypeSelf  )
static

◆ kDefaultVector0()

static const Aurora::NWScript::Variable Engines::Witcher::kDefaultVector0 ( 0.  0f,
0.  0f,
0.  0f 
)
static

◆ pushFakeObject()

static int Engines::Witcher::pushFakeObject ( lua_State &  state,
const Common::UString type 
)
static

◆ unimplementedFunction()

static void Engines::Witcher::unimplementedFunction ( const Common::UString name,
const Common::UString type = "" 
)
static

Definition at line 50 of file bindings.cpp.

References Common::UString::c_str(), and warning().

Referenced by Engines::Witcher::LuaBindings::CGUIPanel::luaActivate(), Engines::Witcher::LuaBindings::CDefs::luaAddAbility(), Engines::Witcher::LuaBindings::CDefs::luaAddGameEffectMedium(), Engines::Witcher::LuaBindings::CDefs::luaAddGameEffectType(), Engines::Witcher::LuaBindings::CFontMgr::luaAddResolution(), Engines::Witcher::LuaBindings::CDefs::luaAddSpellType(), Engines::Witcher::LuaBindings::CGUINewControl::luaAddTextLayer(), Engines::Witcher::LuaBindings::CGUINewControl::luaAddTextureLayer(), Engines::Witcher::LuaBindings::CGUINewControl::luaAddTextureLayerTransformable(), Engines::Witcher::LuaBindings::CDefs::luaAddWeaponType(), Engines::Witcher::LuaBindings::luaAurPrintf(), Engines::Witcher::LuaBindings::luaBor(), Engines::Witcher::LuaBindings::CAttackDefList::luaClear(), Engines::Witcher::LuaBindings::CDefs::luaClear(), Engines::Witcher::LuaBindings::luaConsole(), Engines::Witcher::LuaBindings::CGUIMan::luaCreateAurObject(), Engines::Witcher::LuaBindings::CGUIMan::luaCreateAurObjectWithMesh(), Engines::Witcher::LuaBindings::CGUINewControl::luaCreateModel(), Engines::Witcher::LuaBindings::CGUIPanel::luaDeactivate(), Engines::Witcher::LuaBindings::C2DA::luaDelete(), Engines::Witcher::LuaBindings::CCamera::luaDist(), Engines::Witcher::LuaBindings::CCamera::luaFollowOffset(), Engines::Witcher::LuaBindings::CAttrs::luaGet(), Engines::Witcher::LuaBindings::CRules::luaGet2DArrays(), Engines::Witcher::LuaBindings::ScreenSizes::luaGetActualGUIWidth(), Engines::Witcher::LuaBindings::luaGetAttackDefList(), Engines::Witcher::LuaBindings::luaGetAuroraSettings(), Engines::Witcher::LuaBindings::C2DA::luaGetCExoStringEntry(), Engines::Witcher::LuaBindings::luaGetClientExoApp(), Engines::Witcher::LuaBindings::luaGetClientPhysics(), Engines::Witcher::LuaBindings::CClientExoApp::luaGetClientTextLanguage(), Engines::Witcher::LuaBindings::luaGetCurrentCameraSettings(), Engines::Witcher::LuaBindings::luaGetDefs(), Engines::Witcher::LuaBindings::CFontMgr::luaGetFontMgr(), Engines::Witcher::LuaBindings::luaGetGUIMan(), Engines::Witcher::LuaBindings::C2DA::luaGetIntEntry(), Engines::Witcher::LuaBindings::C2DArrays::luaGetLanguagesTable(), Engines::Witcher::LuaBindings::C2DA::luaGetNumRows(), Engines::Witcher::LuaBindings::luaGetRules(), Engines::Witcher::LuaBindings::CGUINewControl::luaGetTextLabel(), Engines::Witcher::LuaBindings::CTlkTable::luaGetTlkTable(), Engines::Witcher::LuaBindings::luaGUIAurAttachToObject(), Engines::Witcher::LuaBindings::CGUINewControl::luaIgnoreHitCheck(), Engines::Witcher::LuaBindings::luaIsDebugBuild(), Engines::Witcher::LuaBindings::luaIsDemo(), Engines::Witcher::LuaBindings::luaIsDjinni(), Engines::Witcher::LuaBindings::luaIsEditor(), Engines::Witcher::LuaBindings::C2DA::luaLoad2DArray(), Engines::Witcher::LuaBindings::CFontMgr::luaLoadFont(), Engines::Witcher::LuaBindings::CGUIControlBinds::luaNew(), Engines::Witcher::LuaBindings::CGUIPanel::luaNew(), Engines::Witcher::LuaBindings::C2DA::luaNew(), Engines::Witcher::LuaBindings::C2DA::luaNewLocal(), Engines::Witcher::LuaBindings::CExoSoundSource::luaNewLocal(), Engines::Witcher::LuaBindings::Quaternion::luaNewLocal(), Engines::Witcher::LuaBindings::CCamera::luaPitch(), Engines::Witcher::LuaBindings::CGUINewControl::luaPlayAnimation(), Engines::Witcher::LuaBindings::CGUIPanel::luaRenderSceneViewFirst(), Engines::Witcher::LuaBindings::CGUINewControl::luaSetAlignmentVertical(), Engines::Witcher::LuaBindings::CGUINewControl::luaSetDebugName(), Engines::Witcher::LuaBindings::CPhysics::luaSetEnableCamera(), Engines::Witcher::LuaBindings::CExoSoundSource::luaSetLooping(), Engines::Witcher::LuaBindings::CGUIPanel::luaSetModel(), Engines::Witcher::LuaBindings::CGUIPanel::luaSetName(), Engines::Witcher::LuaBindings::CExoSoundSource::luaSetVolume(), Engines::Witcher::LuaBindings::CGUIPanel::luaToggleOff(), Engines::Witcher::LuaBindings::C2DA::luaUnload2DArray(), and Engines::Witcher::LuaBindings::luaValidNumber().

Here is the call graph for this function:

◆ unimplementedVariable()

static void Engines::Witcher::unimplementedVariable ( const Common::UString name,
const Common::UString type = "" 
)
static

Variable Documentation

◆ kDefaultValueObjectInvalid

const Aurora::NWScript::Variable kDefaultObjectInvalid& Engines::Witcher::kDefaultValueObjectInvalid
static

Definition at line 94 of file function_tables.h.

◆ kDefaultValueObjectSelf

const Aurora::NWScript::Variable kDefaultObjectSelf& Engines::Witcher::kDefaultValueObjectSelf
static

Definition at line 95 of file function_tables.h.

◆ kScriptNames

const ScriptName Engines::Witcher::kScriptNames[]
static

Definition at line 47 of file container.cpp.

Referenced by Engines::Witcher::ScriptContainer::readScripts().