OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Macros | Variables
mm7_data.h File Reference
#include <cstdint>
#include <array>
#include <vector>
#include <string>
#include <utility>
#include "Engine/Pid.h"
#include "Engine/Objects/CharacterEnums.h"
#include "Engine/Spells/SpellEnums.h"
#include "Engine/Time/Duration.h"
#include "Engine/MapEnums.h"
#include "GUI/GUIEnums.h"
#include "Library/Color/Color.h"
#include "Library/Geometry/Vec.h"
#include "Utility/IndexedArray.h"

Macros

#define GAME_SETTINGS_SKIP_WORLD_UPDATE   0x0001
 
#define GAME_SETTINGS_INVALID_RESOLUTION   0x0002
 
#define GAME_SETTINGS_NO_INTRO   0x0004
 
#define GAME_SETTINGS_NO_LOGO   0x0008
 
#define GAME_SETTINGS_NO_SOUND   0x0010
 
#define GAME_SETTINGS_NO_WALK_SOUND   0x0020
 
#define GAME_SETTINGS_NO_HOUSE_ANIM   0x0040
 
#define GAME_SETTINGS_0080_SKIP_USER_INPUT_THIS_FRAME   0x0080
 
#define GAME_SETTINGS_APP_INACTIVE   0x0100
 
#define GAME_SETTINGS_0200_EVENT_TIMER   0x0200
 
#define GAME_SETTINGS_0400_MISC_TIMER   0x0400
 
#define GAME_SETTINGS_0800   0x0800
 
#define GAME_SETTINGS_1000   0x1000
 
#define GAME_SETTINGS_LOADING_SAVEGAME_SKIP_RESPAWN   0x2000
 
#define GAME_SETTINGS_4000   0x4000
 

Variables

int game_viewport_width
 
int game_viewport_height
 
int game_viewport_x
 
int game_viewport_y
 
int game_viewport_z
 
int game_viewport_w
 
float flt_4D84E8
 
unsigned int uGammaPos
 
std::array< int, 6 > teleportX
 
std::array< int, 6 > teleportY
 
std::array< int, 6 > teleportZ
 
std::array< int, 6 > teleportYaw
 
std::array< float, 10 > flt_4E4A80
 
std::array< std::array< int, 6 >, 6 > pNPCPortraits_x
 
std::array< std::array< int, 6 >, 6 > pNPCPortraits_y
 
std::array< const char *, 11 > pHouse_ExitPictures
 
char _4E94D0_light_type
 
char _4E94D2_light_type
 
char _4E94D3_light_type
 
std::array< const char *, 25 > pPlayerPortraitsNames
 
std::array< std::array< unsigned char, 25 >, 48 > byte_4ECF08
 
IndexedArray< std::array< unsigned char, 3 >, SPEECH_FIRST, SPEECH_LASTspeechVariants
 
IndexedArray< std::array< CharacterPortrait, 5 >, SPEECH_FIRST, SPEECH_LASTportraitVariants
 
std::array< int16_t, 4 > pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing
 
IndexedArray< int, CHARACTER_SKILL_FIRST, CHARACTER_SKILL_LASTskills_max_level
 
IndexedArray< Duration, CHARACTER_SKILL_FIRST, CHARACTER_SKILL_LASTbase_recovery_times_per_weapon_type
 
std::array< IndexedArray< ClassSkillAffinity, CHARACTER_SKILL_FIRST, CHARACTER_SKILL_LAST >, 9 > pSkillAvailabilityPerClass
 
IndexedArray< IndexedArray< CharacterSkillMastery, CHARACTER_SKILL_FIRST, CHARACTER_SKILL_LAST >, CLASS_FIRST, CLASS_LASTskillMaxMasteryPerClass
 
std::vector< Pidai_near_actors_targets_pid
 
std::vector< unsigned int > ai_near_actors_ids
 
int ai_arrays_size
 
Pid uLastPointedObjectID
 
int KeyboardPageNum
 
Color uGameUIFontShadow
 
Color uGameUIFontMain
 
SpellId dword_507B00_spell_info_to_draw_in_popup
 
int dword_507CC0_activ_ch
 
bool OpenedTelekinesis
 
int enchantingActiveCharacter
 
int uSpriteID_Spell11
 
bool IsEnchantingInProgress
 
Duration ItemEnchantmentTimer
 
UIMessageType AfterEnchClickEventId
 
int AfterEnchClickEventSecondParam
 
Duration AfterEnchClickEventTimeout
 
unsigned int uNumBlueFacesInBLVMinimap
 
std::array< uint16_t, 50 > pBlueFacesInBLVMinimapIDs
 
std::array< GraphicsImage *, 14 > party_buff_icons
 
unsigned int uIconIdx_FlySpell
 
unsigned int uIconIdx_WaterWalk
 
int uCurrentHouse_Animation
 
std::string branchless_dialogue_str
 
int dword_5B65C4_cancelEventProcessing
 
int npcIdToDismissAfterDialogue
 
int bDialogueUI_InitializeActor_NPC_ID
 
int uDefaultTravelTime_ByFoot
 
MapWeatherFlags day_attrib
 
int day_fogrange_1
 
int day_fogrange_2
 
int day_fogrange_3
 
float fWalkSpeedMultiplier
 
float fBackwardWalkSpeedMultiplier
 
float fTurnSpeedMultiplier
 
int dword_6BE364_game_settings_1
 
constexpr float debug_non_combat_recovery_mul = 1.0f
 
constexpr float debug_combat_recovery_mul = 1.0f
 
constexpr float debug_turn_based_monster_movespeed_mul = 1.666666666666667f
 
constexpr float flt_debugrecmod3 = 2.133333333333333f
 
constexpr float meleeRange = 307.2f
 
int uPlayerCreationUI_SelectedCharacter
 
int uPlayerCreationUI_NameEditCharacter
 
int currentAddressingAwardBit
 
std::string current_npc_text
 
char dialogue_show_profession_details
 
bool GameOverNoSound
 

Macro Definition Documentation

◆ GAME_SETTINGS_0080_SKIP_USER_INPUT_THIS_FRAME

#define GAME_SETTINGS_0080_SKIP_USER_INPUT_THIS_FRAME   0x0080

◆ GAME_SETTINGS_0200_EVENT_TIMER

#define GAME_SETTINGS_0200_EVENT_TIMER   0x0200

◆ GAME_SETTINGS_0400_MISC_TIMER

#define GAME_SETTINGS_0400_MISC_TIMER   0x0400

◆ GAME_SETTINGS_0800

#define GAME_SETTINGS_0800   0x0800

◆ GAME_SETTINGS_1000

#define GAME_SETTINGS_1000   0x1000

◆ GAME_SETTINGS_4000

#define GAME_SETTINGS_4000   0x4000

◆ GAME_SETTINGS_APP_INACTIVE

#define GAME_SETTINGS_APP_INACTIVE   0x0100

◆ GAME_SETTINGS_INVALID_RESOLUTION

#define GAME_SETTINGS_INVALID_RESOLUTION   0x0002

◆ GAME_SETTINGS_LOADING_SAVEGAME_SKIP_RESPAWN

#define GAME_SETTINGS_LOADING_SAVEGAME_SKIP_RESPAWN   0x2000

◆ GAME_SETTINGS_NO_HOUSE_ANIM

#define GAME_SETTINGS_NO_HOUSE_ANIM   0x0040

◆ GAME_SETTINGS_NO_INTRO

#define GAME_SETTINGS_NO_INTRO   0x0004

◆ GAME_SETTINGS_NO_LOGO

#define GAME_SETTINGS_NO_LOGO   0x0008

◆ GAME_SETTINGS_NO_SOUND

#define GAME_SETTINGS_NO_SOUND   0x0010

◆ GAME_SETTINGS_NO_WALK_SOUND

#define GAME_SETTINGS_NO_WALK_SOUND   0x0020

◆ GAME_SETTINGS_SKIP_WORLD_UPDATE

#define GAME_SETTINGS_SKIP_WORLD_UPDATE   0x0001

Variable Documentation

◆ _4E94D0_light_type

char _4E94D0_light_type
extern

◆ _4E94D2_light_type

char _4E94D2_light_type
extern

◆ _4E94D3_light_type

char _4E94D3_light_type
extern

◆ AfterEnchClickEventId

UIMessageType AfterEnchClickEventId
extern

◆ AfterEnchClickEventSecondParam

int AfterEnchClickEventSecondParam
extern

◆ AfterEnchClickEventTimeout

Duration AfterEnchClickEventTimeout
extern

◆ ai_arrays_size

int ai_arrays_size
extern

◆ ai_near_actors_ids

std::vector<unsigned int> ai_near_actors_ids
extern

◆ ai_near_actors_targets_pid

std::vector<Pid> ai_near_actors_targets_pid
extern

◆ base_recovery_times_per_weapon_type

IndexedArray<Duration, CHARACTER_SKILL_FIRST, CHARACTER_SKILL_LAST> base_recovery_times_per_weapon_type
extern

◆ bDialogueUI_InitializeActor_NPC_ID

int bDialogueUI_InitializeActor_NPC_ID
extern

◆ branchless_dialogue_str

std::string branchless_dialogue_str
extern

◆ byte_4ECF08

std::array<std::array<unsigned char, 25>, 48> byte_4ECF08
extern

◆ current_npc_text

std::string current_npc_text
extern

◆ currentAddressingAwardBit

int currentAddressingAwardBit
extern

◆ day_attrib

MapWeatherFlags day_attrib
extern

◆ day_fogrange_1

int day_fogrange_1
extern

◆ day_fogrange_2

int day_fogrange_2
extern

◆ day_fogrange_3

int day_fogrange_3
extern

◆ debug_combat_recovery_mul

constexpr float debug_combat_recovery_mul = 1.0f
constexpr

Recovery multiplier for combat actions, e.g. hand-to-hand and ranged attacks and combat spells.

◆ debug_non_combat_recovery_mul

constexpr float debug_non_combat_recovery_mul = 1.0f
constexpr

Recovery multiplier for non-combat actions, e.g. receiving fall damage, casting buffs, and receiving damage from monsters.

◆ debug_turn_based_monster_movespeed_mul

constexpr float debug_turn_based_monster_movespeed_mul = 1.666666666666667f
constexpr

Speed multiplier for monsters in turn-based mode. It does affect actual move distance, but setting a high value doesn't make monsters dart like crazy because monster speed is capped at 1000. Doh.

◆ dialogue_show_profession_details

char dialogue_show_profession_details
extern

◆ dword_507B00_spell_info_to_draw_in_popup

SpellId dword_507B00_spell_info_to_draw_in_popup
extern

◆ dword_507CC0_activ_ch

int dword_507CC0_activ_ch
extern

◆ dword_5B65C4_cancelEventProcessing

int dword_5B65C4_cancelEventProcessing
extern

◆ dword_6BE364_game_settings_1

int dword_6BE364_game_settings_1
extern

◆ enchantingActiveCharacter

int enchantingActiveCharacter
extern

◆ fBackwardWalkSpeedMultiplier

float fBackwardWalkSpeedMultiplier
extern

◆ flt_4D84E8

float flt_4D84E8
extern

◆ flt_4E4A80

std::array<float, 10> flt_4E4A80
extern

◆ flt_debugrecmod3

constexpr float flt_debugrecmod3 = 2.133333333333333f
constexpr

◆ fTurnSpeedMultiplier

float fTurnSpeedMultiplier
extern

◆ fWalkSpeedMultiplier

float fWalkSpeedMultiplier
extern

◆ game_viewport_height

int game_viewport_height
extern

◆ game_viewport_w

int game_viewport_w
extern

◆ game_viewport_width

int game_viewport_width
extern

◆ game_viewport_x

int game_viewport_x
extern

◆ game_viewport_y

int game_viewport_y
extern

◆ game_viewport_z

int game_viewport_z
extern

◆ GameOverNoSound

bool GameOverNoSound
extern

◆ IsEnchantingInProgress

bool IsEnchantingInProgress
extern

◆ ItemEnchantmentTimer

Duration ItemEnchantmentTimer
extern

◆ KeyboardPageNum

int KeyboardPageNum
extern

◆ meleeRange

constexpr float meleeRange = 307.2f
constexpr

◆ npcIdToDismissAfterDialogue

int npcIdToDismissAfterDialogue
extern

◆ OpenedTelekinesis

bool OpenedTelekinesis
extern

◆ party_buff_icons

std::array<GraphicsImage *, 14> party_buff_icons
extern

◆ pBlueFacesInBLVMinimapIDs

std::array<uint16_t, 50> pBlueFacesInBLVMinimapIDs
extern

◆ pHouse_ExitPictures

std::array<const char *, 11> pHouse_ExitPictures
extern

◆ pNPCPortraits_x

std::array<std::array<int, 6>, 6> pNPCPortraits_x
extern

◆ pNPCPortraits_y

std::array<std::array<int, 6>, 6> pNPCPortraits_y
extern

◆ portraitVariants

IndexedArray<std::array<CharacterPortrait, 5>, SPEECH_FIRST, SPEECH_LAST> portraitVariants
extern

◆ pPlayerPortraitsNames

std::array<const char *, 25> pPlayerPortraitsNames
extern

◆ pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing

std::array<int16_t, 4> pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing
extern

◆ pSkillAvailabilityPerClass

std::array<IndexedArray<ClassSkillAffinity, CHARACTER_SKILL_FIRST, CHARACTER_SKILL_LAST>, 9> pSkillAvailabilityPerClass
extern

◆ skillMaxMasteryPerClass

◆ skills_max_level

◆ speechVariants

IndexedArray<std::array<unsigned char, 3>, SPEECH_FIRST, SPEECH_LAST> speechVariants
extern

◆ teleportX

std::array<int, 6> teleportX
extern

◆ teleportY

std::array<int, 6> teleportY
extern

◆ teleportYaw

std::array<int, 6> teleportYaw
extern

◆ teleportZ

std::array<int, 6> teleportZ
extern

◆ uCurrentHouse_Animation

int uCurrentHouse_Animation
extern

◆ uDefaultTravelTime_ByFoot

int uDefaultTravelTime_ByFoot
extern

◆ uGameUIFontMain

Color uGameUIFontMain
extern

◆ uGameUIFontShadow

Color uGameUIFontShadow
extern

◆ uGammaPos

unsigned int uGammaPos
extern

◆ uIconIdx_FlySpell

unsigned int uIconIdx_FlySpell
extern

◆ uIconIdx_WaterWalk

unsigned int uIconIdx_WaterWalk
extern

◆ uLastPointedObjectID

Pid uLastPointedObjectID
extern

◆ uNumBlueFacesInBLVMinimap

unsigned int uNumBlueFacesInBLVMinimap
extern

◆ uPlayerCreationUI_NameEditCharacter

int uPlayerCreationUI_NameEditCharacter
extern

◆ uPlayerCreationUI_SelectedCharacter

int uPlayerCreationUI_SelectedCharacter
extern

◆ uSpriteID_Spell11

int uSpriteID_Spell11
extern