Eile Mit Weile
Loading...
Searching...
No Matches
ConnectionPanel Class Reference

Panel for entering connection information. More...

#include <ConnectionPanel.hpp>

Inheritance diagram for ConnectionPanel:

Public Member Functions

 ConnectionPanel (wxWindow *parent)
 
wxString GetServerAddress ()
 
wxString GetServerPort ()
 
wxString GetPlayerName ()
 

Private Attributes

InputField_server_address_field
 
InputField_server_port_field
 
InputField_player_name_field
 

Detailed Description

Panel for entering connection information.

This class is derived from wxPanel, which is wxWidgets' panel class. It is responsible for displaying the connection information input fields and returning the entered information.

Constructor & Destructor Documentation

◆ ConnectionPanel()

ConnectionPanel::ConnectionPanel ( wxWindow parent)

Initializes the ConnectionPanel with the given parent window (GameWindow).

Member Function Documentation

◆ GetPlayerName()

wxString ConnectionPanel::GetPlayerName ( )

Returns the entered player name.

◆ GetServerAddress()

wxString ConnectionPanel::GetServerAddress ( )

Returns the entered server address.

◆ GetServerPort()

wxString ConnectionPanel::GetServerPort ( )

Returns the entered server port.

Member Data Documentation

◆ _player_name_field

InputField* ConnectionPanel::_player_name_field
private

The input field for the player name.

◆ _server_address_field

InputField* ConnectionPanel::_server_address_field
private

The input field for the server address.

◆ _server_port_field

InputField* ConnectionPanel::_server_port_field
private

The input field for the server port.


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