OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Functions | Variables
Outdoor.cpp File Reference
#include "Engine/Graphics/Outdoor.h"
#include <algorithm>
#include <memory>
#include <string>
#include "Engine/Engine.h"
#include "Engine/EngineGlobals.h"
#include "Engine/AssetsManager.h"
#include "Engine/Events/Processor.h"
#include "Engine/Graphics/Camera.h"
#include "Engine/Graphics/Collisions.h"
#include "Engine/Graphics/DecalBuilder.h"
#include "Engine/Objects/DecorationList.h"
#include "Engine/Objects/Decoration.h"
#include "Engine/Graphics/LightmapBuilder.h"
#include "Engine/Graphics/LightsStack.h"
#include "Engine/Graphics/ParticleEngine.h"
#include "Engine/Graphics/Sprites.h"
#include "Engine/Graphics/Viewport.h"
#include "Engine/Graphics/Weather.h"
#include "Engine/Graphics/Indoor.h"
#include "Engine/Graphics/Image.h"
#include "Engine/Graphics/Renderer/Renderer.h"
#include "Engine/Random/Random.h"
#include "Engine/Objects/Actor.h"
#include "Engine/Objects/SpriteObject.h"
#include "Engine/Objects/MonsterEnumFunctions.h"
#include "Engine/OurMath.h"
#include "Engine/Party.h"
#include "Engine/Snapshots/CompositeSnapshots.h"
#include "Engine/SpellFxRenderer.h"
#include "Engine/Tables/ItemTable.h"
#include "Engine/Tables/TileTable.h"
#include "Engine/Time/Timer.h"
#include "Engine/TurnEngine/TurnEngine.h"
#include "Engine/Graphics/Vis.h"
#include "Engine/Graphics/BspRenderer.h"
#include "Engine/MapInfo.h"
#include "Engine/LOD.h"
#include "Engine/Seasons.h"
#include "Engine/Data/TileEnumFunctions.h"
#include "GUI/GUIProgressBar.h"
#include "GUI/GUIWindow.h"
#include "GUI/UI/UIRest.h"
#include "GUI/UI/UITransition.h"
#include "Media/Audio/AudioPlayer.h"
#include "Library/Logger/Logger.h"
#include "Library/LodFormats/LodFormats.h"
#include "Utility/String/Ascii.h"
#include "Utility/Memory/FreeDeleter.h"
#include "Utility/Math/TrigLut.h"
#include "Utility/Exception.h"

Classes

struct  FogProbabilityTableEntry
 

Functions

float ODM_GetFloorLevel (const Vec3f &pos, bool *pIsOnWater, int *faceId)
 
void ODM_UpdateUserInputAndOther ()
 
void ODM_ProcessPartyActions ()
 
int GetCeilingHeight (int Party_X, signed int Party_Y, int Party_ZHeight, int *pFaceID)
 
void SetUnderwaterFog ()
 
void UpdateActors_ODM ()
 
static void loadAndPrepareODMInternal (MapId mapid)
 
void loadAndPrepareODM (MapId mapid, bool bLoading)
 
Color GetLevelFogColor ()
 
int sub_47C3D7_get_fog_specular (int unused, int isSky, float screen_depth)
 
void TeleportToStartingPoint (MapStartPoint point)
 

Variables

MapStartPoint uLevel_StartingPointType
 
OutdoorLocationpOutdoor = nullptr
 
ODMRenderParamspODMRenderParams = nullptr
 
SkyBillboardStruct SkyBillboard
 
static constexpr IndexedArray< std::array< MapId, 4 >, MAP_EMERALD_ISLAND, MAP_SHOALSfootTravelDestinations
 
static constexpr IndexedArray< std::array< int, 4 >, MAP_EMERALD_ISLAND, MAP_SHOALSfootTravelTimes
 
static constexpr IndexedArray< std::array< MapStartPoint, 4 >, MAP_EMERALD_ISLAND, MAP_SHOALSfootTravelArrivalPoints
 
static constexpr IndexedArray< FogProbabilityTableEntry, MAP_EMERALD_ISLAND, MAP_SHOALSfog_probability_table
 
static constexpr std::array< int, 9 > skyTexturesIds1 = {{3, 3, 3, 3, 3, 3, 3, 3, 3}}
 
static constexpr std::array< int, 7 > skyTexturesIds2 = {{3, 3, 3, 3, 3, 3, 3}}
 

Function Documentation

◆ GetCeilingHeight()

int GetCeilingHeight ( int  Party_X,
signed int  Party_Y,
int  Party_ZHeight,
int *  pFaceID 
)

◆ GetLevelFogColor()

Color GetLevelFogColor ( )

◆ loadAndPrepareODM()

void loadAndPrepareODM ( MapId  mapid,
bool  bLoading 
)
Original binary offset:
0x4610AA

◆ loadAndPrepareODMInternal()

static void loadAndPrepareODMInternal ( MapId  mapid)
static
Original binary offset:
0x47A384

◆ ODM_GetFloorLevel()

float ODM_GetFloorLevel ( const Vec3f pos,
bool *  pIsOnWater,
int *  faceId 
)

◆ ODM_ProcessPartyActions()

void ODM_ProcessPartyActions ( )

◆ ODM_UpdateUserInputAndOther()

void ODM_UpdateUserInputAndOther ( )

◆ SetUnderwaterFog()

void SetUnderwaterFog ( )

◆ sub_47C3D7_get_fog_specular()

int sub_47C3D7_get_fog_specular ( int  unused,
int  isSky,
float  screen_depth 
)

◆ TeleportToStartingPoint()

void TeleportToStartingPoint ( MapStartPoint  point)

◆ UpdateActors_ODM()

void UpdateActors_ODM ( )

Variable Documentation

◆ fog_probability_table

constexpr IndexedArray<FogProbabilityTableEntry, MAP_EMERALD_ISLAND, MAP_SHOALS> fog_probability_table
staticconstexpr
Initial value:
= {
{MAP_EMERALD_ISLAND, {20, 10, 5, 0}},
{MAP_HARMONDALE, {20, 10, 5, 0}},
{MAP_ERATHIA, {20, 10, 5, 0}},
{MAP_TULAREAN_FOREST, {20, 10, 5, 0}},
{MAP_DEYJA, {20, 10, 5, 0}},
{MAP_BRACADA_DESERT, {10, 5, 0, 0}},
{MAP_CELESTE, {0, 0, 0, 0}},
{MAP_PIT, {0, 0, 0, 0}},
{MAP_EVENMORN_ISLAND, {20, 30, 50, 0}},
{MAP_MOUNT_NIGHON, {30, 20, 10, 0}},
{MAP_BARROW_DOWNS, {10, 5, 0, 0}},
{MAP_LAND_OF_THE_GIANTS, {20, 10, 5, 0}},
{MAP_TATALIA, {20, 10, 5, 0}},
{MAP_AVLEE, {20, 10, 5, 0}},
{MAP_SHOALS, {0, 100, 0, 0}}
}
@ MAP_CELESTE
@ MAP_HARMONDALE
@ MAP_DEYJA
@ MAP_BARROW_DOWNS
@ MAP_SHOALS
@ MAP_TULAREAN_FOREST
@ MAP_BRACADA_DESERT
@ MAP_EVENMORN_ISLAND
@ MAP_EMERALD_ISLAND
@ MAP_AVLEE
@ MAP_MOUNT_NIGHON
@ MAP_ERATHIA
@ MAP_TATALIA
@ MAP_LAND_OF_THE_GIANTS

◆ footTravelArrivalPoints

constexpr IndexedArray<std::array<MapStartPoint, 4>, MAP_EMERALD_ISLAND, MAP_SHOALS> footTravelArrivalPoints
staticconstexpr
Initial value:
= {
}

◆ footTravelDestinations

constexpr IndexedArray<std::array<MapId, 4>, MAP_EMERALD_ISLAND, MAP_SHOALS> footTravelDestinations
staticconstexpr

◆ footTravelTimes

constexpr IndexedArray<std::array<int, 4>, MAP_EMERALD_ISLAND, MAP_SHOALS> footTravelTimes
staticconstexpr
Initial value:
= {
{MAP_EMERALD_ISLAND, {0, 0, 0, 0}},
{MAP_HARMONDALE, {5, 5, 7, 5}},
{MAP_ERATHIA, {5, 5, 5, 5}},
{MAP_TULAREAN_FOREST, {5, 5, 0, 5}},
{MAP_DEYJA, {7, 5, 5, 4}},
{MAP_BRACADA_DESERT, {5, 0, 5, 0}},
{MAP_CELESTE, {0, 0, 0, 0}},
{MAP_PIT, {0, 0, 0, 0}},
{MAP_EVENMORN_ISLAND, {0, 0, 0, 0}},
{MAP_MOUNT_NIGHON, {0, 0, 0, 0}},
{MAP_BARROW_DOWNS, {5, 7, 7, 5}},
{MAP_LAND_OF_THE_GIANTS, {0, 0, 0, 0}},
{MAP_TATALIA, {0, 0, 5, 0}},
{MAP_AVLEE, {0, 7, 5, 0}},
{MAP_SHOALS, {0, 0, 0, 0}},
}

◆ pODMRenderParams

ODMRenderParams* pODMRenderParams = nullptr

◆ pOutdoor

OutdoorLocation* pOutdoor = nullptr

◆ SkyBillboard

SkyBillboardStruct SkyBillboard

◆ skyTexturesIds1

constexpr std::array<int, 9> skyTexturesIds1 = {{3, 3, 3, 3, 3, 3, 3, 3, 3}}
staticconstexpr

◆ skyTexturesIds2

constexpr std::array<int, 7> skyTexturesIds2 = {{3, 3, 3, 3, 3, 3, 3}}
staticconstexpr

◆ uLevel_StartingPointType

MapStartPoint uLevel_StartingPointType