xoreos
0.0.5
src
engines
nwn2
types.h
Go to the documentation of this file.
1
/* xoreos - A reimplementation of BioWare's Aurora engine
2
*
3
* xoreos is the legal property of its developers, whose names
4
* can be found in the AUTHORS file distributed with this source
5
* distribution.
6
*
7
* xoreos is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 3
10
* of the License, or (at your option) any later version.
11
*
12
* xoreos is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with xoreos. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
25
#ifndef ENGINES_NWN2_TYPES_H
26
#define ENGINES_NWN2_TYPES_H
27
28
#include "
src/common/types.h
"
29
30
namespace
Engines
{
31
32
namespace
NWN2 {
33
35
enum
ObjectType
{
36
kObjectTypeCreature
= 1U << 0,
37
kObjectTypeItem
= 1U << 1,
38
kObjectTypeTrigger
= 1U << 2,
39
kObjectTypeDoor
= 1U << 3,
40
kObjectTypeAreaOfEffect
= 1U << 4,
41
kObjectTypeWaypoint
= 1U << 5,
42
kObjectTypePlaceable
= 1U << 6,
43
kObjectTypeStore
= 1U << 7,
44
kObjectTypeEncounter
= 1U << 8,
45
kObjectTypeLight
= 1U << 9,
46
kObjectTypePlacedEffect
= 1U << 10,
47
48
kObjectTypeInvalid
= 0x7FFF,
49
kObjectTypeAll
= 0x7FFF,
50
51
kObjectTypeMAX
= 0x7FFF,
52
53
kObjectTypeArea
= 1U << 29,
54
kObjectTypeModule
= 1U << 30,
55
kObjectTypeSelf
= 1U << 31
56
};
57
58
enum
Script
{
59
kScriptAcquireItem
= 0,
60
kScriptActiveItem
,
61
kScriptAttacked
,
62
kScriptBlocked
,
63
kScriptClick
,
64
kScriptClient
,
65
kScriptClosed
,
66
kScriptCutsceneAbort
,
67
kScriptDamaged
,
68
kScriptDeath
,
69
kScriptDialogue
,
70
kScriptDisarm
,
71
kScriptDisturbed
,
72
kScriptEndRound
,
73
kScriptEnter
,
74
kScriptExhausted
,
75
kScriptExit
,
76
kScriptFailToOpen
,
77
kScriptHeartbeat
,
78
kScriptLock
,
79
kScriptModuleLoad
,
80
kScriptModuleStart
,
81
kScriptNotice
,
82
kScriptOpen
,
83
kScriptPCLoaded
,
84
kScriptPlayerChat
,
85
kScriptPlayerDeath
,
86
kScriptPlayerDying
,
87
kScriptPlayerEquipItem
,
88
kScriptPlayerLevelUp
,
89
kScriptPlayerRespanw
,
90
kScriptPlayerRest
,
91
kScriptPlayerUnequipItem
,
92
kScriptRested
,
93
kScriptShout
,
94
kScriptSpawn
,
95
kScriptSpellCastAt
,
96
kScriptStoreClose
,
97
kScriptStoreOpen
,
98
kScriptTrapTriggered
,
99
kScriptUnaquireItem
,
100
kScriptUnlock
,
101
kScriptUsed
,
102
kScriptUserdefined
,
103
kScriptMAX
104
};
105
106
enum
Ability
{
107
kAbilityStrength
= 0,
108
kAbilityDexterity
= 1,
109
kAbilityConstitution
= 2,
110
kAbilityIntelligence
= 3,
111
kAbilityWisdom
= 4,
112
kAbilityCharisma
= 5,
113
kAbilityMAX
114
};
115
116
enum
Alignment
{
117
kAlignmentAll
= 0,
118
kAlignmentNeutral
= 1,
119
kAlignmentLawful
= 2,
120
kAlignmentChaotic
= 3,
121
kAlignmentGood
= 4,
122
kAlignmentEvil
= 5
123
};
124
125
enum
Gender
{
126
kGenderMale
= 0,
127
kGenderFemale
= 1,
128
kGenderBoth
= 2,
129
kGenderOther
= 3,
130
kGenderNone
= 4
131
};
132
133
static
const
uint32
kRaceInvalid
= 28;
134
static
const
uint32
kSubRaceInvalid
= 255;
135
static
const
uint32
kClassInvalid
= 255;
136
137
Alignment
getAlignmentLawChaos
(
uint8
lawChaos);
138
Alignment
getAlignmentGoodEvil
(
uint8
goodEvil);
139
140
}
// End of namespace NWN2
141
142
}
// End of namespace Engines
143
144
#endif // ENGINES_NWN2_TYPES_H
Engines::NWN2::kScriptAttacked
Definition:
types.h:61
Engines::NWN2::kScriptDeath
Definition:
types.h:68
Engines::NWN2::kAbilityConstitution
Definition:
types.h:109
Engines::NWN2::kScriptPlayerRespanw
Definition:
types.h:89
Engines::NWN2::kSubRaceInvalid
static const uint32 kSubRaceInvalid
Definition:
types.h:134
Engines::NWN2::kScriptPlayerChat
Definition:
types.h:84
Engines::NWN2::kObjectTypeAreaOfEffect
Definition:
types.h:40
Engines::NWN2::kObjectTypeInvalid
Definition:
types.h:48
Engines::NWN2::kScriptUsed
Definition:
types.h:101
Engines::NWN2::kClassInvalid
static const uint32 kClassInvalid
Definition:
types.h:135
Engines::NWN2::kObjectTypeLight
Definition:
types.h:45
uint8
uint8_t uint8
Definition:
types.h:200
Engines::NWN2::kScriptMAX
Definition:
types.h:103
Engines::NWN2::kScriptPlayerDying
Definition:
types.h:86
Engines::NWN2::kScriptPlayerUnequipItem
Definition:
types.h:91
Engines::NWN2::kObjectTypeMAX
Definition:
types.h:51
Engines::NWN2::kScriptShout
Definition:
types.h:93
Engines::NWN2::kObjectTypePlaceable
Definition:
types.h:42
Engines::NWN2::Script
Script
Definition:
types.h:58
Engines::NWN2::kScriptPlayerRest
Definition:
types.h:90
Engines::NWN2::kScriptLock
Definition:
types.h:78
Engines::NWN2::kAlignmentNeutral
Definition:
types.h:118
Engines::NWN2::kObjectTypeCreature
Definition:
types.h:36
Engines::NWN2::kScriptRested
Definition:
types.h:92
Engines::NWN2::kScriptClick
Definition:
types.h:63
Engines::NWN2::kScriptDialogue
Definition:
types.h:69
Engines::NWN2::kScriptNotice
Definition:
types.h:81
Engines::NWN2::kAbilityStrength
Definition:
types.h:107
Engines::NWN2::kScriptUserdefined
Definition:
types.h:102
Engines::NWN2::kGenderFemale
Definition:
types.h:127
Engines::NWN2::kObjectTypeArea
Fake value for an area object.
Definition:
types.h:53
Engines::NWN2::kScriptPlayerDeath
Definition:
types.h:85
Engines::NWN2::getAlignmentGoodEvil
Alignment getAlignmentGoodEvil(uint8 goodEvil)
Definition:
types.cpp:40
Engines::NWN2::kScriptModuleStart
Definition:
types.h:80
Engines::NWN2::kScriptAcquireItem
Definition:
types.h:59
Engines::NWN2::kGenderNone
Definition:
types.h:130
Engines::NWN2::kObjectTypeItem
Definition:
types.h:37
Engines::NWN2::kObjectTypeSelf
Fake value to describe the calling object in a script.
Definition:
types.h:55
Engines::NWN2::kAbilityMAX
Definition:
types.h:113
Engines::NWN2::kScriptUnaquireItem
Definition:
types.h:99
Engines::NWN2::kScriptClient
Definition:
types.h:64
Engines::NWN2::kScriptPlayerEquipItem
Definition:
types.h:87
types.h
Low-level type definitions to handle fixed width types portably.
Engines
Definition:
console.cpp:69
Engines::NWN2::kObjectTypeModule
Fake value for a module object.
Definition:
types.h:54
Engines::NWN2::kScriptBlocked
Definition:
types.h:62
Engines::NWN2::kScriptDamaged
Definition:
types.h:67
Engines::NWN2::getAlignmentLawChaos
Alignment getAlignmentLawChaos(uint8 lawChaos)
Definition:
types.cpp:31
Engines::NWN2::kScriptSpawn
Definition:
types.h:94
Engines::NWN2::kObjectTypeAll
Definition:
types.h:49
Engines::NWN2::kScriptEndRound
Definition:
types.h:72
Engines::NWN2::kScriptOpen
Definition:
types.h:82
Engines::NWN2::kScriptSpellCastAt
Definition:
types.h:95
Engines::NWN2::kScriptFailToOpen
Definition:
types.h:76
Engines::NWN2::Gender
Gender
Definition:
types.h:125
Engines::NWN2::kScriptStoreOpen
Definition:
types.h:97
Engines::NWN2::kAbilityCharisma
Definition:
types.h:112
Engines::NWN2::kAlignmentAll
Definition:
types.h:117
Engines::NWN2::kScriptTrapTriggered
Definition:
types.h:98
Engines::NWN2::kObjectTypeEncounter
Definition:
types.h:44
Engines::NWN2::kScriptExit
Definition:
types.h:75
Engines::NWN2::kScriptPCLoaded
Definition:
types.h:83
Engines::NWN2::kObjectTypePlacedEffect
Definition:
types.h:46
Engines::NWN2::kScriptEnter
Definition:
types.h:73
Engines::NWN2::kGenderOther
Definition:
types.h:129
uint32
uint32_t uint32
Definition:
types.h:204
Engines::NWN2::kScriptPlayerLevelUp
Definition:
types.h:88
Engines::NWN2::kScriptExhausted
Definition:
types.h:74
Engines::NWN2::kScriptHeartbeat
Definition:
types.h:77
Engines::NWN2::kAbilityWisdom
Definition:
types.h:111
Engines::NWN2::kScriptActiveItem
Definition:
types.h:60
Engines::NWN2::kAlignmentChaotic
Definition:
types.h:120
Engines::NWN2::kScriptDisturbed
Definition:
types.h:71
Engines::NWN2::kScriptModuleLoad
Definition:
types.h:79
Engines::NWN2::ObjectType
ObjectType
Object type, matches the bitfield in nwscript.nss.
Definition:
types.h:35
Engines::NWN2::kAbilityDexterity
Definition:
types.h:108
Engines::NWN2::kScriptCutsceneAbort
Definition:
types.h:66
Engines::NWN2::kObjectTypeStore
Definition:
types.h:43
Engines::NWN2::kObjectTypeWaypoint
Definition:
types.h:41
Engines::NWN2::kObjectTypeTrigger
Definition:
types.h:38
Engines::NWN2::kAbilityIntelligence
Definition:
types.h:110
Engines::NWN2::kScriptClosed
Definition:
types.h:65
Engines::NWN2::kAlignmentEvil
Definition:
types.h:122
Engines::NWN2::kGenderBoth
Definition:
types.h:128
Engines::NWN2::kScriptUnlock
Definition:
types.h:100
Engines::NWN2::Alignment
Alignment
Definition:
types.h:116
Engines::NWN2::kAlignmentLawful
Definition:
types.h:119
Engines::NWN2::kGenderMale
Definition:
types.h:126
Engines::NWN2::kObjectTypeDoor
Definition:
types.h:39
Engines::NWN2::kScriptStoreClose
Definition:
types.h:96
Engines::NWN2::kAlignmentGood
Definition:
types.h:121
Engines::NWN2::kScriptDisarm
Definition:
types.h:70
Engines::NWN2::Ability
Ability
Definition:
types.h:106
Engines::NWN2::kRaceInvalid
static const uint32 kRaceInvalid
Definition:
types.h:133
Generated on Sun Nov 18 2018 15:13:38 for xoreos by
1.8.14