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

Detailed Description

Definition at line 26 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
 
GameModeTest && operator= (GameModeTest &&)=delete
 

Protected Member Functions

virtual void Initialize () override
 
virtual bool setUp () override
 
virtual void TearDown () override
 
virtual void Finalize () override
 
bool testInitDeathmatch ()
 

Private Member Functions

bool assertFragTableEquals (const std::vector< proofps_dd::FragTableRow > &expectedPlayers, const std::list< proofps_dd::FragTableRow > &fragTable, const std::string &sLogText="")
 
bool test_factory_creates_deathmatch_only ()
 
bool test_restart_updates_times ()
 
bool test_rename_player ()
 
bool test_deathmatch_time_limit_get_set_and_remaining_time_get ()
 
bool test_deathmatch_time_limit_client_update_time_remaining_secs ()
 
bool test_deathmatch_frag_limit_get_set ()
 
bool test_deathmatch_fetch_config ()
 
bool test_deathmatch_add_player_zero_values_maintains_adding_order ()
 
bool test_deathmatch_add_player_random_values ()
 
bool test_deathmatch_add_player_already_existing_fails ()
 
bool test_deathmatch_add_player_sends_winning_state_only_when_game_is_already_won ()
 
bool test_deathmatch_update_player ()
 
bool test_deathmatch_update_player_non_existing_fails ()
 
bool test_deathmatch_remove_player ()
 
bool test_deathmatch_restart ()
 
bool test_deathmatch_restart_without_removing_players ()
 
bool test_deathmatch_winning_cond_defaults_to_false ()
 
bool test_deathmatch_winning_cond_time_limit ()
 
bool test_deathmatch_winning_cond_frag_limit ()
 
bool test_deathmatch_winning_cond_time_and_frag_limit ()
 
bool test_deathmatch_receive_and_update_winning_conditions_client ()
 

Private Attributes

proofps_dd::GameModegm
 
proofps_dd::DeathMatchModedm
 
pge_audio::PgeAudio m_audio
 
PGEcfgProfiles & m_cfgProfiles
 
std::list< Bullet > m_bullets
 
proofps_dd::EventLister m_itemPickupEvents
 
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 31 of file GameModeTest.h.

◆ GameModeTest() [2/3]

GameModeTest::GameModeTest ( const GameModeTest & )
delete

◆ GameModeTest() [3/3]

GameModeTest::GameModeTest ( GameModeTest && )
delete

Member Function Documentation

◆ assertFragTableEquals()

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

Definition at line 151 of file GameModeTest.h.

◆ Finalize()

virtual void GameModeTest::Finalize ( )
inlineoverrideprotectedvirtual

Definition at line 112 of file GameModeTest.h.

◆ Initialize()

virtual void GameModeTest::Initialize ( )
inlineoverrideprotectedvirtual

Definition at line 51 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 86 of file GameModeTest.h.

◆ TearDown()

virtual void GameModeTest::TearDown ( )
inlineoverrideprotectedvirtual

Definition at line 101 of file GameModeTest.h.

◆ test_deathmatch_add_player_already_existing_fails()

bool GameModeTest::test_deathmatch_add_player_already_existing_fails ( )
inlineprivate

Definition at line 600 of file GameModeTest.h.

◆ test_deathmatch_add_player_random_values()

bool GameModeTest::test_deathmatch_add_player_random_values ( )
inlineprivate

Definition at line 525 of file GameModeTest.h.

◆ test_deathmatch_add_player_sends_winning_state_only_when_game_is_already_won()

bool GameModeTest::test_deathmatch_add_player_sends_winning_state_only_when_game_is_already_won ( )
inlineprivate

Definition at line 680 of file GameModeTest.h.

◆ test_deathmatch_add_player_zero_values_maintains_adding_order()

bool GameModeTest::test_deathmatch_add_player_zero_values_maintains_adding_order ( )
inlineprivate

Definition at line 450 of file GameModeTest.h.

◆ test_deathmatch_fetch_config()

bool GameModeTest::test_deathmatch_fetch_config ( )
inlineprivate

Definition at line 409 of file GameModeTest.h.

◆ test_deathmatch_frag_limit_get_set()

bool GameModeTest::test_deathmatch_frag_limit_get_set ( )
inlineprivate

Definition at line 378 of file GameModeTest.h.

◆ test_deathmatch_receive_and_update_winning_conditions_client()

bool GameModeTest::test_deathmatch_receive_and_update_winning_conditions_client ( )
inlineprivate

Definition at line 1504 of file GameModeTest.h.

◆ test_deathmatch_remove_player()

bool GameModeTest::test_deathmatch_remove_player ( )
inlineprivate

Definition at line 935 of file GameModeTest.h.

◆ test_deathmatch_restart()

bool GameModeTest::test_deathmatch_restart ( )
inlineprivate

Definition at line 1004 of file GameModeTest.h.

◆ test_deathmatch_restart_without_removing_players()

bool GameModeTest::test_deathmatch_restart_without_removing_players ( )
inlineprivate

Definition at line 1114 of file GameModeTest.h.

◆ test_deathmatch_time_limit_client_update_time_remaining_secs()

bool GameModeTest::test_deathmatch_time_limit_client_update_time_remaining_secs ( )
inlineprivate

Definition at line 348 of file GameModeTest.h.

◆ test_deathmatch_time_limit_get_set_and_remaining_time_get()

bool GameModeTest::test_deathmatch_time_limit_get_set_and_remaining_time_get ( )
inlineprivate

Definition at line 312 of file GameModeTest.h.

◆ test_deathmatch_update_player()

bool GameModeTest::test_deathmatch_update_player ( )
inlineprivate

Definition at line 759 of file GameModeTest.h.

◆ test_deathmatch_update_player_non_existing_fails()

bool GameModeTest::test_deathmatch_update_player_non_existing_fails ( )
inlineprivate

Definition at line 870 of file GameModeTest.h.

◆ test_deathmatch_winning_cond_defaults_to_false()

bool GameModeTest::test_deathmatch_winning_cond_defaults_to_false ( )
inlineprivate

Definition at line 1230 of file GameModeTest.h.

◆ test_deathmatch_winning_cond_frag_limit()

bool GameModeTest::test_deathmatch_winning_cond_frag_limit ( )
inlineprivate

Definition at line 1305 of file GameModeTest.h.

◆ test_deathmatch_winning_cond_time_and_frag_limit()

bool GameModeTest::test_deathmatch_winning_cond_time_and_frag_limit ( )
inlineprivate

Definition at line 1380 of file GameModeTest.h.

◆ test_deathmatch_winning_cond_time_limit()

bool GameModeTest::test_deathmatch_winning_cond_time_limit ( )
inlineprivate

Definition at line 1247 of file GameModeTest.h.

◆ test_factory_creates_deathmatch_only()

bool GameModeTest::test_factory_creates_deathmatch_only ( )
inlineprivate

Definition at line 175 of file GameModeTest.h.

◆ test_rename_player()

bool GameModeTest::test_rename_player ( )
inlineprivate

Definition at line 224 of file GameModeTest.h.

◆ test_restart_updates_times()

bool GameModeTest::test_restart_updates_times ( )
inlineprivate

Definition at line 193 of file GameModeTest.h.

◆ testInitDeathmatch()

bool GameModeTest::testInitDeathmatch ( )
inlineprotected

Definition at line 125 of file GameModeTest.h.

Member Data Documentation

◆ dm

proofps_dd::DeathMatchMode* GameModeTest::dm
private

Definition at line 140 of file GameModeTest.h.

◆ gm

proofps_dd::GameMode* GameModeTest::gm
private

Definition at line 139 of file GameModeTest.h.

◆ m_ammoChangeEvents

proofps_dd::EventLister GameModeTest::m_ammoChangeEvents
private

Definition at line 145 of file GameModeTest.h.

◆ m_audio

pge_audio::PgeAudio GameModeTest::m_audio
private

Definition at line 141 of file GameModeTest.h.

◆ m_bullets

std::list<Bullet> GameModeTest::m_bullets
private

Definition at line 143 of file GameModeTest.h.

◆ m_cfgProfiles

PGEcfgProfiles& GameModeTest::m_cfgProfiles
private

Definition at line 142 of file GameModeTest.h.

◆ m_engine

PR00FsUltimateRenderingEngine* GameModeTest::m_engine
private

Definition at line 146 of file GameModeTest.h.

◆ m_itemPickupEvents

proofps_dd::EventLister GameModeTest::m_itemPickupEvents
private

Definition at line 144 of file GameModeTest.h.

◆ m_network

pge_network::PgeNetworkStub GameModeTest::m_network
private

Definition at line 147 of file GameModeTest.h.


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