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

Detailed Description

Definition at line 24 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
 
PlayerTestoperator= (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_is_visible_checks_weapon_too ()
 
bool test_update_audio_visuals ()
 
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_move_time_died_earlier ()
 
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_toggle_has_antigravityactive ()
 
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_non_inventory_item_server_instance ()
 
bool test_handle_take_inventory_item_server_instance ()
 
bool test_handle_take_non_inventory_item_client_instance ()
 
bool test_handle_take_inventory_item_client_instance ()
 
bool test_handle_take_weapon_item ()
 
bool test_handle_toggle_spectator_mode_server ()
 
bool test_handle_toggle_spectator_mode_client ()
 
bool test_handle_jumppad_activated_server ()
 
bool test_handle_jumppad_activated_client ()
 
bool test_handle_team_id_changed ()
 

Private Attributes

pge_audio::PgeAudio m_audio
 
PGEcfgProfiles & m_cfgProfiles
 
PR00FsUltimateRenderingEngine * m_engine
 
PgeObjectPool< PooledBullet > m_bullets
 
proofps_dd::EventLister m_itemPickupEvents
 
proofps_dd::EventLister m_inventoryChangeEvents
 
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 167 of file PlayerTest.h.

Constructor & Destructor Documentation

◆ PlayerTest() [1/3]

PlayerTest::PlayerTest ( PGEcfgProfiles & cfgProfiles)
inline

Definition at line 29 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 151 of file PlayerTest.h.

◆ initialize()

virtual void PlayerTest::initialize ( )
inlineoverrideprotectedvirtual

Definition at line 47 of file PlayerTest.h.

◆ loadWeaponsForPlayer()

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

Definition at line 184 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 121 of file PlayerTest.h.

◆ tearDown()

virtual void PlayerTest::tearDown ( )
inlineoverrideprotectedvirtual

Definition at line 145 of file PlayerTest.h.

◆ test_attack()

bool PlayerTest::test_attack ( )
inlineprivate

Definition at line 2271 of file PlayerTest.h.

◆ test_can_take_item_health()

bool PlayerTest::test_can_take_item_health ( )
inlineprivate

Definition at line 2339 of file PlayerTest.h.

◆ test_can_take_item_weapon()

bool PlayerTest::test_can_take_item_weapon ( )
inlineprivate

Definition at line 2356 of file PlayerTest.h.

◆ test_client_do_crouch()

bool PlayerTest::test_client_do_crouch ( )
inlineprivate

Definition at line 2100 of file PlayerTest.h.

◆ test_client_do_standup()

bool PlayerTest::test_client_do_standup ( )
inlineprivate

Definition at line 2175 of file PlayerTest.h.

◆ test_die_client()

bool PlayerTest::test_die_client ( )
inlineprivate

Definition at line 1048 of file PlayerTest.h.

◆ test_die_server()

bool PlayerTest::test_die_server ( )
inlineprivate

Definition at line 984 of file PlayerTest.h.

◆ test_dirtiness_one_by_one()

bool PlayerTest::test_dirtiness_one_by_one ( )
inlineprivate

Definition at line 608 of file PlayerTest.h.

◆ test_do_damage()

bool PlayerTest::test_do_damage ( )
inlineprivate

Definition at line 900 of file PlayerTest.h.

◆ test_gen_unique_user_name()

bool PlayerTest::test_gen_unique_user_name ( )
inlineprivate

Definition at line 211 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 2114 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 2503 of file PlayerTest.h.

◆ test_gravity()

bool PlayerTest::test_gravity ( )
inlineprivate

Definition at line 1340 of file PlayerTest.h.

◆ test_handle_falling_from_high_client_instance()

bool PlayerTest::test_handle_falling_from_high_client_instance ( )
inlineprivate

Definition at line 2602 of file PlayerTest.h.

◆ test_handle_falling_from_high_server_instance()

bool PlayerTest::test_handle_falling_from_high_server_instance ( )
inlineprivate

Definition at line 2531 of file PlayerTest.h.

◆ test_handle_jumppad_activated_client()

bool PlayerTest::test_handle_jumppad_activated_client ( )
inlineprivate

Definition at line 3071 of file PlayerTest.h.

◆ test_handle_jumppad_activated_server()

bool PlayerTest::test_handle_jumppad_activated_server ( )
inlineprivate

Definition at line 3022 of file PlayerTest.h.

◆ test_handle_landed_client_instance()

bool PlayerTest::test_handle_landed_client_instance ( )
inlineprivate

Definition at line 2670 of file PlayerTest.h.

◆ test_handle_landed_server_instance()

bool PlayerTest::test_handle_landed_server_instance ( )
inlineprivate

Definition at line 2624 of file PlayerTest.h.

◆ test_handle_take_inventory_item_client_instance()

bool PlayerTest::test_handle_take_inventory_item_client_instance ( )
inlineprivate

Definition at line 2825 of file PlayerTest.h.

◆ test_handle_take_inventory_item_server_instance()

bool PlayerTest::test_handle_take_inventory_item_server_instance ( )
inlineprivate

Definition at line 2744 of file PlayerTest.h.

◆ test_handle_take_non_inventory_item_client_instance()

bool PlayerTest::test_handle_take_non_inventory_item_client_instance ( )
inlineprivate

Definition at line 2797 of file PlayerTest.h.

◆ test_handle_take_non_inventory_item_server_instance()

bool PlayerTest::test_handle_take_non_inventory_item_server_instance ( )
inlineprivate

Definition at line 2693 of file PlayerTest.h.

◆ test_handle_take_weapon_item()

bool PlayerTest::test_handle_take_weapon_item ( )
inlineprivate

Definition at line 2853 of file PlayerTest.h.

◆ test_handle_team_id_changed()

bool PlayerTest::test_handle_team_id_changed ( )
inlineprivate

Definition at line 3095 of file PlayerTest.h.

◆ test_handle_toggle_spectator_mode_client()

bool PlayerTest::test_handle_toggle_spectator_mode_client ( )
inlineprivate

Definition at line 2967 of file PlayerTest.h.

◆ test_handle_toggle_spectator_mode_server()

bool PlayerTest::test_handle_toggle_spectator_mode_server ( )
inlineprivate

Definition at line 2878 of file PlayerTest.h.

◆ test_hide()

bool PlayerTest::test_hide ( )
inlineprivate

Definition at line 488 of file PlayerTest.h.

◆ test_initial_values()

bool PlayerTest::test_initial_values ( )
inlineprivate

Definition at line 318 of file PlayerTest.h.

◆ test_is_in_air()

bool PlayerTest::test_is_in_air ( )
inlineprivate

Definition at line 1413 of file PlayerTest.h.

◆ test_is_moving()

bool PlayerTest::test_is_moving ( )
inlineprivate

Definition at line 2191 of file PlayerTest.h.

◆ test_is_visible_checks_weapon_too()

bool PlayerTest::test_is_visible_checks_weapon_too ( )
inlineprivate

Definition at line 542 of file PlayerTest.h.

◆ test_jump()

bool PlayerTest::test_jump ( )
inlineprivate

Definition at line 1192 of file PlayerTest.h.

◆ test_move_time_died_earlier()

bool PlayerTest::test_move_time_died_earlier ( )
inlineprivate

Definition at line 1091 of file PlayerTest.h.

◆ test_respawn()

bool PlayerTest::test_respawn ( )
inlineprivate

Definition at line 1128 of file PlayerTest.h.

◆ test_server_do_crouch()

bool PlayerTest::test_server_do_crouch ( )
inlineprivate

Definition at line 2070 of file PlayerTest.h.

◆ test_server_do_standup()

bool PlayerTest::test_server_do_standup ( )
inlineprivate

Definition at line 2138 of file PlayerTest.h.

◆ test_set_armor_and_update_old_armor()

bool PlayerTest::test_set_armor_and_update_old_armor ( )
inlineprivate

Definition at line 845 of file PlayerTest.h.

◆ test_set_booted_up()

bool PlayerTest::test_set_booted_up ( )
inlineprivate

Definition at line 436 of file PlayerTest.h.

◆ test_set_can_fall()

bool PlayerTest::test_set_can_fall ( )
inlineprivate

Definition at line 1327 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 452 of file PlayerTest.h.

◆ test_set_has_just_started_falling()

bool PlayerTest::test_set_has_just_started_falling ( )
inlineprivate

Definition at line 1367 of file PlayerTest.h.

◆ test_set_health_and_update_old_health()

bool PlayerTest::test_set_health_and_update_old_health ( )
inlineprivate

Definition at line 870 of file PlayerTest.h.

◆ test_set_invulnerability()

bool PlayerTest::test_set_invulnerability ( )
inlineprivate

Definition at line 1173 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 798 of file PlayerTest.h.

◆ test_set_name()

bool PlayerTest::test_set_name ( )
inlineprivate

Definition at line 424 of file PlayerTest.h.

◆ test_set_run()

bool PlayerTest::test_set_run ( )
inlineprivate

Definition at line 1994 of file PlayerTest.h.

◆ test_set_somersault_client()

bool PlayerTest::test_set_somersault_client ( )
inlineprivate

Definition at line 1980 of file PlayerTest.h.

◆ test_set_strafe()

bool PlayerTest::test_set_strafe ( )
inlineprivate

Definition at line 2028 of file PlayerTest.h.

◆ test_set_visibility_state()

bool PlayerTest::test_set_visibility_state ( )
inlineprivate

Definition at line 511 of file PlayerTest.h.

◆ test_show()

bool PlayerTest::test_show ( )
inlineprivate

Definition at line 465 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 1448 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 1598 of file PlayerTest.h.

◆ test_start_somersault_server_on_ground()

bool PlayerTest::test_start_somersault_server_on_ground ( )
inlineprivate

Definition at line 1770 of file PlayerTest.h.

◆ test_step_somersault_angle_server()

bool PlayerTest::test_step_somersault_angle_server ( )
inlineprivate

Definition at line 1923 of file PlayerTest.h.

◆ test_take_item_health()

bool PlayerTest::test_take_item_health ( )
inlineprivate

Definition at line 2389 of file PlayerTest.h.

◆ test_take_item_weapon()

bool PlayerTest::test_take_item_weapon ( )
inlineprivate

Definition at line 2408 of file PlayerTest.h.

◆ test_toggle_has_antigravityactive()

bool PlayerTest::test_toggle_has_antigravityactive ( )
inlineprivate

Definition at line 2007 of file PlayerTest.h.

◆ test_update_audio_visuals()

bool PlayerTest::test_update_audio_visuals ( )
inlineprivate

Definition at line 578 of file PlayerTest.h.

◆ test_update_old_frags_and_deaths()

bool PlayerTest::test_update_old_frags_and_deaths ( )
inlineprivate

Definition at line 774 of file PlayerTest.h.

◆ test_update_old_pos()

bool PlayerTest::test_update_old_pos ( )
inlineprivate

Definition at line 811 of file PlayerTest.h.

Member Data Documentation

◆ m_ammoChangeEvents

proofps_dd::EventLister PlayerTest::m_ammoChangeEvents
private

Definition at line 179 of file PlayerTest.h.

◆ m_audio

pge_audio::PgeAudio PlayerTest::m_audio
private

Definition at line 173 of file PlayerTest.h.

◆ m_bullets

PgeObjectPool<PooledBullet> PlayerTest::m_bullets
private

Definition at line 176 of file PlayerTest.h.

◆ m_cfgProfiles

PGEcfgProfiles& PlayerTest::m_cfgProfiles
private

Definition at line 174 of file PlayerTest.h.

◆ m_engine

PR00FsUltimateRenderingEngine* PlayerTest::m_engine
private

Definition at line 175 of file PlayerTest.h.

◆ m_inventoryChangeEvents

proofps_dd::EventLister PlayerTest::m_inventoryChangeEvents
private

Definition at line 178 of file PlayerTest.h.

◆ m_itemPickupEvents

proofps_dd::EventLister PlayerTest::m_itemPickupEvents
private

Definition at line 177 of file PlayerTest.h.

◆ m_network

pge_network::PgeNetworkStub PlayerTest::m_network
private

Definition at line 180 of file PlayerTest.h.


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