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

Classes

class  Area
 An area in Star Wars: Knights of the Old Republic II - The Sith Lords, holding all objects and rooms within, as well as general area properties like the current background music and ambient sounds. More...
 
class  CharacterGeneration
 
class  CharacterGenerationBaseMenu
 
class  CharacterGenerationInfo
 
class  CharacterGenerationNameMenu
 
class  CharacterGenerationPortraitMenu
 
class  ClassSelection
 
class  Console
 
class  Creature
 
class  CustomCharPanel
 
class  DialogGUI
 
class  Door
 
class  EngineProbe
 
class  EngineProbeLinux
 
class  EngineProbeMac
 
class  EngineProbeWindows
 
class  EngineProbeXbox
 
class  Functions
 
class  Game
 
class  GUI
 
class  HUD
 
class  IngameGUI
 
class  KotOR2Engine
 
class  KotOR2ModelLoader
 
class  MainMenu
 
class  Module
 
class  Object
 
class  ObjectContainer
 
class  ObjectDistanceSort
 A class able to sort objects by distance to a target object. More...
 
class  Placeable
 
class  QuickCharPanel
 
class  QuickOrCustomPanel
 
class  Room
 
class  ScriptContainer
 
struct  ScriptName
 
class  SearchType
 
class  Situated
 
class  Trigger
 
class  Waypoint
 

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,
  kObjectTypeEncounter = 1U << 8, kObjectTypeSound = 1U << 9, kObjectTypeInvalid = 0x7FFF, kObjectTypeAll = 0x7FFF,
  kObjectTypeMAX = 0x7FFF, kObjectTypeArea = 1U << 29, kObjectTypeModule = 1U << 30, kObjectTypeSelf = 1U << 31
}
 Object type, matches the bitfield in nwscript.nss. More...
 
enum  Script {
  kScriptAccelerate = 0, kScriptActivateItem, kScriptAnimate, kScriptAquireItem,
  kScriptAttacked, kScriptBlocked, kScriptBreak, kScriptClick,
  kScriptClosed, kScriptCreate, kScriptDamaged, kScriptDeath,
  kScriptDialogue, kScriptDisarm, kScriptDisturbed, kScriptEndDialogue,
  kScriptEndRound, kScriptEnter, kScriptExhausted, kScriptExit,
  kScriptFailToOpen, kScriptFire, kScriptHeartbeart, kScriptHeartbeat,
  kScriptHitBullet, kScriptHitFollower, kScriptHitObstacle, kScriptHitWorld,
  kScriptLock, kScriptModuleLoad, kScriptModuleStart, kScriptNotice,
  kScriptOpen, kScriptOpenStore, kScriptPlayerDeath, kScriptPlayerDying,
  kScriptPlayerLevelUp, kScriptPlayerRespawn, kScriptPlayerRest, kScriptRest,
  kScriptSpawn, kScriptSpellCastAt, kScriptTrackLoop, kScriptTrapTriggered,
  kScriptUnaquireItem, kScriptUnlock, kScriptUsed, kScriptUserdefined,
  kScriptMAX
}
 
enum  Skin {
  kSkinA = 0, kSkinB, kSkinC, kSkinH,
  kSkinMAX
}
 
enum  Gender {
  kGenderMale = 0, kGenderFemale, kGenderBoth, kGenderOther,
  kGenderNone
}
 
enum  Class {
  kClassSoldier = 0, kClassScout, kClassScoundrel, kClassJediGuardian,
  kClassJediConsular, kClassJediSentinel, kClassExpertDroid, kClassCombatDroid,
  kClassMinion, kClassTechSpecialist, kClassBountyHunter, kClassJediWeaponMaster,
  kClassJediMaster, kClassJediWatchMan, kClassSithMarauder, kClassSithLord,
  kClassSithAssassin, kClassInvalid = 255
}
 

Functions

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...
 
static KotOR2::Object kDefaultValueObjectInvalid (kObjectTypeInvalid)
 
static KotOR2::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 kDefaultFloat0_0 (0.0f)
 
static const Aurora::NWScript::Variable kDefaultFloat0_75 (0.75f)
 
static const Aurora::NWScript::Variable kDefaultFloat1_0 (1.0f)
 
static const Aurora::NWScript::Variable kDefaultFloat2_5 (2.5f)
 
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 kDefaultStringWorldEntry (Common::UString("World Entry"))
 
static const Aurora::NWScript::Variable kDefaultACDodgeBonus ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultACVsDamageTypeAll ((int32) 8199)
 
static const Aurora::NWScript::Variable kDefaultAlignmentAll ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultAttackBonusMisc ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultConversationTypeCinematic ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultDamagePowerNormal ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultDamageTypeUniversal ((int32) 8)
 
static const Aurora::NWScript::Variable kDefaultFalse ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultForcePowerAllForcePowers ((int32) - 1)
 
static const Aurora::NWScript::Variable kDefaultObjectTypeAll ((int32) 32767)
 
static const Aurora::NWScript::Variable kDefaultObjectTypeCreature ((int32) 1)
 
static const Aurora::NWScript::Variable kDefaultObjectTypeInvalid ((int32) 32767)
 
static const Aurora::NWScript::Variable kDefaultPersistentZoneActive ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultProjectilePathTypeDefault ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultSavingThrowTypeAll ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultSavingThrowTypeNone ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultTalkVolumeTalk ((int32) 0)
 
static const Aurora::NWScript::Variable kDefaultTrue ((int32) 1)
 

Variables

static const float kPCMovementSpeed = 5
 
static const char *const texturePacks [3]
 
static const ScriptName kScriptNames []
 
static const Aurora::NWScript::Variable kDefaultObjectInvalid & kDefaultValueObjectInvalid
 
static const Aurora::NWScript::Variable kDefaultObjectSelf & kDefaultValueObjectSelf
 

Enumeration Type Documentation

◆ Class

Enumerator
kClassSoldier 
kClassScout 
kClassScoundrel 
kClassJediGuardian 
kClassJediConsular 
kClassJediSentinel 
kClassExpertDroid 
kClassCombatDroid 
kClassMinion 
kClassTechSpecialist 
kClassBountyHunter 
kClassJediWeaponMaster 
kClassJediMaster 
kClassJediWatchMan 
kClassSithMarauder 
kClassSithLord 
kClassSithAssassin 
kClassInvalid 

Definition at line 124 of file types.h.

◆ Gender

Enumerator
kGenderMale 
kGenderFemale 
kGenderBoth 
kGenderOther 
kGenderNone 

Definition at line 116 of file types.h.

◆ ObjectType

Object type, matches the bitfield in nwscript.nss.

Enumerator
kObjectTypeCreature 
kObjectTypeItem 
kObjectTypeTrigger 
kObjectTypeDoor 
kObjectTypeAreaOfEffect 
kObjectTypeWaypoint 
kObjectTypePlaceable 
kObjectTypeStore 
kObjectTypeEncounter 
kObjectTypeSound 
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 33 of file types.h.

◆ Script

Enumerator
kScriptAccelerate 
kScriptActivateItem 
kScriptAnimate 
kScriptAquireItem 
kScriptAttacked 
kScriptBlocked 
kScriptBreak 
kScriptClick 
kScriptClosed 
kScriptCreate 
kScriptDamaged 
kScriptDeath 
kScriptDialogue 
kScriptDisarm 
kScriptDisturbed 
kScriptEndDialogue 
kScriptEndRound 
kScriptEnter 
kScriptExhausted 
kScriptExit 
kScriptFailToOpen 
kScriptFire 
kScriptHeartbeart 
kScriptHeartbeat 
kScriptHitBullet 
kScriptHitFollower 
kScriptHitObstacle 
kScriptHitWorld 
kScriptLock 
kScriptModuleLoad 
kScriptModuleStart 
kScriptNotice 
kScriptOpen 
kScriptOpenStore 
kScriptPlayerDeath 
kScriptPlayerDying 
kScriptPlayerLevelUp 
kScriptPlayerRespawn 
kScriptPlayerRest 
kScriptRest 
kScriptSpawn 
kScriptSpellCastAt 
kScriptTrackLoop 
kScriptTrapTriggered 
kScriptUnaquireItem 
kScriptUnlock 
kScriptUsed 
kScriptUserdefined 
kScriptMAX 

Definition at line 55 of file types.h.

◆ Skin

Enumerator
kSkinA 
kSkinB 
kSkinC 
kSkinH 
kSkinMAX 

Definition at line 108 of file types.h.

Function Documentation

◆ createEngineProbes() [1/2]

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

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

◆ createEngineProbes() [2/2]

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

Definition at line 154 of file probes.cpp.

Referenced by createEngineProbes().

Here is the caller graph for this function:

◆ kDefaultACDodgeBonus()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultACDodgeBonus ( (int32 0)
static

◆ kDefaultACVsDamageTypeAll()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultACVsDamageTypeAll ( (int32 8199)
static

◆ kDefaultAlignmentAll()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultAlignmentAll ( (int32 0)
static

◆ kDefaultAttackBonusMisc()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultAttackBonusMisc ( (int32 0)
static

◆ kDefaultConversationTypeCinematic()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultConversationTypeCinematic ( (int32 0)
static

◆ kDefaultDamagePowerNormal()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultDamagePowerNormal ( (int32 0)
static

◆ kDefaultDamageTypeUniversal()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultDamageTypeUniversal ( (int32 8)
static

◆ kDefaultFalse()

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

◆ kDefaultFloat0_0()

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

◆ kDefaultFloat0_75()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultFloat0_75 ( 0.  75f)
static

◆ kDefaultFloat1_0()

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

◆ kDefaultFloat2_5()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultFloat2_5 ( 2.  5f)
static

◆ kDefaultFloat30_0()

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

◆ kDefaultFloat40_0()

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

◆ kDefaultForcePowerAllForcePowers()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultForcePowerAllForcePowers ( (int32) -  1)
static

◆ kDefaultInt0()

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

◆ kDefaultInt1()

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

◆ kDefaultInt18()

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

◆ kDefaultInt9()

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

◆ kDefaultIntMinus1()

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

◆ kDefaultObjectTypeAll()

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

◆ kDefaultObjectTypeCreature()

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

◆ kDefaultObjectTypeInvalid()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultObjectTypeInvalid ( (int32 32767)
static

◆ kDefaultPersistentZoneActive()

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

◆ kDefaultProjectilePathTypeDefault()

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

◆ kDefaultSavingThrowTypeAll()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultSavingThrowTypeAll ( (int32 0)
static

◆ kDefaultSavingThrowTypeNone()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultSavingThrowTypeNone ( (int32 0)
static

◆ kDefaultStringEmpty()

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

◆ kDefaultStringWorldEntry()

static const Aurora::NWScript::Variable Engines::KotOR2::kDefaultStringWorldEntry ( Common::UString("World Entry")  )
static

◆ kDefaultTalkVolumeTalk()

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

◆ kDefaultTrue()

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

◆ kDefaultValueObjectInvalid()

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

◆ kDefaultValueObjectSelf()

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

◆ kDefaultVector0()

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

Variable Documentation

◆ kDefaultValueObjectInvalid

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

Definition at line 95 of file function_tables.h.

◆ kDefaultValueObjectSelf

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

Definition at line 96 of file function_tables.h.

◆ kPCMovementSpeed

const float Engines::KotOR2::kPCMovementSpeed = 5
static

Definition at line 63 of file module.cpp.

Referenced by Engines::KotOR2::Module::handlePCMovement().

◆ kScriptNames

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

Definition at line 47 of file container.cpp.

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

◆ texturePacks

const char* const Engines::KotOR2::texturePacks[3]
static
Initial value:
= {
"swpc_tex_tpc.erf",
"swpc_tex_tpb.erf",
"swpc_tex_tpa.erf"
}

Definition at line 216 of file module.cpp.

Referenced by Engines::KotOR2::Module::loadTexturePack().