xoreos  0.0.5
Namespaces | Enumerations | Functions | Variables
types.h File Reference

Basic Neverwinter Nights type definitions. More...

#include "src/common/types.h"
#include "src/common/ustring.h"
Include dependency graph for types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Engines
 
 Engines::NWN
 

Enumerations

enum  Engines::NWN::ObjectType {
  Engines::NWN::kObjectTypeCreature = 1U << 0, Engines::NWN::kObjectTypeItem = 1U << 1, Engines::NWN::kObjectTypeTrigger = 1U << 2, Engines::NWN::kObjectTypeDoor = 1U << 3,
  Engines::NWN::kObjectTypeAreaOfEffect = 1U << 4, Engines::NWN::kObjectTypeWaypoint = 1U << 5, Engines::NWN::kObjectTypePlaceable = 1U << 6, Engines::NWN::kObjectTypeStore = 1U << 7,
  Engines::NWN::kObjectTypeEncounter = 1U << 8, Engines::NWN::kObjectTypeInvalid = 0x7FFF, Engines::NWN::kObjectTypeAll = 0x7FFF, Engines::NWN::kObjectTypeMAX = 0x7FFF,
  Engines::NWN::kObjectTypeArea = 1U << 29, Engines::NWN::kObjectTypeModule = 1U << 30, Engines::NWN::kObjectTypeSelf = 1U << 31
}
 Object type, matches the bitfield in nwscript.nss. More...
 
enum  Engines::NWN::Script {
  Engines::NWN::kScriptAcquireItem = 0, Engines::NWN::kScriptUnacquireItem, Engines::NWN::kScriptActivateItem, Engines::NWN::kScriptEnter,
  Engines::NWN::kScriptExit, Engines::NWN::kScriptCutsceneAbort, Engines::NWN::kScriptHeartbeat, Engines::NWN::kScriptModuleLoad,
  Engines::NWN::kScriptModuleStart, Engines::NWN::kScriptPlayerChat, Engines::NWN::kScriptPlayerDeath, Engines::NWN::kScriptPlayerDying,
  Engines::NWN::kScriptPlayerEquipItem, Engines::NWN::kScriptPlayerUnequipItem, Engines::NWN::kScriptPlayerLevelUp, Engines::NWN::kScriptPlayerRest,
  Engines::NWN::kScriptPlayerRespawn, Engines::NWN::kScriptUserdefined, Engines::NWN::kScriptUsed, Engines::NWN::kScriptClick,
  Engines::NWN::kScriptOpen, Engines::NWN::kScriptClosed, Engines::NWN::kScriptDamaged, Engines::NWN::kScriptDeath,
  Engines::NWN::kScriptDisarm, Engines::NWN::kScriptLock, Engines::NWN::kScriptUnlock, Engines::NWN::kScriptAttacked,
  Engines::NWN::kScriptSpellCastAt, Engines::NWN::kScriptTrapTriggered, Engines::NWN::kScriptDialogue, Engines::NWN::kScriptDisturbed,
  Engines::NWN::kScriptEndRound, Engines::NWN::kScriptBlocked, Engines::NWN::kScriptNotice, Engines::NWN::kScriptRested,
  Engines::NWN::kScriptSpawn, Engines::NWN::kScriptFailToOpen, Engines::NWN::kScriptMAX
}
 
enum  Engines::NWN::Animation {
  Engines::NWN::kAnimationLoopingPause = 0, Engines::NWN::kAnimationLoopingPause2 = 1, Engines::NWN::kAnimationLoopingListen = 2, Engines::NWN::kAnimationLoopingMeditate = 3,
  Engines::NWN::kAnimationLoopingWorship = 4, Engines::NWN::kAnimationLoopingLookFar = 5, Engines::NWN::kAnimationLoopingSitChair = 6, Engines::NWN::kAnimationLoopingSitCross = 7,
  Engines::NWN::kAnimationLoopingTalkNormal = 8, Engines::NWN::kAnimationLoopingTalkPleading = 9, Engines::NWN::kAnimationLoopingTalkForceful = 10, Engines::NWN::kAnimationLoopingTalkLaughing = 11,
  Engines::NWN::kAnimationLoopingGetLow = 12, Engines::NWN::kAnimationLoopingGetMid = 13, Engines::NWN::kAnimationLoopingPauseTired = 14, Engines::NWN::kAnimationLoopingPauseDrunk = 15,
  Engines::NWN::kAnimationLoopingDeadFront = 16, Engines::NWN::kAnimationLoopingDeadBack = 17, Engines::NWN::kAnimationLoopingConjure1 = 18, Engines::NWN::kAnimationLoopingConjure2 = 19,
  Engines::NWN::kAnimationLoopingSpasm = 20, Engines::NWN::kAnimationLoopingCustom1 = 21, Engines::NWN::kAnimationLoopingCustom2 = 22, Engines::NWN::kAnimationLoopingCustom3 = 23,
  Engines::NWN::kAnimationLoopingCustom4 = 24, Engines::NWN::kAnimationLoopingCustom5 = 25, Engines::NWN::kAnimationLoopingCustom6 = 26, Engines::NWN::kAnimationLoopingCustom7 = 27,
  Engines::NWN::kAnimationLoopingCustom8 = 28, Engines::NWN::kAnimationLoopingCustom9 = 29, Engines::NWN::kAnimationLoopingCustom10 = 30, Engines::NWN::kAnimationFireForgetHeadTurnLeft = 100,
  Engines::NWN::kAnimationFireForgetHeadTurnRight = 101, Engines::NWN::kAnimationFireForgetPauseScratchHead = 102, Engines::NWN::kAnimationFireForgetPauseBored = 103, Engines::NWN::kAnimationFireForgetSalute = 104,
  Engines::NWN::kAnimationFireForgetBow = 105, Engines::NWN::kAnimationFireForgetSteal = 106, Engines::NWN::kAnimationFireForgetGreeting = 107, Engines::NWN::kAnimationFireForgetTaunt = 108,
  Engines::NWN::kAnimationFireForgetVictory1 = 109, Engines::NWN::kAnimationFireForgetVictory2 = 110, Engines::NWN::kAnimationFireForgetVictory3 = 111, Engines::NWN::kAnimationFireForgetRead = 112,
  Engines::NWN::kAnimationFireForgetDrink = 113, Engines::NWN::kAnimationFireForgetDodgeSide = 114, Engines::NWN::kAnimationFireForgetDodgeDuck = 115, Engines::NWN::kAnimationFireForgetSpasm = 116,
  Engines::NWN::kAnimationPlaceableActivate = 200, Engines::NWN::kAnimationPlaceableDeactivate = 201, Engines::NWN::kAnimationPlaceableOpen = 202, Engines::NWN::kAnimationPlaceableClose = 203,
  Engines::NWN::kAnimationDoorClose = 204, Engines::NWN::kAnimationDoorOpen1 = 205, Engines::NWN::kAnimationDoorOpen2 = 206, Engines::NWN::kAnimationDoorDestroy = 207
}
 
enum  Engines::NWN::TalkAnimation {
  Engines::NWN::kTalkAnimationDefault = 0, Engines::NWN::kTalkAnimationTaunt = 28, Engines::NWN::kTalkAnimationGreeting = 29, Engines::NWN::kTalkAnimationListen = 30,
  Engines::NWN::kTalkAnimationWorship = 33, Engines::NWN::kTalkAnimationSalute = 34, Engines::NWN::kTalkAnimationBow = 35, Engines::NWN::kTalkAnimationSteal = 37,
  Engines::NWN::kTalkAnimationNormal = 38, Engines::NWN::kTalkAnimationPleading = 39, Engines::NWN::kTalkAnimationForceful = 40, Engines::NWN::kTalkAnimationLaugh = 41,
  Engines::NWN::kTalkAnimationVictoryFighter = 44, Engines::NWN::kTalkAnimationVictoryMage = 45, Engines::NWN::kTalkAnimationVictoryThief = 46, Engines::NWN::kTalkAnimationLookFar = 48,
  Engines::NWN::kTalkAnimationDrink = 70, Engines::NWN::kTalkAnimationRead = 71, Engines::NWN::kTalkAnimationNone = 88
}
 
enum  Engines::NWN::SFFSounds {
  Engines::NWN::kSSFAttack = 0, Engines::NWN::kSSFBattlecry1 = 1, Engines::NWN::kSSFBattlecry2 = 2, Engines::NWN::kSSFBattlecry3 = 3,
  Engines::NWN::kSSFHealMe = 4, Engines::NWN::kSSFHelp = 5, Engines::NWN::kSSFEnemiesSighted = 6, Engines::NWN::kSSFFlee = 7,
  Engines::NWN::kSSFTaunt = 8, Engines::NWN::kSSFGuardMe = 9, Engines::NWN::kSSFHold = 10, Engines::NWN::kSSFAttackGrunt1 = 11,
  Engines::NWN::kSSFAttackGrunt2 = 12, Engines::NWN::kSSFAttackGrunt3 = 13, Engines::NWN::kSSFPainGrunt1 = 14, Engines::NWN::kSSFPainGrunt2 = 15,
  Engines::NWN::kSSFPainGrunt3 = 16, Engines::NWN::kSSFNearDeath = 17, Engines::NWN::kSSFDeath = 18, Engines::NWN::kSSFPoisoned = 19,
  Engines::NWN::kSSFSpellFailed = 20, Engines::NWN::kSSFWeaponIneffective = 21, Engines::NWN::kSSFFollowMe = 22, Engines::NWN::kSSFLookHere = 23,
  Engines::NWN::kSSFGroupParty = 24, Engines::NWN::kSSFMoveOver = 25, Engines::NWN::kSSFPickLock = 26, Engines::NWN::kSSFSearch = 27,
  Engines::NWN::kSSFGoStealthy = 28, Engines::NWN::kSSFCanDo = 29, Engines::NWN::kSSFCannotDo = 30, Engines::NWN::kSSFTaskComplete = 31,
  Engines::NWN::kSSFEncumbered = 32, Engines::NWN::kSSFSelected = 33, Engines::NWN::kSSFHello = 34, Engines::NWN::kSSFYes = 35,
  Engines::NWN::kSSFNo = 36, Engines::NWN::kSSFStop = 37, Engines::NWN::kSSFRest = 38, Engines::NWN::kSSFBored = 39,
  Engines::NWN::kSSFGoodbye = 40, Engines::NWN::kSSFThankYou = 41, Engines::NWN::kSSFLaugh = 42, Engines::NWN::kSSFCuss = 43,
  Engines::NWN::kSSFCheer = 44, Engines::NWN::kSSFSomethingToSay = 45, Engines::NWN::kSSFGoodIdea = 46, Engines::NWN::kSSFBadIdea = 47,
  Engines::NWN::kSSFThreaten = 48
}
 
enum  Engines::NWN::GameDifficulty {
  Engines::NWN::kDifficultyVeryEasy = 0, Engines::NWN::kDifficultyEasy = 1, Engines::NWN::kDifficultyNormal = 2, Engines::NWN::kDifficultyDifficult = 3,
  Engines::NWN::kDifficultyCoreRules = 4
}
 
enum  Engines::NWN::AssociateType {
  Engines::NWN::kAssociateTypeNone = 0, Engines::NWN::kAssociateTypeHenchman = 1, Engines::NWN::kAssociateTypeAnimalCompanion = 2, Engines::NWN::kAssociateTypeFamiliar = 3,
  Engines::NWN::kAssociateTypeSummoned = 4, Engines::NWN::kAssociateTypeDominated = 5
}
 
enum  Engines::NWN::Ability {
  Engines::NWN::kAbilityStrength = 0, Engines::NWN::kAbilityDexterity = 1, Engines::NWN::kAbilityConstitution = 2, Engines::NWN::kAbilityIntelligence = 3,
  Engines::NWN::kAbilityWisdom = 4, Engines::NWN::kAbilityCharisma = 5, Engines::NWN::kAbilityMAX
}
 
enum  Engines::NWN::Alignment {
  Engines::NWN::kAlignmentAll = 0, Engines::NWN::kAlignmentNeutral = 1, Engines::NWN::kAlignmentLawful = 2, Engines::NWN::kAlignmentChaotic = 3,
  Engines::NWN::kAlignmentGood = 4, Engines::NWN::kAlignmentEvil = 5
}
 
enum  Engines::NWN::Gender {
  Engines::NWN::kGenderMale = 0, Engines::NWN::kGenderFemale = 1, Engines::NWN::kGenderBoth = 2, Engines::NWN::kGenderOther = 3,
  Engines::NWN::kGenderNone = 4
}
 

Functions

Alignment Engines::NWN::getAlignmentLawChaos (uint8 lawChaos)
 
Alignment Engines::NWN::getAlignmentGoodEvil (uint8 goodEvil)
 
Common::UString Engines::NWN::getCreatureAnimationName (Animation animation, bool simple=false)
 Return the name (as found in the models) of a specific creature animation. More...
 
Common::UString Engines::NWN::getCreatureTalkAnimationName (TalkAnimation animation)
 Return the name (as found in the models) of a specific creature talk animation. More...
 
Common::UString Engines::NWN::getPlaceableAnimationName (Animation animation)
 Return the name (as found in the models) of a specific placeable animation. More...
 
Common::UString Engines::NWN::getDoorAnimationName (Animation animation, bool alternate=false)
 Return the name (as found in the models) of a specific door animation. More...
 
bool Engines::NWN::isAnimationLooping (Animation animation)
 Return true if the specified animation allows looping. More...
 

Variables

static const uint32 Engines::NWN::kActionInvalid = 0xFFFF
 
static const uint32 Engines::NWN::kRaceInvalid = 28
 
static const uint32 Engines::NWN::kClassInvalid = 255
 

Detailed Description

Basic Neverwinter Nights type definitions.

Definition in file types.h.