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

Detailed Description

Definition at line 93 of file GameModeTest.h.

#include <GameModeTest.h>

+ Inheritance diagram for GameModeTest:

Public Member Functions

 GameModeTest (PGEcfgProfiles &cfgProfiles)
 
 GameModeTest (const GameModeTest &)=delete
 
GameModeTestoperator= (const GameModeTest &)=delete
 
 GameModeTest (GameModeTest &&)=delete
 
GameModeTestoperator= (GameModeTest &&)=delete
 

Protected Member Functions

virtual void initialize () override
 
virtual bool setUp () override
 
virtual void tearDown () override
 
virtual void finalize () override
 
bool testInitGamemode (const proofps_dd::GameModeType &gamemode)
 

Private Member Functions

bool assertFragTableEquals (const std::vector< proofps_dd::PlayersTableRow > &expectedPlayers, const std::list< proofps_dd::PlayersTableRow > &fragTable, const std::string &sLogText="")
 
bool assertFragTableEqualsEz (const std::vector< proofps_dd::PlayersTableRow > &expectedPlayers, const std::list< proofps_dd::PlayersTableRow > &fragTable, const proofps_dd::GameModeType &gamemode, const bool &bTestingAsServer, const std::string &sLogText)
 
bool assertTrueEz (bool statement, const proofps_dd::GameModeType &gamemode, const bool &bTestingAsServer, const std::string &strText)
 
bool assertFalseEz (bool statement, const proofps_dd::GameModeType &gamemode, const bool &bTestingAsServer, const std::string &strText)
 
template<class T , class S >
bool assertEqualsEz (const T &expected, const S &checked, const proofps_dd::GameModeType &gamemode, const bool &bTestingAsServer, const std::string &strText)
 
template<class T , class S >
bool assertLequalsEz (const T &checked, const S &comparedTo, const proofps_dd::GameModeType &gamemode, const bool &bTestingAsServer, const std::string &strText)
 
template<class T , class S >
bool assertLessEz (const T &checked, const S &comparedTo, const proofps_dd::GameModeType &gamemode, const bool &bTestingAsServer, const std::string &strText)
 
bool add2plus1players ()
 Creates 3 new players in m_mapPlayers, assigns the first 2 to Team 1, and the last player to Team 2.
 
bool test_get_gamemodetype_name ()
 
bool test_get_gamemodetype_from_config ()
 
bool test_gamemodetype_prefix_increment_operator ()
 
bool test_factory_creates_deathmatch ()
 
bool test_factory_creates_teamdeathmatch ()
 
bool test_factory_creates_teamroundgame ()
 
bool test_restart_updates_times ()
 
bool test_rename_player ()
 
bool test_get_rank ()
 
bool test_time_limit_get_set_and_remaining_time_get ()
 
bool test_time_limit_client_update_time_remaining_secs ()
 
bool test_winning_cond_time_limit ()
 
bool test_receive_and_update_winning_conditions_client ()
 
bool test_frag_limit_get_set (const proofps_dd::GameModeType &gamemode)
 
bool test_frag_limit_get_set ()
 
bool test_round_win_limit_get_set (const proofps_dd::GameModeType &gamemode)
 
bool test_round_win_limit_get_set ()
 
bool test_deathmatch_fetch_config (const proofps_dd::GameModeType &gamemode)
 
bool test_deathmatch_fetch_config ()
 
bool test_teamroundgame_fetch_config (const proofps_dd::GameModeType &gamemode)
 
bool test_teamroundgame_fetch_config ()
 
bool test_add_player_zero_values_maintains_adding_order (const proofps_dd::GameModeType &gamemode)
 
bool test_add_player_zero_values_maintains_adding_order ()
 
bool test_add_player_random_values (const proofps_dd::GameModeType &gamemode)
 
bool test_add_player_random_values ()
 
bool test_add_player_already_existing_fails (const proofps_dd::GameModeType &gamemode)
 
bool test_add_player_already_existing_fails ()
 
bool test_add_player_sends_winning_state_only_when_game_is_already_won (const proofps_dd::GameModeType &gamemode)
 
bool test_add_player_sends_winning_state_only_when_game_is_already_won ()
 
bool test_update_player (const proofps_dd::GameModeType &gamemode)
 
bool test_update_player ()
 
bool test_update_player_non_existing_fails (const proofps_dd::GameModeType &gamemode)
 
bool test_update_player_non_existing_fails ()
 
bool test_remove_player (const proofps_dd::GameModeType &gamemode)
 
bool test_remove_player ()
 
bool test_restart_deathmatches (const proofps_dd::GameModeType &gamemode)
 
bool test_restart_deathmatches ()
 
bool test_restart_roundgames (const proofps_dd::GameModeType &gamemode)
 
bool test_restart_roundgames ()
 
bool test_restart_deathmatches_without_removing_players (const proofps_dd::GameModeType &gamemode)
 
bool test_restart_deathmatches_without_removing_players ()
 
bool test_restart_roundgames_without_removing_players (const proofps_dd::GameModeType &gamemode)
 
bool test_restart_roundgames_without_removing_players ()
 
bool test_winning_cond_defaults_to_false (const proofps_dd::GameModeType &gamemode)
 
bool test_winning_cond_defaults_to_false ()
 
bool test_winning_cond_frag_limit (const proofps_dd::GameModeType &gamemode, bool playersSpectatorMode)
 
bool test_winning_cond_frag_limit ()
 
bool test_deathmatch_does_count_frags_with_spectators ()
 
bool test_winning_cond_time_and_frag_limit (const proofps_dd::GameModeType &gamemode)
 
bool test_winning_cond_time_and_frag_limit ()
 
bool test_deathmatch_is_player_allowed_for_gameplay ()
 
bool test_team_deathmatch_get_team_color ()
 
bool test_team_games_do_not_count_frags_with_zero_team_id_or_in_spectator_mode (const proofps_dd::GameModeType &gamemode)
 
bool test_team_games_do_not_count_frags_with_zero_team_id_or_in_spectator_mode ()
 
bool test_team_games_do_not_allow_any_team_id (const proofps_dd::GameModeType &gamemode)
 
bool test_team_games_do_not_allow_any_team_id ()
 
bool test_team_games_is_player_allowed_for_gameplay (const proofps_dd::GameModeType &gamemode)
 
bool test_team_games_is_player_allowed_for_gameplay ()
 
bool test_team_games_get_alive_team_players_count (const proofps_dd::GameModeType &gamemode)
 
bool test_team_games_get_alive_team_players_count ()
 
bool test_round_games_winning_cond_time_and_round_win_limit (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_winning_cond_time_and_round_win_limit ()
 
bool test_round_games_get_time_limit_in_current_state (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_get_time_limit_in_current_state ()
 
bool test_round_games_get_time_remaining_in_current_state (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_get_time_remaining_in_current_state ()
 
bool test_round_games_client_update_time_remaining_in_current_state_millisecs (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_client_update_time_remaining_in_current_state_millisecs ()
 
bool test_round_games_transition_to_play_state_after_n_seconds (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_transition_to_play_state_after_n_seconds ()
 
bool test_round_games_round_is_won_when_a_team_dies_and_other_team_is_not_empty (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_round_is_won_when_a_team_dies_and_other_team_is_not_empty ()
 
bool test_round_games_round_ends_without_win_when_a_team_becomes_empty_and_other_team_is_not_empty (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_round_ends_without_win_when_a_team_becomes_empty_and_other_team_is_not_empty ()
 
bool test_round_games_round_ends_without_win_when_a_team_dies_and_other_team_is_empty (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_round_ends_without_win_when_a_team_dies_and_other_team_is_empty ()
 
bool test_round_games_round_ends_without_win_when_first_player_joins_a_team (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_round_ends_without_win_when_first_player_joins_a_team ()
 
bool test_round_games_round_ends_without_win_when_second_player_joins_the_other_team (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_round_ends_without_win_when_second_player_joins_the_other_team ()
 
bool test_round_games_round_cannot_be_won_by_killing_a_team_if_fsm_is_not_in_play_state (const proofps_dd::GameModeType &gamemode, const proofps_dd::TeamRoundGameMode::RoundStateFSM::RoundState &fsmStateBeingTested)
 
bool test_round_games_round_cannot_be_won_by_killing_a_team_if_fsm_is_not_in_play_state ()
 
bool test_round_games_player_movement_allowed (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_player_movement_allowed ()
 
bool test_round_games_hasJustTransitionedTo_functions_server (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_hasJustTransitionedTo_functions_server ()
 
bool test_round_games_hasJustTransitionedTo_functions_client (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_hasJustTransitionedTo_functions_client ()
 
bool test_round_games_hasJustTransitionedTo_always_detects_restart (const proofps_dd::GameModeType &gamemode)
 
bool test_round_games_hasJustTransitionedTo_always_detects_restart ()
 

Private Attributes

std::map< pge_network::PgeNetworkConnectionHandle, proofps_dd::Playerm_mapPlayers
 
proofps_dd::GameModegm
 
proofps_dd::DeathMatchModedm
 
proofps_dd::TeamDeathMatchModetdm
 
proofps_dd::TeamRoundGameModetrg
 
pge_audio::PgeAudio m_audio
 
PGEcfgProfiles & m_cfgProfiles
 
PgeObjectPool< PooledBullet > m_bullets
 
proofps_dd::EventLister m_itemPickupEvents
 
proofps_dd::EventLister m_inventoryChangeEvents
 
proofps_dd::EventLister m_ammoChangeEvents
 
PR00FsUltimateRenderingEngine * m_engine
 
pge_network::PgeNetworkStub m_network
 

Constructor & Destructor Documentation

◆ GameModeTest() [1/3]

GameModeTest::GameModeTest ( PGEcfgProfiles & cfgProfiles)
inline

Definition at line 98 of file GameModeTest.h.

◆ GameModeTest() [2/3]

GameModeTest::GameModeTest ( const GameModeTest & )
delete

◆ GameModeTest() [3/3]

GameModeTest::GameModeTest ( GameModeTest && )
delete

Member Function Documentation

◆ add2plus1players()

bool GameModeTest::add2plus1players ( )
inlineprivate

Creates 3 new players in m_mapPlayers, assigns the first 2 to Team 1, and the last player to Team 2.

Returns
True on success, false otherwise.

Definition at line 387 of file GameModeTest.h.

◆ assertEqualsEz()

template<class T , class S >
bool GameModeTest::assertEqualsEz ( const T & expected,
const S & checked,
const proofps_dd::GameModeType & gamemode,
const bool & bTestingAsServer,
const std::string & strText )
inlineprivate

Definition at line 355 of file GameModeTest.h.

◆ assertFalseEz()

bool GameModeTest::assertFalseEz ( bool statement,
const proofps_dd::GameModeType & gamemode,
const bool & bTestingAsServer,
const std::string & strText )
inlineprivate

Definition at line 346 of file GameModeTest.h.

◆ assertFragTableEquals()

bool GameModeTest::assertFragTableEquals ( const std::vector< proofps_dd::PlayersTableRow > & expectedPlayers,
const std::list< proofps_dd::PlayersTableRow > & fragTable,
const std::string & sLogText = "" )
inlineprivate

Definition at line 292 of file GameModeTest.h.

◆ assertFragTableEqualsEz()

bool GameModeTest::assertFragTableEqualsEz ( const std::vector< proofps_dd::PlayersTableRow > & expectedPlayers,
const std::list< proofps_dd::PlayersTableRow > & fragTable,
const proofps_dd::GameModeType & gamemode,
const bool & bTestingAsServer,
const std::string & sLogText )
inlineprivate

Definition at line 324 of file GameModeTest.h.

◆ assertLequalsEz()

template<class T , class S >
bool GameModeTest::assertLequalsEz ( const T & checked,
const S & comparedTo,
const proofps_dd::GameModeType & gamemode,
const bool & bTestingAsServer,
const std::string & strText )
inlineprivate

Definition at line 365 of file GameModeTest.h.

◆ assertLessEz()

template<class T , class S >
bool GameModeTest::assertLessEz ( const T & checked,
const S & comparedTo,
const proofps_dd::GameModeType & gamemode,
const bool & bTestingAsServer,
const std::string & strText )
inlineprivate

Definition at line 375 of file GameModeTest.h.

◆ assertTrueEz()

bool GameModeTest::assertTrueEz ( bool statement,
const proofps_dd::GameModeType & gamemode,
const bool & bTestingAsServer,
const std::string & strText )
inlineprivate

Definition at line 338 of file GameModeTest.h.

◆ finalize()

virtual void GameModeTest::finalize ( )
inlineoverrideprotectedvirtual

Definition at line 223 of file GameModeTest.h.

◆ initialize()

virtual void GameModeTest::initialize ( )
inlineoverrideprotectedvirtual

Definition at line 120 of file GameModeTest.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

GameModeTest & GameModeTest::operator= ( GameModeTest && )
delete

◆ setUp()

virtual bool GameModeTest::setUp ( )
inlineoverrideprotectedvirtual

Definition at line 200 of file GameModeTest.h.

◆ tearDown()

virtual void GameModeTest::tearDown ( )
inlineoverrideprotectedvirtual

Definition at line 217 of file GameModeTest.h.

◆ test_add_player_already_existing_fails() [1/2]

bool GameModeTest::test_add_player_already_existing_fails ( )
inlineprivate

Definition at line 1397 of file GameModeTest.h.

◆ test_add_player_already_existing_fails() [2/2]

bool GameModeTest::test_add_player_already_existing_fails ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 1293 of file GameModeTest.h.

◆ test_add_player_random_values() [1/2]

bool GameModeTest::test_add_player_random_values ( )
inlineprivate

Definition at line 1281 of file GameModeTest.h.

◆ test_add_player_random_values() [2/2]

bool GameModeTest::test_add_player_random_values ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 1188 of file GameModeTest.h.

◆ test_add_player_sends_winning_state_only_when_game_is_already_won() [1/2]

bool GameModeTest::test_add_player_sends_winning_state_only_when_game_is_already_won ( )
inlineprivate

Definition at line 1608 of file GameModeTest.h.

◆ test_add_player_sends_winning_state_only_when_game_is_already_won() [2/2]

bool GameModeTest::test_add_player_sends_winning_state_only_when_game_is_already_won ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 1409 of file GameModeTest.h.

◆ test_add_player_zero_values_maintains_adding_order() [1/2]

bool GameModeTest::test_add_player_zero_values_maintains_adding_order ( )
inlineprivate

Definition at line 1176 of file GameModeTest.h.

◆ test_add_player_zero_values_maintains_adding_order() [2/2]

bool GameModeTest::test_add_player_zero_values_maintains_adding_order ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 1083 of file GameModeTest.h.

◆ test_deathmatch_does_count_frags_with_spectators()

bool GameModeTest::test_deathmatch_does_count_frags_with_spectators ( )
inlineprivate

Definition at line 2982 of file GameModeTest.h.

◆ test_deathmatch_fetch_config() [1/2]

bool GameModeTest::test_deathmatch_fetch_config ( )
inlineprivate

Definition at line 1021 of file GameModeTest.h.

◆ test_deathmatch_fetch_config() [2/2]

bool GameModeTest::test_deathmatch_fetch_config ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 980 of file GameModeTest.h.

◆ test_deathmatch_is_player_allowed_for_gameplay()

bool GameModeTest::test_deathmatch_is_player_allowed_for_gameplay ( )
inlineprivate

Definition at line 3254 of file GameModeTest.h.

◆ test_factory_creates_deathmatch()

bool GameModeTest::test_factory_creates_deathmatch ( )
inlineprivate

Definition at line 499 of file GameModeTest.h.

◆ test_factory_creates_teamdeathmatch()

bool GameModeTest::test_factory_creates_teamdeathmatch ( )
inlineprivate

Definition at line 522 of file GameModeTest.h.

◆ test_factory_creates_teamroundgame()

bool GameModeTest::test_factory_creates_teamroundgame ( )
inlineprivate

Definition at line 545 of file GameModeTest.h.

◆ test_frag_limit_get_set() [1/2]

bool GameModeTest::test_frag_limit_get_set ( )
inlineprivate

Definition at line 922 of file GameModeTest.h.

◆ test_frag_limit_get_set() [2/2]

bool GameModeTest::test_frag_limit_get_set ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 889 of file GameModeTest.h.

◆ test_gamemodetype_prefix_increment_operator()

bool GameModeTest::test_gamemodetype_prefix_increment_operator ( )
inlineprivate

Definition at line 487 of file GameModeTest.h.

◆ test_get_gamemodetype_from_config()

bool GameModeTest::test_get_gamemodetype_from_config ( )
inlineprivate

Definition at line 464 of file GameModeTest.h.

◆ test_get_gamemodetype_name()

bool GameModeTest::test_get_gamemodetype_name ( )
inlineprivate

Definition at line 456 of file GameModeTest.h.

◆ test_get_rank()

bool GameModeTest::test_get_rank ( )
inlineprivate

Definition at line 701 of file GameModeTest.h.

◆ test_receive_and_update_winning_conditions_client()

bool GameModeTest::test_receive_and_update_winning_conditions_client ( )
inlineprivate

Definition at line 866 of file GameModeTest.h.

◆ test_remove_player() [1/2]

bool GameModeTest::test_remove_player ( )
inlineprivate

Definition at line 2069 of file GameModeTest.h.

◆ test_remove_player() [2/2]

bool GameModeTest::test_remove_player ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 1897 of file GameModeTest.h.

◆ test_rename_player()

bool GameModeTest::test_rename_player ( )
inlineprivate

Definition at line 604 of file GameModeTest.h.

◆ test_restart_deathmatches() [1/2]

bool GameModeTest::test_restart_deathmatches ( )
inlineprivate

Definition at line 2233 of file GameModeTest.h.

◆ test_restart_deathmatches() [2/2]

bool GameModeTest::test_restart_deathmatches ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 2079 of file GameModeTest.h.

◆ test_restart_deathmatches_without_removing_players() [1/2]

bool GameModeTest::test_restart_deathmatches_without_removing_players ( )
inlineprivate

Definition at line 2584 of file GameModeTest.h.

◆ test_restart_deathmatches_without_removing_players() [2/2]

bool GameModeTest::test_restart_deathmatches_without_removing_players ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 2418 of file GameModeTest.h.

◆ test_restart_roundgames() [1/2]

bool GameModeTest::test_restart_roundgames ( )
inlineprivate

Definition at line 2408 of file GameModeTest.h.

◆ test_restart_roundgames() [2/2]

bool GameModeTest::test_restart_roundgames ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 2243 of file GameModeTest.h.

◆ test_restart_roundgames_without_removing_players() [1/2]

bool GameModeTest::test_restart_roundgames_without_removing_players ( )
inlineprivate

Definition at line 2773 of file GameModeTest.h.

◆ test_restart_roundgames_without_removing_players() [2/2]

bool GameModeTest::test_restart_roundgames_without_removing_players ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 2596 of file GameModeTest.h.

◆ test_restart_updates_times()

bool GameModeTest::test_restart_updates_times ( )
inlineprivate

Definition at line 576 of file GameModeTest.h.

◆ test_round_games_client_update_time_remaining_in_current_state_millisecs() [1/2]

bool GameModeTest::test_round_games_client_update_time_remaining_in_current_state_millisecs ( )
inlineprivate

Definition at line 4131 of file GameModeTest.h.

◆ test_round_games_client_update_time_remaining_in_current_state_millisecs() [2/2]

bool GameModeTest::test_round_games_client_update_time_remaining_in_current_state_millisecs ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 4095 of file GameModeTest.h.

◆ test_round_games_get_time_limit_in_current_state() [1/2]

bool GameModeTest::test_round_games_get_time_limit_in_current_state ( )
inlineprivate

Definition at line 3977 of file GameModeTest.h.

◆ test_round_games_get_time_limit_in_current_state() [2/2]

bool GameModeTest::test_round_games_get_time_limit_in_current_state ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 3935 of file GameModeTest.h.

◆ test_round_games_get_time_remaining_in_current_state() [1/2]

bool GameModeTest::test_round_games_get_time_remaining_in_current_state ( )
inlineprivate

Definition at line 4083 of file GameModeTest.h.

◆ test_round_games_get_time_remaining_in_current_state() [2/2]

bool GameModeTest::test_round_games_get_time_remaining_in_current_state ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 3989 of file GameModeTest.h.

◆ test_round_games_hasJustTransitionedTo_always_detects_restart() [1/2]

bool GameModeTest::test_round_games_hasJustTransitionedTo_always_detects_restart ( )
inlineprivate

Definition at line 5489 of file GameModeTest.h.

◆ test_round_games_hasJustTransitionedTo_always_detects_restart() [2/2]

bool GameModeTest::test_round_games_hasJustTransitionedTo_always_detects_restart ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 5431 of file GameModeTest.h.

◆ test_round_games_hasJustTransitionedTo_functions_client() [1/2]

bool GameModeTest::test_round_games_hasJustTransitionedTo_functions_client ( )
inlineprivate

Definition at line 5419 of file GameModeTest.h.

◆ test_round_games_hasJustTransitionedTo_functions_client() [2/2]

bool GameModeTest::test_round_games_hasJustTransitionedTo_functions_client ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 5296 of file GameModeTest.h.

◆ test_round_games_hasJustTransitionedTo_functions_server() [1/2]

bool GameModeTest::test_round_games_hasJustTransitionedTo_functions_server ( )
inlineprivate

Definition at line 5284 of file GameModeTest.h.

◆ test_round_games_hasJustTransitionedTo_functions_server() [2/2]

bool GameModeTest::test_round_games_hasJustTransitionedTo_functions_server ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 5102 of file GameModeTest.h.

◆ test_round_games_player_movement_allowed() [1/2]

bool GameModeTest::test_round_games_player_movement_allowed ( )
inlineprivate

Definition at line 5090 of file GameModeTest.h.

◆ test_round_games_player_movement_allowed() [2/2]

bool GameModeTest::test_round_games_player_movement_allowed ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 5041 of file GameModeTest.h.

◆ test_round_games_round_cannot_be_won_by_killing_a_team_if_fsm_is_not_in_play_state() [1/2]

bool GameModeTest::test_round_games_round_cannot_be_won_by_killing_a_team_if_fsm_is_not_in_play_state ( )
inlineprivate

Definition at line 5021 of file GameModeTest.h.

◆ test_round_games_round_cannot_be_won_by_killing_a_team_if_fsm_is_not_in_play_state() [2/2]

bool GameModeTest::test_round_games_round_cannot_be_won_by_killing_a_team_if_fsm_is_not_in_play_state ( const proofps_dd::GameModeType & gamemode,
const proofps_dd::TeamRoundGameMode::RoundStateFSM::RoundState & fsmStateBeingTested )
inlineprivate

Definition at line 4898 of file GameModeTest.h.

◆ test_round_games_round_ends_without_win_when_a_team_becomes_empty_and_other_team_is_not_empty() [1/2]

bool GameModeTest::test_round_games_round_ends_without_win_when_a_team_becomes_empty_and_other_team_is_not_empty ( )
inlineprivate

Definition at line 4487 of file GameModeTest.h.

◆ test_round_games_round_ends_without_win_when_a_team_becomes_empty_and_other_team_is_not_empty() [2/2]

bool GameModeTest::test_round_games_round_ends_without_win_when_a_team_becomes_empty_and_other_team_is_not_empty ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 4367 of file GameModeTest.h.

◆ test_round_games_round_ends_without_win_when_a_team_dies_and_other_team_is_empty() [1/2]

bool GameModeTest::test_round_games_round_ends_without_win_when_a_team_dies_and_other_team_is_empty ( )
inlineprivate

Definition at line 4660 of file GameModeTest.h.

◆ test_round_games_round_ends_without_win_when_a_team_dies_and_other_team_is_empty() [2/2]

bool GameModeTest::test_round_games_round_ends_without_win_when_a_team_dies_and_other_team_is_empty ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 4500 of file GameModeTest.h.

◆ test_round_games_round_ends_without_win_when_first_player_joins_a_team() [1/2]

bool GameModeTest::test_round_games_round_ends_without_win_when_first_player_joins_a_team ( )
inlineprivate

Definition at line 4758 of file GameModeTest.h.

◆ test_round_games_round_ends_without_win_when_first_player_joins_a_team() [2/2]

bool GameModeTest::test_round_games_round_ends_without_win_when_first_player_joins_a_team ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 4672 of file GameModeTest.h.

◆ test_round_games_round_ends_without_win_when_second_player_joins_the_other_team() [1/2]

bool GameModeTest::test_round_games_round_ends_without_win_when_second_player_joins_the_other_team ( )
inlineprivate

Definition at line 4886 of file GameModeTest.h.

◆ test_round_games_round_ends_without_win_when_second_player_joins_the_other_team() [2/2]

bool GameModeTest::test_round_games_round_ends_without_win_when_second_player_joins_the_other_team ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 4770 of file GameModeTest.h.

◆ test_round_games_round_is_won_when_a_team_dies_and_other_team_is_not_empty() [1/2]

bool GameModeTest::test_round_games_round_is_won_when_a_team_dies_and_other_team_is_not_empty ( )
inlineprivate

Definition at line 4355 of file GameModeTest.h.

◆ test_round_games_round_is_won_when_a_team_dies_and_other_team_is_not_empty() [2/2]

bool GameModeTest::test_round_games_round_is_won_when_a_team_dies_and_other_team_is_not_empty ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 4207 of file GameModeTest.h.

◆ test_round_games_transition_to_play_state_after_n_seconds() [1/2]

bool GameModeTest::test_round_games_transition_to_play_state_after_n_seconds ( )
inlineprivate

Definition at line 4195 of file GameModeTest.h.

◆ test_round_games_transition_to_play_state_after_n_seconds() [2/2]

bool GameModeTest::test_round_games_transition_to_play_state_after_n_seconds ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 4143 of file GameModeTest.h.

◆ test_round_games_winning_cond_time_and_round_win_limit() [1/2]

bool GameModeTest::test_round_games_winning_cond_time_and_round_win_limit ( )
inlineprivate

Definition at line 3923 of file GameModeTest.h.

◆ test_round_games_winning_cond_time_and_round_win_limit() [2/2]

bool GameModeTest::test_round_games_winning_cond_time_and_round_win_limit ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 3741 of file GameModeTest.h.

◆ test_round_win_limit_get_set() [1/2]

bool GameModeTest::test_round_win_limit_get_set ( )
inlineprivate

Definition at line 969 of file GameModeTest.h.

◆ test_round_win_limit_get_set() [2/2]

bool GameModeTest::test_round_win_limit_get_set ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 934 of file GameModeTest.h.

◆ test_team_deathmatch_get_team_color()

bool GameModeTest::test_team_deathmatch_get_team_color ( )
inlineprivate

Definition at line 3295 of file GameModeTest.h.

◆ test_team_games_do_not_allow_any_team_id() [1/2]

bool GameModeTest::test_team_games_do_not_allow_any_team_id ( )
inlineprivate

Definition at line 3575 of file GameModeTest.h.

◆ test_team_games_do_not_allow_any_team_id() [2/2]

bool GameModeTest::test_team_games_do_not_allow_any_team_id ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 3511 of file GameModeTest.h.

◆ test_team_games_do_not_count_frags_with_zero_team_id_or_in_spectator_mode() [1/2]

bool GameModeTest::test_team_games_do_not_count_frags_with_zero_team_id_or_in_spectator_mode ( )
inlineprivate

Definition at line 3495 of file GameModeTest.h.

◆ test_team_games_do_not_count_frags_with_zero_team_id_or_in_spectator_mode() [2/2]

bool GameModeTest::test_team_games_do_not_count_frags_with_zero_team_id_or_in_spectator_mode ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 3309 of file GameModeTest.h.

◆ test_team_games_get_alive_team_players_count() [1/2]

bool GameModeTest::test_team_games_get_alive_team_players_count ( )
inlineprivate

Definition at line 3726 of file GameModeTest.h.

◆ test_team_games_get_alive_team_players_count() [2/2]

bool GameModeTest::test_team_games_get_alive_team_players_count ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 3651 of file GameModeTest.h.

◆ test_team_games_is_player_allowed_for_gameplay() [1/2]

bool GameModeTest::test_team_games_is_player_allowed_for_gameplay ( )
inlineprivate

Definition at line 3636 of file GameModeTest.h.

◆ test_team_games_is_player_allowed_for_gameplay() [2/2]

bool GameModeTest::test_team_games_is_player_allowed_for_gameplay ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 3590 of file GameModeTest.h.

◆ test_teamroundgame_fetch_config() [1/2]

bool GameModeTest::test_teamroundgame_fetch_config ( )
inlineprivate

Definition at line 1071 of file GameModeTest.h.

◆ test_teamroundgame_fetch_config() [2/2]

bool GameModeTest::test_teamroundgame_fetch_config ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 1031 of file GameModeTest.h.

◆ test_time_limit_client_update_time_remaining_secs()

bool GameModeTest::test_time_limit_client_update_time_remaining_secs ( )
inlineprivate

Definition at line 777 of file GameModeTest.h.

◆ test_time_limit_get_set_and_remaining_time_get()

bool GameModeTest::test_time_limit_get_set_and_remaining_time_get ( )
inlineprivate

Definition at line 744 of file GameModeTest.h.

◆ test_update_player() [1/2]

bool GameModeTest::test_update_player ( )
inlineprivate

Definition at line 1803 of file GameModeTest.h.

◆ test_update_player() [2/2]

bool GameModeTest::test_update_player ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 1623 of file GameModeTest.h.

◆ test_update_player_non_existing_fails() [1/2]

bool GameModeTest::test_update_player_non_existing_fails ( )
inlineprivate

Definition at line 1887 of file GameModeTest.h.

◆ test_update_player_non_existing_fails() [2/2]

bool GameModeTest::test_update_player_non_existing_fails ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 1813 of file GameModeTest.h.

◆ test_winning_cond_defaults_to_false() [1/2]

bool GameModeTest::test_winning_cond_defaults_to_false ( )
inlineprivate

Definition at line 2802 of file GameModeTest.h.

◆ test_winning_cond_defaults_to_false() [2/2]

bool GameModeTest::test_winning_cond_defaults_to_false ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 2785 of file GameModeTest.h.

◆ test_winning_cond_frag_limit() [1/2]

bool GameModeTest::test_winning_cond_frag_limit ( )
inlineprivate

Definition at line 2967 of file GameModeTest.h.

◆ test_winning_cond_frag_limit() [2/2]

bool GameModeTest::test_winning_cond_frag_limit ( const proofps_dd::GameModeType & gamemode,
bool playersSpectatorMode )
inlineprivate

Definition at line 2817 of file GameModeTest.h.

◆ test_winning_cond_time_and_frag_limit() [1/2]

bool GameModeTest::test_winning_cond_time_and_frag_limit ( )
inlineprivate

Definition at line 3239 of file GameModeTest.h.

◆ test_winning_cond_time_and_frag_limit() [2/2]

bool GameModeTest::test_winning_cond_time_and_frag_limit ( const proofps_dd::GameModeType & gamemode)
inlineprivate

Definition at line 3002 of file GameModeTest.h.

◆ test_winning_cond_time_limit()

bool GameModeTest::test_winning_cond_time_limit ( )
inlineprivate

Definition at line 804 of file GameModeTest.h.

◆ testInitGamemode()

bool GameModeTest::testInitGamemode ( const proofps_dd::GameModeType & gamemode)
inlineprotected

Definition at line 236 of file GameModeTest.h.

Member Data Documentation

◆ dm

proofps_dd::DeathMatchMode* GameModeTest::dm
private

Definition at line 278 of file GameModeTest.h.

◆ gm

proofps_dd::GameMode* GameModeTest::gm
private

Definition at line 277 of file GameModeTest.h.

◆ m_ammoChangeEvents

proofps_dd::EventLister GameModeTest::m_ammoChangeEvents
private

Definition at line 286 of file GameModeTest.h.

◆ m_audio

pge_audio::PgeAudio GameModeTest::m_audio
private

Definition at line 281 of file GameModeTest.h.

◆ m_bullets

PgeObjectPool<PooledBullet> GameModeTest::m_bullets
private

Definition at line 283 of file GameModeTest.h.

◆ m_cfgProfiles

PGEcfgProfiles& GameModeTest::m_cfgProfiles
private

Definition at line 282 of file GameModeTest.h.

◆ m_engine

PR00FsUltimateRenderingEngine* GameModeTest::m_engine
private

Definition at line 287 of file GameModeTest.h.

◆ m_inventoryChangeEvents

proofps_dd::EventLister GameModeTest::m_inventoryChangeEvents
private

Definition at line 285 of file GameModeTest.h.

◆ m_itemPickupEvents

proofps_dd::EventLister GameModeTest::m_itemPickupEvents
private

Definition at line 284 of file GameModeTest.h.

◆ m_mapPlayers

std::map<pge_network::PgeNetworkConnectionHandle, proofps_dd::Player> GameModeTest::m_mapPlayers
private

Definition at line 276 of file GameModeTest.h.

◆ m_network

pge_network::PgeNetworkStub GameModeTest::m_network
private

Definition at line 288 of file GameModeTest.h.

◆ tdm

proofps_dd::TeamDeathMatchMode* GameModeTest::tdm
private

Definition at line 279 of file GameModeTest.h.

◆ trg

proofps_dd::TeamRoundGameMode* GameModeTest::trg
private

Definition at line 280 of file GameModeTest.h.


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