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

Detailed Description

Definition at line 23 of file PlayerTest.h.

#include <PlayerTest.h>

+ Inheritance diagram for PlayerTest:

Public Member Functions

 PlayerTest (PGEcfgProfiles &cfgProfiles)
 
 PlayerTest (const PlayerTest &)=delete
 
PlayerTestoperator= (const PlayerTest &)=delete
 
 PlayerTest (PlayerTest &&)=delete
 
PlayerTest && operator= (PlayerTest &&)=delete
 

Protected Member Functions

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

Private Types

enum class  SetDfltWpn { Yes , No }
 

Private Member Functions

bool loadWeaponsForPlayer (proofps_dd::Player &player, const SetDfltWpn &setDefWpn)
 
bool test_gen_unique_user_name ()
 
bool test_initial_values ()
 
bool test_set_name ()
 
bool test_set_booted_up ()
 
bool test_set_expecting_after_boot_up_delayed_update ()
 
bool test_show ()
 
bool test_hide ()
 
bool test_set_visibility_state ()
 
bool test_dirtiness_one_by_one ()
 
bool test_update_old_frags_and_deaths ()
 
bool test_set_just_created_and_expecting_start_pos ()
 
bool test_update_old_pos ()
 
bool test_set_armor_and_update_old_armor ()
 
bool test_set_health_and_update_old_health ()
 
bool test_do_damage ()
 
bool test_die_server ()
 
bool test_die_client ()
 
bool test_respawn ()
 
bool test_set_invulnerability ()
 
bool test_jump ()
 
bool test_set_can_fall ()
 
bool test_gravity ()
 
bool test_set_has_just_started_falling ()
 
bool test_is_in_air ()
 
bool test_start_somersault_server_mid_air_when_auto_crouch_is_disabled ()
 
bool test_start_somersault_server_mid_air_when_auto_crouch_is_enabled ()
 
bool test_start_somersault_server_on_ground ()
 
bool test_step_somersault_angle_server ()
 
bool test_set_somersault_client ()
 
bool test_set_run ()
 
bool test_set_strafe ()
 
bool test_server_do_crouch ()
 
bool test_client_do_crouch ()
 
bool test_get_proposed_new_pos_y_for_standup ()
 
bool test_server_do_standup ()
 
bool test_client_do_standup ()
 
bool test_is_moving ()
 
bool test_attack ()
 
bool test_can_take_item_health ()
 
bool test_can_take_item_weapon ()
 
bool test_take_item_health ()
 
bool test_take_item_weapon ()
 
bool test_get_weapon_instance_by_map_item_type ()
 
bool test_handle_falling_from_high_server_instance ()
 
bool test_handle_falling_from_high_client_instance ()
 
bool test_handle_landed_server_instance ()
 
bool test_handle_landed_client_instance ()
 
bool test_handle_take_item_server_instance ()
 
bool test_handle_take_item_client_instance ()
 
bool test_handle_take_weapon_item ()
 
bool test_handle_jumppad_activated_server ()
 
bool test_handle_jumppad_activated_client ()
 

Private Attributes

pge_audio::PgeAudio m_audio
 
PGEcfgProfiles & m_cfgProfiles
 
PR00FsUltimateRenderingEngine * m_engine
 
std::list< Bullet > m_bullets
 
proofps_dd::EventLister m_itemPickupEvents
 
proofps_dd::EventLister m_ammoChangeEvents
 
pge_network::PgeNetworkStub m_network
 

Member Enumeration Documentation

◆ SetDfltWpn

enum class PlayerTest::SetDfltWpn
strongprivate
Enumerator
Yes 
No 

Definition at line 147 of file PlayerTest.h.

Constructor & Destructor Documentation

◆ PlayerTest() [1/3]

PlayerTest::PlayerTest ( PGEcfgProfiles & cfgProfiles)
inline

Definition at line 28 of file PlayerTest.h.

◆ PlayerTest() [2/3]

PlayerTest::PlayerTest ( const PlayerTest & )
delete

◆ PlayerTest() [3/3]

PlayerTest::PlayerTest ( PlayerTest && )
delete

Member Function Documentation

◆ Finalize()

virtual void PlayerTest::Finalize ( )
inlineoverrideprotectedvirtual

Definition at line 132 of file PlayerTest.h.

◆ Initialize()

virtual void PlayerTest::Initialize ( )
inlineoverrideprotectedvirtual

Definition at line 45 of file PlayerTest.h.

◆ loadWeaponsForPlayer()

bool PlayerTest::loadWeaponsForPlayer ( proofps_dd::Player & player,
const SetDfltWpn & setDefWpn )
inlineprivate

Definition at line 163 of file PlayerTest.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

PlayerTest && PlayerTest::operator= ( PlayerTest && )
delete

◆ setUp()

virtual bool PlayerTest::setUp ( )
inlineoverrideprotectedvirtual

Definition at line 110 of file PlayerTest.h.

◆ TearDown()

virtual void PlayerTest::TearDown ( )
inlineoverrideprotectedvirtual

Definition at line 126 of file PlayerTest.h.

◆ test_attack()

bool PlayerTest::test_attack ( )
inlineprivate

Definition at line 1965 of file PlayerTest.h.

◆ test_can_take_item_health()

bool PlayerTest::test_can_take_item_health ( )
inlineprivate

Definition at line 2018 of file PlayerTest.h.

◆ test_can_take_item_weapon()

bool PlayerTest::test_can_take_item_weapon ( )
inlineprivate

Definition at line 2032 of file PlayerTest.h.

◆ test_client_do_crouch()

bool PlayerTest::test_client_do_crouch ( )
inlineprivate

Definition at line 1794 of file PlayerTest.h.

◆ test_client_do_standup()

bool PlayerTest::test_client_do_standup ( )
inlineprivate

Definition at line 1869 of file PlayerTest.h.

◆ test_die_client()

bool PlayerTest::test_die_client ( )
inlineprivate

Definition at line 846 of file PlayerTest.h.

◆ test_die_server()

bool PlayerTest::test_die_server ( )
inlineprivate

Definition at line 784 of file PlayerTest.h.

◆ test_dirtiness_one_by_one()

bool PlayerTest::test_dirtiness_one_by_one ( )
inlineprivate

Definition at line 480 of file PlayerTest.h.

◆ test_do_damage()

bool PlayerTest::test_do_damage ( )
inlineprivate

Definition at line 703 of file PlayerTest.h.

◆ test_gen_unique_user_name()

bool PlayerTest::test_gen_unique_user_name ( )
inlineprivate

Definition at line 184 of file PlayerTest.h.

◆ test_get_proposed_new_pos_y_for_standup()

bool PlayerTest::test_get_proposed_new_pos_y_for_standup ( )
inlineprivate

Definition at line 1808 of file PlayerTest.h.

◆ test_get_weapon_instance_by_map_item_type()

bool PlayerTest::test_get_weapon_instance_by_map_item_type ( )
inlineprivate

Definition at line 2165 of file PlayerTest.h.

◆ test_gravity()

bool PlayerTest::test_gravity ( )
inlineprivate

Definition at line 1083 of file PlayerTest.h.

◆ test_handle_falling_from_high_client_instance()

bool PlayerTest::test_handle_falling_from_high_client_instance ( )
inlineprivate

Definition at line 2260 of file PlayerTest.h.

◆ test_handle_falling_from_high_server_instance()

bool PlayerTest::test_handle_falling_from_high_server_instance ( )
inlineprivate

Definition at line 2189 of file PlayerTest.h.

◆ test_handle_jumppad_activated_client()

bool PlayerTest::test_handle_jumppad_activated_client ( )
inlineprivate

Definition at line 2484 of file PlayerTest.h.

◆ test_handle_jumppad_activated_server()

bool PlayerTest::test_handle_jumppad_activated_server ( )
inlineprivate

Definition at line 2439 of file PlayerTest.h.

◆ test_handle_landed_client_instance()

bool PlayerTest::test_handle_landed_client_instance ( )
inlineprivate

Definition at line 2327 of file PlayerTest.h.

◆ test_handle_landed_server_instance()

bool PlayerTest::test_handle_landed_server_instance ( )
inlineprivate

Definition at line 2282 of file PlayerTest.h.

◆ test_handle_take_item_client_instance()

bool PlayerTest::test_handle_take_item_client_instance ( )
inlineprivate

Definition at line 2394 of file PlayerTest.h.

◆ test_handle_take_item_server_instance()

bool PlayerTest::test_handle_take_item_server_instance ( )
inlineprivate

Definition at line 2349 of file PlayerTest.h.

◆ test_handle_take_weapon_item()

bool PlayerTest::test_handle_take_weapon_item ( )
inlineprivate

Definition at line 2416 of file PlayerTest.h.

◆ test_hide()

bool PlayerTest::test_hide ( )
inlineprivate

Definition at line 431 of file PlayerTest.h.

◆ test_initial_values()

bool PlayerTest::test_initial_values ( )
inlineprivate

Definition at line 291 of file PlayerTest.h.

◆ test_is_in_air()

bool PlayerTest::test_is_in_air ( )
inlineprivate

Definition at line 1136 of file PlayerTest.h.

◆ test_is_moving()

bool PlayerTest::test_is_moving ( )
inlineprivate

Definition at line 1885 of file PlayerTest.h.

◆ test_jump()

bool PlayerTest::test_jump ( )
inlineprivate

Definition at line 946 of file PlayerTest.h.

◆ test_respawn()

bool PlayerTest::test_respawn ( )
inlineprivate

Definition at line 886 of file PlayerTest.h.

◆ test_server_do_crouch()

bool PlayerTest::test_server_do_crouch ( )
inlineprivate

Definition at line 1764 of file PlayerTest.h.

◆ test_server_do_standup()

bool PlayerTest::test_server_do_standup ( )
inlineprivate

Definition at line 1832 of file PlayerTest.h.

◆ test_set_armor_and_update_old_armor()

bool PlayerTest::test_set_armor_and_update_old_armor ( )
inlineprivate

Definition at line 654 of file PlayerTest.h.

◆ test_set_booted_up()

bool PlayerTest::test_set_booted_up ( )
inlineprivate

Definition at line 381 of file PlayerTest.h.

◆ test_set_can_fall()

bool PlayerTest::test_set_can_fall ( )
inlineprivate

Definition at line 1070 of file PlayerTest.h.

◆ test_set_expecting_after_boot_up_delayed_update()

bool PlayerTest::test_set_expecting_after_boot_up_delayed_update ( )
inlineprivate

Definition at line 396 of file PlayerTest.h.

◆ test_set_has_just_started_falling()

bool PlayerTest::test_set_has_just_started_falling ( )
inlineprivate

Definition at line 1100 of file PlayerTest.h.

◆ test_set_health_and_update_old_health()

bool PlayerTest::test_set_health_and_update_old_health ( )
inlineprivate

Definition at line 679 of file PlayerTest.h.

◆ test_set_invulnerability()

bool PlayerTest::test_set_invulnerability ( )
inlineprivate

Definition at line 927 of file PlayerTest.h.

◆ test_set_just_created_and_expecting_start_pos()

bool PlayerTest::test_set_just_created_and_expecting_start_pos ( )
inlineprivate

Definition at line 607 of file PlayerTest.h.

◆ test_set_name()

bool PlayerTest::test_set_name ( )
inlineprivate

Definition at line 369 of file PlayerTest.h.

◆ test_set_run()

bool PlayerTest::test_set_run ( )
inlineprivate

Definition at line 1709 of file PlayerTest.h.

◆ test_set_somersault_client()

bool PlayerTest::test_set_somersault_client ( )
inlineprivate

Definition at line 1695 of file PlayerTest.h.

◆ test_set_strafe()

bool PlayerTest::test_set_strafe ( )
inlineprivate

Definition at line 1722 of file PlayerTest.h.

◆ test_set_visibility_state()

bool PlayerTest::test_set_visibility_state ( )
inlineprivate

Definition at line 452 of file PlayerTest.h.

◆ test_show()

bool PlayerTest::test_show ( )
inlineprivate

Definition at line 409 of file PlayerTest.h.

◆ test_start_somersault_server_mid_air_when_auto_crouch_is_disabled()

bool PlayerTest::test_start_somersault_server_mid_air_when_auto_crouch_is_disabled ( )
inlineprivate

Definition at line 1163 of file PlayerTest.h.

◆ test_start_somersault_server_mid_air_when_auto_crouch_is_enabled()

bool PlayerTest::test_start_somersault_server_mid_air_when_auto_crouch_is_enabled ( )
inlineprivate

Definition at line 1313 of file PlayerTest.h.

◆ test_start_somersault_server_on_ground()

bool PlayerTest::test_start_somersault_server_on_ground ( )
inlineprivate

Definition at line 1485 of file PlayerTest.h.

◆ test_step_somersault_angle_server()

bool PlayerTest::test_step_somersault_angle_server ( )
inlineprivate

Definition at line 1638 of file PlayerTest.h.

◆ test_take_item_health()

bool PlayerTest::test_take_item_health ( )
inlineprivate

Definition at line 2055 of file PlayerTest.h.

◆ test_take_item_weapon()

bool PlayerTest::test_take_item_weapon ( )
inlineprivate

Definition at line 2072 of file PlayerTest.h.

◆ test_update_old_frags_and_deaths()

bool PlayerTest::test_update_old_frags_and_deaths ( )
inlineprivate

Definition at line 583 of file PlayerTest.h.

◆ test_update_old_pos()

bool PlayerTest::test_update_old_pos ( )
inlineprivate

Definition at line 620 of file PlayerTest.h.

Member Data Documentation

◆ m_ammoChangeEvents

proofps_dd::EventLister PlayerTest::m_ammoChangeEvents
private

Definition at line 158 of file PlayerTest.h.

◆ m_audio

pge_audio::PgeAudio PlayerTest::m_audio
private

Definition at line 153 of file PlayerTest.h.

◆ m_bullets

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

Definition at line 156 of file PlayerTest.h.

◆ m_cfgProfiles

PGEcfgProfiles& PlayerTest::m_cfgProfiles
private

Definition at line 154 of file PlayerTest.h.

◆ m_engine

PR00FsUltimateRenderingEngine* PlayerTest::m_engine
private

Definition at line 155 of file PlayerTest.h.

◆ m_itemPickupEvents

proofps_dd::EventLister PlayerTest::m_itemPickupEvents
private

Definition at line 157 of file PlayerTest.h.

◆ m_network

pge_network::PgeNetworkStub PlayerTest::m_network
private

Definition at line 159 of file PlayerTest.h.


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