PRooFPS-dd Dev Doc 1.0
PRooFPS-dd Developer Documentation
Loading...
Searching...
No Matches
TestableMaps Class Reference

Detailed Description

Definition at line 16 of file MapsTest.h.

#include <MapsTest.h>

+ Inheritance diagram for TestableMaps:

Public Member Functions

 TestableMaps (pge_audio::PgeAudio &audio, PGEcfgProfiles &cfgProfiles, PR00FsUltimateRenderingEngine &gfx)
 
virtual ~TestableMaps ()
 
- Public Member Functions inherited from proofps_dd::Maps
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 ()
 

Friends

class MapsTest
 

Additional Inherited Members

- Static Public Member Functions inherited from proofps_dd::Maps
static const char * getLoggerModuleName ()
 
- Static Public Attributes inherited from proofps_dd::Maps
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
 

Constructor & Destructor Documentation

◆ TestableMaps()

TestableMaps::TestableMaps ( pge_audio::PgeAudio & audio,
PGEcfgProfiles & cfgProfiles,
PR00FsUltimateRenderingEngine & gfx )
inline

Definition at line 20 of file MapsTest.h.

◆ ~TestableMaps()

virtual TestableMaps::~TestableMaps ( )
inlinevirtual

Definition at line 26 of file MapsTest.h.

Friends And Related Symbol Documentation

◆ MapsTest

friend class MapsTest
friend

Definition at line 28 of file MapsTest.h.


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