Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
DisconnectMenu Class Reference

#include <DisconnectMenu.h>

Public Member Functions

 DisconnectMenu ()
 
virtual ~DisconnectMenu ()
 
void init ()
 
void attachDisconnectManager (DisconnectManager *disconnectManager)
 
void showScreen ()
 
void hideScreen ()
 
Bool isScreenVisible (void)
 
void showPlayerControls (Int slot)
 
void hidePlayerControls (Int slot)
 
void showPacketRouterTimeout ()
 
void hidePacketRouterTimeout ()
 
void setPlayerName (Int playerNum, UnicodeString name)
 
void setPlayerTimeoutTime (Int playerNum, time_t newTime)
 
void setPacketRouterTimeoutTime (time_t newTime)
 
void sendChat (UnicodeString text)
 
void showChat (UnicodeString text)
 
void quitGame ()
 
void removePlayer (Int slot, UnicodeString playerName)
 
void voteForPlayer (Int slot)
 
void updateVotes (Int slot, Int votes)
 

Protected Attributes

DisconnectManagerm_disconnectManager
 For retrieving status updates from the disconnect manager.
 
DisconnectMenuStateType m_menuState
 The current state of the menu screen.
 

Static Protected Attributes

static char * m_playerNameTextControlNames [MAX_SLOTS]
 names of the player name controls in the window.
 
static char * m_playerTimeoutTextControlNames [MAX_SLOTS]
 names of the timeout controls in the window.
 
static char * m_playerVoteButtonControlNames [MAX_SLOTS]
 names of the vote button controls in the window.
 
static char * m_playerVoteCountControlNames [MAX_SLOTS]
 names of the vote count static text controls in the window.
 
static char * m_packetRouterTimeoutControlName = "DisconnectScreen.wnd:StaticPacketRouterTimeout"
 name of the packet router timeout control window.
 
static char * m_packetRouterTimeoutLabelControlName = "DisconnectScreen.wnd:StaticPacketRouterTimeoutLabel"
 name of the packet router timeout label control window.
 
static char * m_textDisplayControlName = "DisconnectScreen.wnd:ListboxTextDisplay"
 name of the text display listbox control window.
 

Detailed Description

Definition at line 38 of file DisconnectMenu.h.

Constructor & Destructor Documentation

◆ DisconnectMenu()

DisconnectMenu::DisconnectMenu ( )

Definition at line 89 of file DisconnectMenu.cpp.

◆ ~DisconnectMenu()

DisconnectMenu::~DisconnectMenu ( )
virtual

Definition at line 93 of file DisconnectMenu.cpp.

Member Function Documentation

◆ attachDisconnectManager()

void DisconnectMenu::attachDisconnectManager ( DisconnectManager * disconnectManager)

Definition at line 102 of file DisconnectMenu.cpp.

◆ hidePacketRouterTimeout()

void DisconnectMenu::hidePacketRouterTimeout ( )

Definition at line 232 of file DisconnectMenu.cpp.

◆ hidePlayerControls()

void DisconnectMenu::hidePlayerControls ( Int slot)

Definition at line 188 of file DisconnectMenu.cpp.

◆ hideScreen()

void DisconnectMenu::hideScreen ( )

Definition at line 114 of file DisconnectMenu.cpp.

◆ init()

void DisconnectMenu::init ( )

Definition at line 96 of file DisconnectMenu.cpp.

◆ isScreenVisible()

Bool DisconnectMenu::isScreenVisible ( void )
inline

Definition at line 49 of file DisconnectMenu.h.

◆ quitGame()

void DisconnectMenu::quitGame ( )

Definition at line 276 of file DisconnectMenu.cpp.

◆ removePlayer()

void DisconnectMenu::removePlayer ( Int slot,
UnicodeString playerName )

Definition at line 280 of file DisconnectMenu.cpp.

◆ sendChat()

void DisconnectMenu::sendChat ( UnicodeString text)

Definition at line 263 of file DisconnectMenu.cpp.

◆ setPacketRouterTimeoutTime()

void DisconnectMenu::setPacketRouterTimeoutTime ( time_t newTime)

Definition at line 248 of file DisconnectMenu.cpp.

◆ setPlayerName()

void DisconnectMenu::setPlayerName ( Int playerNum,
UnicodeString name )

Definition at line 119 of file DisconnectMenu.cpp.

◆ setPlayerTimeoutTime()

void DisconnectMenu::setPlayerTimeoutTime ( Int playerNum,
time_t newTime )

Definition at line 146 of file DisconnectMenu.cpp.

◆ showChat()

void DisconnectMenu::showChat ( UnicodeString text)

Definition at line 267 of file DisconnectMenu.cpp.

◆ showPacketRouterTimeout()

void DisconnectMenu::showPacketRouterTimeout ( )

Definition at line 215 of file DisconnectMenu.cpp.

◆ showPlayerControls()

void DisconnectMenu::showPlayerControls ( Int slot)

Definition at line 161 of file DisconnectMenu.cpp.

◆ showScreen()

void DisconnectMenu::showScreen ( )

Definition at line 106 of file DisconnectMenu.cpp.

◆ updateVotes()

void DisconnectMenu::updateVotes ( Int slot,
Int votes )

Definition at line 301 of file DisconnectMenu.cpp.

◆ voteForPlayer()

void DisconnectMenu::voteForPlayer ( Int slot)

Definition at line 296 of file DisconnectMenu.cpp.

Member Data Documentation

◆ m_disconnectManager

DisconnectManager* DisconnectMenu::m_disconnectManager
protected

For retrieving status updates from the disconnect manager.

Definition at line 69 of file DisconnectMenu.h.

◆ m_menuState

DisconnectMenuStateType DisconnectMenu::m_menuState
protected

The current state of the menu screen.

Definition at line 70 of file DisconnectMenu.h.

◆ m_packetRouterTimeoutControlName

char * DisconnectMenu::m_packetRouterTimeoutControlName = "DisconnectScreen.wnd:StaticPacketRouterTimeout"
staticprotected

name of the packet router timeout control window.

Definition at line 76 of file DisconnectMenu.h.

◆ m_packetRouterTimeoutLabelControlName

char * DisconnectMenu::m_packetRouterTimeoutLabelControlName = "DisconnectScreen.wnd:StaticPacketRouterTimeoutLabel"
staticprotected

name of the packet router timeout label control window.

Definition at line 77 of file DisconnectMenu.h.

◆ m_playerNameTextControlNames

char * DisconnectMenu::m_playerNameTextControlNames
staticprotected
Initial value:
= {
"DisconnectScreen.wnd:StaticPlayer1Name",
"DisconnectScreen.wnd:StaticPlayer2Name",
"DisconnectScreen.wnd:StaticPlayer3Name",
"DisconnectScreen.wnd:StaticPlayer4Name",
"DisconnectScreen.wnd:StaticPlayer5Name",
"DisconnectScreen.wnd:StaticPlayer6Name",
"DisconnectScreen.wnd:StaticPlayer7Name",
}
#define NULL
Definition BaseType.h:92

names of the player name controls in the window.

Definition at line 37 of file DisconnectMenu.h.

◆ m_playerTimeoutTextControlNames

char * DisconnectMenu::m_playerTimeoutTextControlNames
staticprotected
Initial value:
= {
"DisconnectScreen.wnd:StaticPlayer1Timeout",
"DisconnectScreen.wnd:StaticPlayer2Timeout",
"DisconnectScreen.wnd:StaticPlayer3Timeout",
"DisconnectScreen.wnd:StaticPlayer4Timeout",
"DisconnectScreen.wnd:StaticPlayer5Timeout",
"DisconnectScreen.wnd:StaticPlayer6Timeout",
"DisconnectScreen.wnd:StaticPlayer7Timeout",
}

names of the timeout controls in the window.

Definition at line 48 of file DisconnectMenu.h.

◆ m_playerVoteButtonControlNames

char * DisconnectMenu::m_playerVoteButtonControlNames
staticprotected
Initial value:
= {
"DisconnectScreen.wnd:ButtonKickPlayer1",
"DisconnectScreen.wnd:ButtonKickPlayer2",
"DisconnectScreen.wnd:ButtonKickPlayer3",
"DisconnectScreen.wnd:ButtonKickPlayer4",
"DisconnectScreen.wnd:ButtonKickPlayer5",
"DisconnectScreen.wnd:ButtonKickPlayer6",
"DisconnectScreen.wnd:ButtonKickPlayer7",
}

names of the vote button controls in the window.

Definition at line 59 of file DisconnectMenu.h.

◆ m_playerVoteCountControlNames

char * DisconnectMenu::m_playerVoteCountControlNames
staticprotected
Initial value:
= {
"DisconnectScreen.wnd:StaticPlayer1Votes",
"DisconnectScreen.wnd:StaticPlayer2Votes",
"DisconnectScreen.wnd:StaticPlayer3Votes",
"DisconnectScreen.wnd:StaticPlayer4Votes",
"DisconnectScreen.wnd:StaticPlayer5Votes",
"DisconnectScreen.wnd:StaticPlayer6Votes",
"DisconnectScreen.wnd:StaticPlayer7Votes",
}

names of the vote count static text controls in the window.

Definition at line 70 of file DisconnectMenu.h.

◆ m_textDisplayControlName

char * DisconnectMenu::m_textDisplayControlName = "DisconnectScreen.wnd:ListboxTextDisplay"
staticprotected

name of the text display listbox control window.

Definition at line 78 of file DisconnectMenu.h.


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