PRooFPS-dd Dev Doc 1.0
PRooFPS-dd Developer Documentation
Loading...
Searching...
No Matches
proofps_dd::Maps Class Reference

Detailed Description

Definition at line 28 of file Maps.h.

#include <Maps.h>

+ Inheritance diagram for proofps_dd::Maps:

Classes

struct  BlockTexture
 

Public Member Functions

CConsole & getConsole () const
 
 Maps (pge_audio::PgeAudio &audio, PGEcfgProfiles &cfgProfiles, PR00FsUltimateRenderingEngine &gfx)
 
 ~Maps ()
 
 Maps (const Maps &)=delete
 
Mapsoperator= (const Maps &)=delete
 
 Maps (Maps &&)=delete
 
Maps && operator= (Maps &&)=delete
 
bool initialize ()
 Initializes the map handler.
 
bool isInitialized () const
 
void shutdown ()
 Shuts down the map handler.
 
const std::string & serverDecideFirstMapAndUpdateNextMapToBeLoaded ()
 
const std::string & getNextMapToBeLoaded () const
 
bool loaded () const
 
bool load (const char *fname, std::function< void(int)> &cbDisplayProgressUpdate)
 
void unload ()
 
unsigned int width () const
 
unsigned int height () const
 
void updateVisibilitiesForRenderer ()
 
const std::string & getFilename () const
 Retrieves the currently loaded map filename.
 
const std::vector< PureVector > & getSpawnpoints () const
 Retrieves the set of spawnpoints of the currently loaded map.
 
const std::set< size_t > & getTeamSpawnpoints (const unsigned int &iTeamId) const
 Retrieves the spawn group of the currently loaded map, for the specified team.
 
bool areTeamSpawnpointsDefined () const
 
bool canUseTeamSpawnpoints (const bool &bTeamGame, const unsigned int &iTeamId) const
 Tells if all conditions meet for selecting a team spawnpoint from a spawn group:
 
const PureVector & getRandomSpawnpoint (const bool &bTeamGame, const unsigned int &iTeamId=0) const
 Retrieves a randomly selected spawnpoint from the set of spawnpoints of the currently loaded map.
 
const PureVector & getLeftMostSpawnpoint () const
 
const PureVector & getRightMostSpawnpoint () const
 
const PureVector & getBlockPosMin () const
 
const PureVector & getBlockPosMax () const
 
const PureVector & getBlocksVertexPosMin () const
 
const PureVector & getBlocksVertexPosMax () const
 
PureObject3D ** getBlocks ()
 
PureObject3D ** getForegroundBlocks ()
 
int getBlockCount () const
 
int getForegroundBlockCount () const
 
const PureBoundingVolumeHierarchy & getBVH () const
 
const std::map< MapItem::MapItemId, MapItem * > & getItems () const
 
const std::vector< PureObject3D * > & getDecals () const
 
const std::vector< PureObject3D * > & getJumppads () const
 
const std::map< std::string, PGEcfgVariable > & getVars () const
 
size_t getJumppadValidVarsCount ()
 
const TPURE_XY & getJumppadForceFactors (const size_t &index) const
 
void update (const float &fps, const PureObject3D &objCurrentPlayer)
 
bool handleMapItemUpdateFromServer (pge_network::PgeNetworkConnectionHandle, const MsgMapItemUpdateFromServer &msg)
 
MapcyclegetMapcycle ()
 

Static Public Member Functions

static const char * getLoggerModuleName ()
 

Static Public Attributes

static constexpr char * szCVarSvMap = "sv_map"
 
static constexpr char * szCVarSvMapTeamSpawnGroups = "sv_map_team_spawn_groups"
 
static constexpr char * szCVarSvMapCollisionMode = "sv_map_collision_mode"
 
static constexpr char * szCVarSvMapCollisionBvhDebugRender = "sv_map_collision_bvh_debug_render"
 
static constexpr char * szCVarSvMapCollisionBvhMaxDepth = "sv_map_collision_bvh_max_depth"
 
static constexpr float fMapBlockSizeWidth = 1.0f
 
static constexpr float fMapBlockSizeHeight = 1.0f
 
static constexpr float fMapBlockSizeDepth = 1.0f
 
static constexpr size_t nStairstepsCount = 4
 
static constexpr float fStairstepHeight = fMapBlockSizeHeight / static_cast<float>(nStairstepsCount)
 
static constexpr float GAME_PLAYERS_POS_Z = -1.2f
 

Private Member Functions

bool lineHandleDecalAssignment (const std::string &sValue)
 
bool lineHandleAssignment (const std::string &sVar, const std::string &sValue)
 
bool createSingleSmallStairStep (const bool &bDryRun, const float &fStairstepPosX, const float &fStairstepPosY, const float &fStairstepSizeX, const float &fStairstepSizeY, PureTexture *pTexture, const bool &bDescending, const float &fU0, const float &fV0, const float &fU1, const float &fV1)
 Creates a stairstep.
 
bool createSmallStairStepsForSingleBigStairsBlock (const bool &bDryRun, const size_t &iLinePos, const size_t &nLineLength, const bool &bCopyPreviousFgBlock, const int &iObjectFgToBeCopied, const bool &bCopyPreviousBgBlock, const int &iObjectBgToBeCopied, const float &fBlockPosX, const float &fBlockPosY)
 Invoked when a stairs block character is encountered.
 
bool lineHandleLayout (const std::string &sLine, TPureFloat &y, bool bDryRun)
 This function to be invoked for every single line of the map layout definition.
 
bool parseTeamSpawnpointsFromString (const std::string &sVarValue, std::set< size_t > &targetSet)
 
bool parseTeamSpawnpoints ()
 
bool checkAndUpdateSpawnpoints ()
 

Static Private Member Functions

static bool lineShouldBeIgnored (const std::string &sLine)
 
static bool lineIsValueAssignment (const std::string &sLine, std::string &sVar, std::string &sValue, bool &bParseError)
 

Private Attributes

const std::set< char > foregroundBlocks
 
const std::set< char > backgroundBlocks
 
pge_audio::PgeAudio & m_audio
 
PGEcfgProfiles & m_cfgProfiles
 
PR00FsUltimateRenderingEngine & m_gfx
 
PureTexture * m_texRed
 
PureTexture * m_texDecorJumpPadVertical
 
std::string m_sServerMapFilenameToLoad
 We set this as soon as we get to know which map we should load.
 
std::map< char, PureObject3D * > m_mapReferenceBlockObject3Ds
 
PureObject3D ** m_blocks
 
int m_blocks_h
 
PureObject3D ** m_foregroundBlocks
 
int m_foregroundBlocks_h
 
PureBoundingVolumeHierarchyRoot m_bvh
 
std::map< std::string, PGEcfgVariable > m_vars
 
std::string m_sRawName
 Raw map name, basically filename without extension.
 
std::string m_sFileName
 
std::map< char, BlockTexturem_Block2Texture
 
std::vector< PureVector > m_spawnpoints
 
std::set< size_t > m_spawngroup_1
 
std::set< size_t > m_spawngroup_2
 
PureVector m_blocksVertexPosMin
 
PureVector m_blocksVertexPosMax
 
PureVector m_blockPosMin
 
PureVector m_blockPosMax
 
PureVector m_spawnpointLeftMost
 
PureVector m_spawnpointRightMost
 
unsigned int m_width
 
unsigned int m_height
 
std::map< MapItem::MapItemId, MapItem * > m_items
 
std::vector< PureObject3D * > m_decals
 
std::vector< PureObject3D * > m_decorations
 
std::vector< PureObject3D * > m_jumppads
 
size_t m_nValidJumppadVarsCount
 
std::vector< TPURE_XY > m_fJumppadForceFactors
 
Mapcycle m_mapcycle
 

Static Private Attributes

static constexpr float GAME_ITEMS_POS_Z = GAME_PLAYERS_POS_Z + 0.1f
 
static constexpr float GAME_DECAL_POS_Z = fMapBlockSizeDepth / -2.f
 
static constexpr float GAME_DECOR_POS_Z = fMapBlockSizeDepth / -2.f - 0.1f
 

Constructor & Destructor Documentation

◆ Maps() [1/3]

proofps_dd::Maps::Maps ( pge_audio::PgeAudio & audio,
PGEcfgProfiles & cfgProfiles,
PR00FsUltimateRenderingEngine & gfx )

Definition at line 21 of file Maps.cpp.

◆ ~Maps()

proofps_dd::Maps::~Maps ( )

Definition at line 42 of file Maps.cpp.

◆ Maps() [2/3]

proofps_dd::Maps::Maps ( const Maps & )
delete

◆ Maps() [3/3]

proofps_dd::Maps::Maps ( Maps && )
delete

Member Function Documentation

◆ areTeamSpawnpointsDefined()

bool proofps_dd::Maps::areTeamSpawnpointsDefined ( ) const
Returns
True if spawn points are defined for the teams, false otherwise.

Definition at line 535 of file Maps.cpp.

◆ canUseTeamSpawnpoints()

bool proofps_dd::Maps::canUseTeamSpawnpoints ( const bool & bTeamGame,
const unsigned int & iTeamId ) const

Tells if all conditions meet for selecting a team spawnpoint from a spawn group:

  • current game mode is team based,
  • team id is non-zero,
  • there are spawn groups defined for the current map,
  • server config allows using team spawn groups.
Parameters
bTeamGameTrue if current GameMode is team-based game, false otherwise.
iTeamIdThe team ID if we want to find a spawn point from a spawn group for the specified team.
Returns
True if team spawnpoints / spawn groups can be used now, false otherwise.

Definition at line 553 of file Maps.cpp.

◆ checkAndUpdateSpawnpoints()

bool proofps_dd::Maps::checkAndUpdateSpawnpoints ( )
private

Definition at line 2015 of file Maps.cpp.

◆ createSingleSmallStairStep()

bool proofps_dd::Maps::createSingleSmallStairStep ( const bool & bDryRun,
const float & fStairstepPosX,
const float & fStairstepPosY,
const float & fStairstepSizeX,
const float & fStairstepSizeY,
PureTexture * pTexture,
const bool & bDescending,
const float & fU0,
const float & fV0,
const float & fU1,
const float & fV1 )
private

Creates a stairstep.

The given texture UV-coordinates are for the front and back faces only, the other faces will have different UV-coordinates so that the texture will look properly aligned on all surfaces.

Parameters
bDryRunCaller must pass its own such variable. To be on the same page, this function shall never run in dry run!
fStairstepPosXWorld-space position X where to place this new stairstep.
fStairstepPosYWorld-space position Y where to place this new stairstep.
fStairstepSizeXHorizontal size of this new stairstep.
fStairstepSizeYVertical size of this new stairstep.
pTextureTexture to be set. Expected to be nullptr for ascending stairsteps since the next regular foreground block will decide that.
bDescendingTrue if we are creating stairstep as part of a descending stairs block, false if for ascending.
fU0Texture U coordinate of the 2 LEFT-side vertices of the front and back faces of the stairstep box.
fU1Texture U coordinate of the 2 RIGHT-side vertices of the front and back faces of the stairstep box.
fV0Texture V coordinate of the 2 BOTTOM vertices of the front and back faces of the stairstep box.
fV1Texture V coordinate of the 2 TOP vertices of the front and back faces of the stairstep box.

Definition at line 1110 of file Maps.cpp.

◆ createSmallStairStepsForSingleBigStairsBlock()

bool proofps_dd::Maps::createSmallStairStepsForSingleBigStairsBlock ( const bool & bDryRun,
const size_t & iLinePos,
const size_t & nLineLength,
const bool & bCopyPreviousFgBlock,
const int & iObjectFgToBeCopied,
const bool & bCopyPreviousBgBlock,
const int & iObjectBgToBeCopied,
const float & fBlockPosX,
const float & fBlockPosY )
private

Invoked when a stairs block character is encountered.

Parameters
bDryRunCaller must pass their same variable. Need to have same logic based on this variable as caller has.
iLinePosThe current horizontal position index in the current line.
bCopyPreviousFgBlockTrue if we are handling a descending stairs block i.e. the previous block's texture needs to be copied. False if we are handling an ascending stairs block.
iObjectFgToBeCopiedIndex of the foreground block of which texture needs to be copied. Valid only if bCopyPreviousFgBlock is true i.e. when handling a descending stairs block.
bCopyPreviousBgBlockTrue if we can use iObjectBgToBeCopied to make a copy of another background block behind this new stairs block. False if we don't create such background block behind this new stairs block.
iObjectBgToBeCopiedIndex of the background block of we are going to copy. Valid only if bCopyPreviousBgBlock is true.
fBlockPosXThe horizontal world-position of the stairs block we are handling now.
fBlockPosYThe vertical world-position of the stairs block we are handling now.

Definition at line 1269 of file Maps.cpp.

◆ getBlockCount()

int proofps_dd::Maps::getBlockCount ( ) const

Definition at line 659 of file Maps.cpp.

◆ getBlockPosMax()

const PureVector & proofps_dd::Maps::getBlockPosMax ( ) const

Definition at line 634 of file Maps.cpp.

◆ getBlockPosMin()

const PureVector & proofps_dd::Maps::getBlockPosMin ( ) const

Definition at line 629 of file Maps.cpp.

◆ getBlocks()

PureObject3D ** proofps_dd::Maps::getBlocks ( )

Definition at line 649 of file Maps.cpp.

◆ getBlocksVertexPosMax()

const PureVector & proofps_dd::Maps::getBlocksVertexPosMax ( ) const

Definition at line 644 of file Maps.cpp.

◆ getBlocksVertexPosMin()

const PureVector & proofps_dd::Maps::getBlocksVertexPosMin ( ) const

Definition at line 639 of file Maps.cpp.

◆ getBVH()

const PureBoundingVolumeHierarchy & proofps_dd::Maps::getBVH ( ) const

Definition at line 669 of file Maps.cpp.

◆ getConsole()

CConsole & proofps_dd::Maps::getConsole ( ) const

Definition at line 47 of file Maps.cpp.

◆ getDecals()

const std::vector< PureObject3D * > & proofps_dd::Maps::getDecals ( ) const

Definition at line 806 of file Maps.cpp.

◆ getFilename()

const std::string & proofps_dd::Maps::getFilename ( ) const

Retrieves the currently loaded map filename.

Returns
Filename of the currently loaded map. Empty string if no map is loaded currently.

Definition at line 490 of file Maps.cpp.

◆ getForegroundBlockCount()

int proofps_dd::Maps::getForegroundBlockCount ( ) const

Definition at line 664 of file Maps.cpp.

◆ getForegroundBlocks()

PureObject3D ** proofps_dd::Maps::getForegroundBlocks ( )

Definition at line 654 of file Maps.cpp.

◆ getItems()

const std::map< proofps_dd::MapItem::MapItemId, proofps_dd::MapItem * > & proofps_dd::Maps::getItems ( ) const

Definition at line 674 of file Maps.cpp.

◆ getJumppadForceFactors()

const TPURE_XY & proofps_dd::Maps::getJumppadForceFactors ( const size_t & index) const

Definition at line 794 of file Maps.cpp.

◆ getJumppads()

const std::vector< PureObject3D * > & proofps_dd::Maps::getJumppads ( ) const

Definition at line 811 of file Maps.cpp.

◆ getJumppadValidVarsCount()

size_t proofps_dd::Maps::getJumppadValidVarsCount ( )

Definition at line 684 of file Maps.cpp.

◆ getLeftMostSpawnpoint()

const PureVector & proofps_dd::Maps::getLeftMostSpawnpoint ( ) const

Definition at line 609 of file Maps.cpp.

◆ getLoggerModuleName()

const char * proofps_dd::Maps::getLoggerModuleName ( )
static

Definition at line 52 of file Maps.cpp.

◆ getMapcycle()

proofps_dd::Mapcycle & proofps_dd::Maps::getMapcycle ( )

Definition at line 911 of file Maps.cpp.

◆ getNextMapToBeLoaded()

const std::string & proofps_dd::Maps::getNextMapToBeLoaded ( ) const

Definition at line 161 of file Maps.cpp.

◆ getRandomSpawnpoint()

const PureVector & proofps_dd::Maps::getRandomSpawnpoint ( const bool & bTeamGame,
const unsigned int & iTeamId = 0 ) const

Retrieves a randomly selected spawnpoint from the set of spawnpoints of the currently loaded map.

A spawnpoint is a 3D coordinate where the player can spawn at.

This function can be used also if we want to get a randomly selected spawnpoint from a spawn group. In that case bTeamGame and iTeamId arguments need to be properly set. If the current map does not define spawn groups, or the server setting "Team Spawn Groups" is disabled, then these 2 arguments are ignored but still a randomly selected spawnpoint is returned.

Parameters
bTeamGameTrue if current GameMode is team-based game, false otherwise.
iTeamIdThe team ID if we want to find a spawn point from a spawn group for the specified team. Considered only if bTeamGame is true. Must be 1 or 2 to actually utilize spawn groups. If 0, bTeamGame is considered as false.
Returns
A randomly selected spawnpoint on the current map.

Definition at line 579 of file Maps.cpp.

◆ getRightMostSpawnpoint()

const PureVector & proofps_dd::Maps::getRightMostSpawnpoint ( ) const

Definition at line 619 of file Maps.cpp.

◆ getSpawnpoints()

const std::vector< PureVector > & proofps_dd::Maps::getSpawnpoints ( ) const

Retrieves the set of spawnpoints of the currently loaded map.

A spawnpoint is a 3D coordinate where the player can spawn at.

Returns
The set of spawnpoints of the currently loaded map.

Definition at line 502 of file Maps.cpp.

◆ getTeamSpawnpoints()

const std::set< size_t > & proofps_dd::Maps::getTeamSpawnpoints ( const unsigned int & iTeamId) const

Retrieves the spawn group of the currently loaded map, for the specified team.

A spawn group is a set of spawnpoints dedicated to a specific team.

Returns
The set of spawn group of the currently loaded map, for the specified team.

Definition at line 514 of file Maps.cpp.

◆ getVars()

const std::map< std::string, PGEcfgVariable > & proofps_dd::Maps::getVars ( ) const

Definition at line 679 of file Maps.cpp.

◆ handleMapItemUpdateFromServer()

bool proofps_dd::Maps::handleMapItemUpdateFromServer ( pge_network::PgeNetworkConnectionHandle ,
const MsgMapItemUpdateFromServer & msg )

Definition at line 880 of file Maps.cpp.

◆ height()

unsigned int proofps_dd::Maps::height ( ) const

Definition at line 452 of file Maps.cpp.

◆ initialize()

bool proofps_dd::Maps::initialize ( )

Initializes the map handler.

Reads the mapcycle file if it exists. You need to invoke this once before trying to load any map.

Returns
True on success, false otherwise.

Definition at line 64 of file Maps.cpp.

◆ isInitialized()

bool proofps_dd::Maps::isInitialized ( ) const

Definition at line 88 of file Maps.cpp.

◆ lineHandleAssignment()

bool proofps_dd::Maps::lineHandleAssignment ( const std::string & sVar,
const std::string & sValue )
private

Definition at line 1043 of file Maps.cpp.

◆ lineHandleDecalAssignment()

bool proofps_dd::Maps::lineHandleDecalAssignment ( const std::string & sValue)
private

Definition at line 995 of file Maps.cpp.

◆ lineHandleLayout()

bool proofps_dd::Maps::lineHandleLayout ( const std::string & sLine,
TPureFloat & y,
bool bDryRun )
private

This function to be invoked for every single line of the map layout definition.

Map layout definition is the last part of a map file, containing the blocks building up the map (walls, floor, etc.).

Parameters
sLineThe current line of the map layout definition we want to process.
yThe current height we are currently placing newly created blocks for this line of the map definition layout.
bDryRunIf true, blocks are not allocated thus the map is not actually created, however the following variables are actually updated: m_width, m_height, m_blocks_h, m_foregroundBlocks_h, m_items, y. If we finish processing all lines with bDryRun as true, we will know the actual size of the map and number of blocks, thus in the next non-dry run we will have to allocate memory only once for the blocks. And yes, dry run actually creates all the items in m_items.

Definition at line 1407 of file Maps.cpp.

◆ lineIsValueAssignment()

bool proofps_dd::Maps::lineIsValueAssignment ( const std::string & sLine,
std::string & sVar,
std::string & sValue,
bool & bParseError )
staticprivate

Definition at line 928 of file Maps.cpp.

◆ lineShouldBeIgnored()

bool proofps_dd::Maps::lineShouldBeIgnored ( const std::string & sLine)
staticprivate

Definition at line 923 of file Maps.cpp.

◆ load()

bool proofps_dd::Maps::load ( const char * fname,
std::function< void(int)> & cbDisplayProgressUpdate )

Definition at line 171 of file Maps.cpp.

◆ loaded()

bool proofps_dd::Maps::loaded ( ) const

Definition at line 166 of file Maps.cpp.

◆ operator=() [1/2]

Maps & proofps_dd::Maps::operator= ( const Maps & )
delete

◆ operator=() [2/2]

Maps && proofps_dd::Maps::operator= ( Maps && )
delete

◆ parseTeamSpawnpoints()

bool proofps_dd::Maps::parseTeamSpawnpoints ( )
private

Definition at line 1938 of file Maps.cpp.

◆ parseTeamSpawnpointsFromString()

bool proofps_dd::Maps::parseTeamSpawnpointsFromString ( const std::string & sVarValue,
std::set< size_t > & targetSet )
private

Definition at line 1901 of file Maps.cpp.

◆ serverDecideFirstMapAndUpdateNextMapToBeLoaded()

const std::string & proofps_dd::Maps::serverDecideFirstMapAndUpdateNextMapToBeLoaded ( )

Definition at line 123 of file Maps.cpp.

◆ shutdown()

void proofps_dd::Maps::shutdown ( )

Shuts down the map handler.

The currently loaded map will be also unloaded. After calling this, initialize() can be invoked again.

Definition at line 98 of file Maps.cpp.

◆ unload()

void proofps_dd::Maps::unload ( )

Definition at line 384 of file Maps.cpp.

◆ update()

void proofps_dd::Maps::update ( const float & fps,
const PureObject3D & objCurrentPlayer )

Definition at line 816 of file Maps.cpp.

◆ updateVisibilitiesForRenderer()

void proofps_dd::Maps::updateVisibilitiesForRenderer ( )

Definition at line 457 of file Maps.cpp.

◆ width()

unsigned int proofps_dd::Maps::width ( ) const

Definition at line 447 of file Maps.cpp.

Member Data Documentation

◆ backgroundBlocks

const std::set<char> proofps_dd::Maps::backgroundBlocks
private
Initial value:
= {
'a', 'c', 'e', 'm', 'n', 'p', 'o', 'r', 'u', 'v', 'w', 'x', 'y', 'z',
',' ,
'+' ,
'.' ,
'2' ,
'3' ,
'4' ,
'5' ,
'6' ,
'7' ,
'8' ,
'S'
}

Definition at line 143 of file Maps.h.

◆ fMapBlockSizeDepth

float proofps_dd::Maps::fMapBlockSizeDepth = 1.0f
staticconstexpr

Definition at line 41 of file Maps.h.

◆ fMapBlockSizeHeight

float proofps_dd::Maps::fMapBlockSizeHeight = 1.0f
staticconstexpr

Definition at line 40 of file Maps.h.

◆ fMapBlockSizeWidth

float proofps_dd::Maps::fMapBlockSizeWidth = 1.0f
staticconstexpr

Definition at line 39 of file Maps.h.

◆ foregroundBlocks

const std::set<char> proofps_dd::Maps::foregroundBlocks
private
Initial value:
= {
'B', 'D', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'Q', 'T',
'^' ,
'\\' ,
'/'
}

Definition at line 135 of file Maps.h.

◆ fStairstepHeight

float proofps_dd::Maps::fStairstepHeight = fMapBlockSizeHeight / static_cast<float>(nStairstepsCount)
staticconstexpr

Definition at line 44 of file Maps.h.

◆ GAME_DECAL_POS_Z

float proofps_dd::Maps::GAME_DECAL_POS_Z = fMapBlockSizeDepth / -2.f
staticconstexprprivate

Definition at line 125 of file Maps.h.

◆ GAME_DECOR_POS_Z

float proofps_dd::Maps::GAME_DECOR_POS_Z = fMapBlockSizeDepth / -2.f - 0.1f
staticconstexprprivate

Definition at line 126 of file Maps.h.

◆ GAME_ITEMS_POS_Z

float proofps_dd::Maps::GAME_ITEMS_POS_Z = GAME_PLAYERS_POS_Z + 0.1f
staticconstexprprivate

Definition at line 124 of file Maps.h.

◆ GAME_PLAYERS_POS_Z

float proofps_dd::Maps::GAME_PLAYERS_POS_Z = -1.2f
staticconstexpr

Definition at line 46 of file Maps.h.

◆ m_audio

pge_audio::PgeAudio& proofps_dd::Maps::m_audio
private

Definition at line 159 of file Maps.h.

◆ m_Block2Texture

std::map<char, BlockTexture> proofps_dd::Maps::m_Block2Texture
private

Definition at line 181 of file Maps.h.

◆ m_blockPosMax

PureVector proofps_dd::Maps::m_blockPosMax
private

Definition at line 186 of file Maps.h.

◆ m_blockPosMin

PureVector proofps_dd::Maps::m_blockPosMin
private

Definition at line 186 of file Maps.h.

◆ m_blocks

PureObject3D** proofps_dd::Maps::m_blocks
private

Definition at line 170 of file Maps.h.

◆ m_blocks_h

int proofps_dd::Maps::m_blocks_h
private

Definition at line 171 of file Maps.h.

◆ m_blocksVertexPosMax

PureVector proofps_dd::Maps::m_blocksVertexPosMax
private

Definition at line 185 of file Maps.h.

◆ m_blocksVertexPosMin

PureVector proofps_dd::Maps::m_blocksVertexPosMin
private

Definition at line 185 of file Maps.h.

◆ m_bvh

PureBoundingVolumeHierarchyRoot proofps_dd::Maps::m_bvh
private

Definition at line 176 of file Maps.h.

◆ m_cfgProfiles

PGEcfgProfiles& proofps_dd::Maps::m_cfgProfiles
private

Definition at line 160 of file Maps.h.

◆ m_decals

std::vector<PureObject3D*> proofps_dd::Maps::m_decals
private

Definition at line 190 of file Maps.h.

◆ m_decorations

std::vector<PureObject3D*> proofps_dd::Maps::m_decorations
private

Definition at line 191 of file Maps.h.

◆ m_fJumppadForceFactors

std::vector<TPURE_XY> proofps_dd::Maps::m_fJumppadForceFactors
private

Definition at line 194 of file Maps.h.

◆ m_foregroundBlocks

PureObject3D** proofps_dd::Maps::m_foregroundBlocks
private

Definition at line 173 of file Maps.h.

◆ m_foregroundBlocks_h

int proofps_dd::Maps::m_foregroundBlocks_h
private

Definition at line 174 of file Maps.h.

◆ m_gfx

PR00FsUltimateRenderingEngine& proofps_dd::Maps::m_gfx
private

Definition at line 161 of file Maps.h.

◆ m_height

unsigned int proofps_dd::Maps::m_height
private

Definition at line 188 of file Maps.h.

◆ m_items

std::map<MapItem::MapItemId, MapItem*> proofps_dd::Maps::m_items
private

Definition at line 189 of file Maps.h.

◆ m_jumppads

std::vector<PureObject3D*> proofps_dd::Maps::m_jumppads
private

Definition at line 192 of file Maps.h.

◆ m_mapcycle

Mapcycle proofps_dd::Maps::m_mapcycle
private

Definition at line 197 of file Maps.h.

◆ m_mapReferenceBlockObject3Ds

std::map<char, PureObject3D*> proofps_dd::Maps::m_mapReferenceBlockObject3Ds
private

Definition at line 168 of file Maps.h.

◆ m_nValidJumppadVarsCount

size_t proofps_dd::Maps::m_nValidJumppadVarsCount
private

Definition at line 193 of file Maps.h.

◆ m_sFileName

std::string proofps_dd::Maps::m_sFileName
private

Definition at line 180 of file Maps.h.

◆ m_spawngroup_1

std::set<size_t> proofps_dd::Maps::m_spawngroup_1
private

Definition at line 183 of file Maps.h.

◆ m_spawngroup_2

std::set<size_t> proofps_dd::Maps::m_spawngroup_2
private

Definition at line 184 of file Maps.h.

◆ m_spawnpointLeftMost

PureVector proofps_dd::Maps::m_spawnpointLeftMost
private

Definition at line 187 of file Maps.h.

◆ m_spawnpointRightMost

PureVector proofps_dd::Maps::m_spawnpointRightMost
private

Definition at line 187 of file Maps.h.

◆ m_spawnpoints

std::vector<PureVector> proofps_dd::Maps::m_spawnpoints
private

Definition at line 182 of file Maps.h.

◆ m_sRawName

std::string proofps_dd::Maps::m_sRawName
private

Raw map name, basically filename without extension.

Definition at line 179 of file Maps.h.

◆ m_sServerMapFilenameToLoad

std::string proofps_dd::Maps::m_sServerMapFilenameToLoad
private

We set this as soon as we get to know which map we should load.

Definition at line 164 of file Maps.h.

◆ m_texDecorJumpPadVertical

PureTexture* proofps_dd::Maps::m_texDecorJumpPadVertical
private

Definition at line 163 of file Maps.h.

◆ m_texRed

PureTexture* proofps_dd::Maps::m_texRed
private

Definition at line 162 of file Maps.h.

◆ m_vars

std::map<std::string, PGEcfgVariable> proofps_dd::Maps::m_vars
private

Definition at line 178 of file Maps.h.

◆ m_width

unsigned int proofps_dd::Maps::m_width
private

Definition at line 188 of file Maps.h.

◆ nStairstepsCount

size_t proofps_dd::Maps::nStairstepsCount = 4
staticconstexpr

Definition at line 43 of file Maps.h.

◆ szCVarSvMap

char* proofps_dd::Maps::szCVarSvMap = "sv_map"
staticconstexpr

Definition at line 32 of file Maps.h.

◆ szCVarSvMapCollisionBvhDebugRender

char* proofps_dd::Maps::szCVarSvMapCollisionBvhDebugRender = "sv_map_collision_bvh_debug_render"
staticconstexpr

Definition at line 36 of file Maps.h.

◆ szCVarSvMapCollisionBvhMaxDepth

char* proofps_dd::Maps::szCVarSvMapCollisionBvhMaxDepth = "sv_map_collision_bvh_max_depth"
staticconstexpr

Definition at line 37 of file Maps.h.

◆ szCVarSvMapCollisionMode

char* proofps_dd::Maps::szCVarSvMapCollisionMode = "sv_map_collision_mode"
staticconstexpr

Definition at line 35 of file Maps.h.

◆ szCVarSvMapTeamSpawnGroups

char* proofps_dd::Maps::szCVarSvMapTeamSpawnGroups = "sv_map_team_spawn_groups"
staticconstexpr

Definition at line 33 of file Maps.h.


The documentation for this class was generated from the following files: