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

Detailed Description

Definition at line 31 of file MapsTest.h.

#include <MapsTest.h>

+ Inheritance diagram for MapsTest:

Public Member Functions

 MapsTest (PGEcfgProfiles &cfgProfiles)
 
 MapsTest (const MapsTest &)=delete
 
MapsTestoperator= (const MapsTest &)=delete
 
 MapsTest (MapsTest &&)=delete
 
MapsTestoperator= (MapsTest &&)=delete
 
- Public Member Functions inherited from MapTestsCommon
 MapTestsCommon (const char *szTestName)
 
 MapTestsCommon (const MapTestsCommon &)=delete
 
MapTestsCommonoperator= (const MapTestsCommon &)=delete
 
 MapTestsCommon (MapTestsCommon &&)=delete
 
MapTestsCommonoperator= (MapTestsCommon &&)=delete
 

Protected Member Functions

virtual void initialize () override
 
virtual bool setUp () override
 
virtual void tearDown () override
 
virtual void finalize () override
 
- Protected Member Functions inherited from MapTestsCommon
bool checkConstCharPtrArrayElemsPointingToContainerElems (const std::vector< std::string > &vec, const char **vszArray)
 
bool checkConstCharPtrArrayElemsPointingToContainerElems (const std::set< std::string > &settt, const char **vszArray)
 

Private Member Functions

bool test_map_has_default_values (proofps_dd::Maps &maps)
 
bool test_initially_empty ()
 
bool test_map_load_bad_filename ()
 
bool test_map_load_bad_assignment ()
 
bool test_map_load_bad_order ()
 
bool test_map_load_bad_jumppad_count ()
 
bool test_map_load_bad_jumppad_force_value ()
 
bool test_map_load_bad_spawn_group_contains_all_indices ()
 
bool test_map_load_bad_spawn_group_double_spawn_index ()
 
bool test_map_load_bad_spawn_group_double_spawn_index_2 ()
 
bool test_map_load_bad_spawn_group_spawn_index ()
 
bool test_map_load_bad_spawn_group_spawn_word_as_index ()
 
bool test_map_load_bad_first_block_in_line_cannot_be_stairs ()
 
bool test_map_load_bad_last_block_in_line_cannot_be_stairs ()
 
bool test_map_load_good ()
 
bool test_map_unload_and_load_again ()
 
bool test_map_shutdown ()
 
bool test_map_server_decide_first_map_to_be_loaded ()
 
bool test_map_get_random_spawnpoint_no_teamgame ()
 
bool test_map_get_team_spawnpoints ()
 
bool test_map_are_team_spawnpoints_defined ()
 
bool test_map_can_use_team_spawnpoints ()
 
bool test_map_get_random_spawnpoint_teamgame ()
 
bool test_map_get_random_spawnpoint_teamgame_does_not_select_unassigned ()
 
bool test_map_load_without_team_spawnpoints_good ()
 
bool test_map_get_leftmost_spawnpoint ()
 
bool test_map_get_rightmost_spawnpoint ()
 
bool test_map_update ()
 
bool test_map_handle_map_item_update_from_server ()
 

Private Attributes

pge_audio::PgeAudio m_audio
 
PGEcfgProfiles & m_cfgProfiles
 
PR00FsUltimateRenderingEngine * engine
 
std::function< void(int)> m_cbDisplayMapLoadingProgressUpdate
 

Static Private Attributes

static const unsigned int MAP_TEST_W = 52u
 
static const unsigned int MAP_TEST_H = 10u
 

Constructor & Destructor Documentation

◆ MapsTest() [1/3]

MapsTest::MapsTest ( PGEcfgProfiles & cfgProfiles)
inline

Definition at line 36 of file MapsTest.h.

◆ MapsTest() [2/3]

MapsTest::MapsTest ( const MapsTest & )
delete

◆ MapsTest() [3/3]

MapsTest::MapsTest ( MapsTest && )
delete

Member Function Documentation

◆ finalize()

virtual void MapsTest::finalize ( )
inlineoverrideprotectedvirtual

Definition at line 109 of file MapsTest.h.

◆ initialize()

virtual void MapsTest::initialize ( )
inlineoverrideprotectedvirtual

Definition at line 51 of file MapsTest.h.

◆ operator=() [1/2]

MapsTest & MapsTest::operator= ( const MapsTest & )
delete

◆ operator=() [2/2]

MapsTest & MapsTest::operator= ( MapsTest && )
delete

◆ setUp()

virtual bool MapsTest::setUp ( )
inlineoverrideprotectedvirtual

Definition at line 98 of file MapsTest.h.

◆ tearDown()

virtual void MapsTest::tearDown ( )
inlineoverrideprotectedvirtual

Definition at line 104 of file MapsTest.h.

◆ test_initially_empty()

bool MapsTest::test_initially_empty ( )
inlineprivate

Definition at line 210 of file MapsTest.h.

◆ test_map_are_team_spawnpoints_defined()

bool MapsTest::test_map_are_team_spawnpoints_defined ( )
inlineprivate

Definition at line 836 of file MapsTest.h.

◆ test_map_can_use_team_spawnpoints()

bool MapsTest::test_map_can_use_team_spawnpoints ( )
inlineprivate

Definition at line 850 of file MapsTest.h.

◆ test_map_get_leftmost_spawnpoint()

bool MapsTest::test_map_get_leftmost_spawnpoint ( )
inlineprivate

Definition at line 1020 of file MapsTest.h.

◆ test_map_get_random_spawnpoint_no_teamgame()

bool MapsTest::test_map_get_random_spawnpoint_no_teamgame ( )
inlineprivate

Definition at line 738 of file MapsTest.h.

◆ test_map_get_random_spawnpoint_teamgame()

bool MapsTest::test_map_get_random_spawnpoint_teamgame ( )
inlineprivate

Definition at line 883 of file MapsTest.h.

◆ test_map_get_random_spawnpoint_teamgame_does_not_select_unassigned()

bool MapsTest::test_map_get_random_spawnpoint_teamgame_does_not_select_unassigned ( )
inlineprivate

Definition at line 942 of file MapsTest.h.

◆ test_map_get_rightmost_spawnpoint()

bool MapsTest::test_map_get_rightmost_spawnpoint ( )
inlineprivate

Definition at line 1049 of file MapsTest.h.

◆ test_map_get_team_spawnpoints()

bool MapsTest::test_map_get_team_spawnpoints ( )
inlineprivate

Definition at line 779 of file MapsTest.h.

◆ test_map_handle_map_item_update_from_server()

bool MapsTest::test_map_handle_map_item_update_from_server ( )
inlineprivate

Definition at line 1114 of file MapsTest.h.

◆ test_map_has_default_values()

bool MapsTest::test_map_has_default_values ( proofps_dd::Maps & maps)
inlineprivate

Definition at line 134 of file MapsTest.h.

◆ test_map_load_bad_assignment()

bool MapsTest::test_map_load_bad_assignment ( )
inlineprivate

Definition at line 250 of file MapsTest.h.

◆ test_map_load_bad_filename()

bool MapsTest::test_map_load_bad_filename ( )
inlineprivate

Definition at line 240 of file MapsTest.h.

◆ test_map_load_bad_first_block_in_line_cannot_be_stairs()

bool MapsTest::test_map_load_bad_first_block_in_line_cannot_be_stairs ( )
inlineprivate

Definition at line 340 of file MapsTest.h.

◆ test_map_load_bad_jumppad_count()

bool MapsTest::test_map_load_bad_jumppad_count ( )
inlineprivate

Definition at line 270 of file MapsTest.h.

◆ test_map_load_bad_jumppad_force_value()

bool MapsTest::test_map_load_bad_jumppad_force_value ( )
inlineprivate

Definition at line 280 of file MapsTest.h.

◆ test_map_load_bad_last_block_in_line_cannot_be_stairs()

bool MapsTest::test_map_load_bad_last_block_in_line_cannot_be_stairs ( )
inlineprivate

Definition at line 350 of file MapsTest.h.

◆ test_map_load_bad_order()

bool MapsTest::test_map_load_bad_order ( )
inlineprivate

Definition at line 260 of file MapsTest.h.

◆ test_map_load_bad_spawn_group_contains_all_indices()

bool MapsTest::test_map_load_bad_spawn_group_contains_all_indices ( )
inlineprivate

Definition at line 290 of file MapsTest.h.

◆ test_map_load_bad_spawn_group_double_spawn_index()

bool MapsTest::test_map_load_bad_spawn_group_double_spawn_index ( )
inlineprivate

Definition at line 300 of file MapsTest.h.

◆ test_map_load_bad_spawn_group_double_spawn_index_2()

bool MapsTest::test_map_load_bad_spawn_group_double_spawn_index_2 ( )
inlineprivate

Definition at line 310 of file MapsTest.h.

◆ test_map_load_bad_spawn_group_spawn_index()

bool MapsTest::test_map_load_bad_spawn_group_spawn_index ( )
inlineprivate

Definition at line 320 of file MapsTest.h.

◆ test_map_load_bad_spawn_group_spawn_word_as_index()

bool MapsTest::test_map_load_bad_spawn_group_spawn_word_as_index ( )
inlineprivate

Definition at line 330 of file MapsTest.h.

◆ test_map_load_good()

bool MapsTest::test_map_load_good ( )
inlineprivate

Definition at line 360 of file MapsTest.h.

◆ test_map_load_without_team_spawnpoints_good()

bool MapsTest::test_map_load_without_team_spawnpoints_good ( )
inlineprivate

Definition at line 992 of file MapsTest.h.

◆ test_map_server_decide_first_map_to_be_loaded()

bool MapsTest::test_map_server_decide_first_map_to_be_loaded ( )
inlineprivate

Definition at line 702 of file MapsTest.h.

◆ test_map_shutdown()

bool MapsTest::test_map_shutdown ( )
inlineprivate

Definition at line 673 of file MapsTest.h.

◆ test_map_unload_and_load_again()

bool MapsTest::test_map_unload_and_load_again ( )
inlineprivate

Definition at line 540 of file MapsTest.h.

◆ test_map_update()

bool MapsTest::test_map_update ( )
inlineprivate

Definition at line 1078 of file MapsTest.h.

Member Data Documentation

◆ engine

PR00FsUltimateRenderingEngine* MapsTest::engine
private

Definition at line 129 of file MapsTest.h.

◆ m_audio

pge_audio::PgeAudio MapsTest::m_audio
private

Definition at line 127 of file MapsTest.h.

◆ m_cbDisplayMapLoadingProgressUpdate

std::function<void(int)> MapsTest::m_cbDisplayMapLoadingProgressUpdate
private

Definition at line 130 of file MapsTest.h.

◆ m_cfgProfiles

PGEcfgProfiles& MapsTest::m_cfgProfiles
private

Definition at line 128 of file MapsTest.h.

◆ MAP_TEST_H

const unsigned int MapsTest::MAP_TEST_H = 10u
staticprivate

Definition at line 125 of file MapsTest.h.

◆ MAP_TEST_W

const unsigned int MapsTest::MAP_TEST_W = 52u
staticprivate

Definition at line 124 of file MapsTest.h.


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