#include <C4MessageInput.h>
Public Member Functions | |
C4MessageInput () | |
~C4MessageInput () | |
void | Default () |
void | Clear () |
bool | Init () |
void | AddCommand (const char *strCommand, const char *strScript) |
class C4MessageBoardCommand * | GetCommand (const char *strName) |
bool | CloseTypeIn () |
bool | StartTypeIn (bool fObjInput=false, C4Object *pObj=nullptr, bool fUpperCase=false, bool fTeam=false, int32_t iPlr=-1, const StdStrBuf &rsInputQuery=StdStrBuf()) |
bool | KeyStartTypeIn (bool fTeam) |
bool | ToggleTypeIn () |
bool | IsTypeIn () |
C4ChatInputDialog * | GetTypeIn () |
void | StoreBackBuffer (const char *szMessage) |
const char * | GetBackBuffer (int32_t iIndex) |
bool | ProcessInput (const char *szText) |
bool | ProcessCommand (const char *szCommand) |
void | ClearPointers (C4Object *pObj) |
void | AbortMsgBoardQuery (C4Object *pObj, int32_t iPlr) |
Friends | |
class | C4ChatInputDialog |
Definition at line 106 of file C4MessageInput.h.
|
inline |
Definition at line 109 of file C4MessageInput.h.
References Default().
|
inline |
Definition at line 110 of file C4MessageInput.h.
References Clear().
void C4MessageInput::AbortMsgBoardQuery | ( | C4Object * | pObj, |
int32_t | iPlr | ||
) |
Definition at line 859 of file C4MessageInput.cpp.
References CloseTypeIn(), C4ChatInputDialog::GetScriptTargetObject(), C4ChatInputDialog::GetScriptTargetPlayer(), GetTypeIn(), and C4ChatInputDialog::IsScriptQueried().
void C4MessageInput::AddCommand | ( | const char * | strCommand, |
const char * | strScript | ||
) |
Definition at line 833 of file C4MessageInput.cpp.
References _MAX_FNAME, C4MaxName, GetCommand(), C4MessageBoardCommand::Name, C4MessageBoardCommand::Next, SCopy(), and C4MessageBoardCommand::Script.
Referenced by Init().
void C4MessageInput::Clear | ( | ) |
Definition at line 253 of file C4MessageInput.cpp.
References CloseTypeIn(), and C4MessageBoardCommand::Next.
Referenced by C4Game::Clear(), and ~C4MessageInput().
void C4MessageInput::ClearPointers | ( | C4Object * | pObj | ) |
Definition at line 852 of file C4MessageInput.cpp.
References CloseTypeIn(), C4ChatInputDialog::GetScriptTargetObject(), and GetTypeIn().
Referenced by C4Game::ClearPointers().
bool C4MessageInput::CloseTypeIn | ( | ) |
Definition at line 266 of file C4MessageInput.cpp.
References C4GUI::Dialog::Close(), and GetTypeIn().
Referenced by AbortMsgBoardQuery(), Clear(), ClearPointers(), StartTypeIn(), and ToggleTypeIn().
void C4MessageInput::Default | ( | ) |
Definition at line 247 of file C4MessageInput.cpp.
Referenced by C4MessageInput(), and C4Game::Default().
const char * C4MessageInput::GetBackBuffer | ( | int32_t | iIndex | ) |
Definition at line 880 of file C4MessageInput.cpp.
References C4MSGB_BackBufferMax.
Referenced by C4GameLobby::MainDlg::KeyHistoryUpDown().
C4MessageBoardCommand * C4MessageInput::GetCommand | ( | const char * | strName | ) |
Definition at line 844 of file C4MessageInput.cpp.
References C4MessageBoardCommand::Next, and SEqual().
Referenced by AddCommand(), and ProcessCommand().
|
inline |
Definition at line 133 of file C4MessageInput.h.
References C4ChatInputDialog::GetInstance().
Referenced by AbortMsgBoardQuery(), ClearPointers(), CloseTypeIn(), and ToggleTypeIn().
bool C4MessageInput::Init | ( | ) |
Definition at line 237 of file C4MessageInput.cpp.
References AddCommand().
Referenced by C4Game::PreInit().
bool C4MessageInput::IsTypeIn | ( | ) |
Definition at line 305 of file C4MessageInput.cpp.
References C4ChatInputDialog::IsShown().
Referenced by C4MessageBoard::Execute(), StartTypeIn(), and ToggleTypeIn().
bool C4MessageInput::KeyStartTypeIn | ( | bool | fTeam | ) |
Definition at line 283 of file C4MessageInput.cpp.
References Application, C4Application::isEditor, and StartTypeIn().
Referenced by C4Game::InitKeyboard().
bool C4MessageInput::ProcessCommand | ( | const char * | szCommand | ) |
Definition at line 426 of file C4MessageInput.cpp.
References C4Network2::AbortLobbyCountdown(), C4ConfigDeveloper::AltTodoFilename, CStdFile::Append(), Application, C4Config::AtUserDataPath(), C4CVT_DisableDebug, C4CVT_MaxPlayer, C4Group_CopyItem(), CDT_Decide, CDT_Sync, CID_ClientUpdate, CID_MsgBoardCmd, CID_Script, CID_Set, C4ConsoleGUI::ClearLog(), C4GameLobby::MainDlg::ClearLog(), C4Game::Clients, C4Network2::Clients, CStdFile::Close(), CNM_Async, CNM_Central, CNM_Decentral, C4ConfigNetwork::Comment, Config, Console, Control, StdStrBuf::Copy(), ValidatedStdCopyStrBufBase::CopyValidated(), C4ConfigLobby::CountdownTime, C4ClientList::CtrlRemove(), CUT_Activate, CUT_SetObserver, C4Game::DebugMode, C4Config::Developer, C4GameControl::DoInput(), StdStrBuf::Format(), FormatString(), C4Game::FrameSkip, C4Game::FullSpeed, Game, C4Config::General, C4PlayerList::GetAtClient(), C4ClientList::getClientByName(), C4ClientPlayerInfos::GetClientID(), C4PlayerInfoList::GetClientInfoByPlayerID(), GetCommand(), StdStrBuf::getData(), C4Network2Res::getFile(), GetFilename(), C4Group::GetFullName(), C4PlayerInfo::GetID(), C4Client::getID(), C4Network2Client::getID(), C4Network2ResCore::getID(), C4Network2::GetLobby(), C4Network2ClientList::GetLocal(), C4PlayerList::GetLocalByIndex(), C4PlayerInfo::GetName(), C4PlayerInfoList::GetNextPlayerInfoByID(), C4ClientPlayerInfos::GetPlayerInfoByID(), C4PlayerInfoList::GetPrimaryInfoByClientID(), C4Network2ResList::getRefRes(), C4GameRes::getResCore(), GraphicsSystem, C4Network2::InvalidateReference(), C4GameControl::isCtrlHost(), C4Network2::isEnabled(), C4Network2::isHost(), C4GameParameters::isLeague(), C4Network2::isLobbyCountDown(), C4GameControl::isNetwork(), C4Group::IsOpen(), C4Group::IsPacked(), C4Game::IsRunning, ItemExists(), C4Network2Players::JoinLocalPlayer(), LoadResStr(), C4Config::Lobby, C4GameLobby::LobbyError(), Log(), LogF(), C4GraphicsSystem::MessageBoard, Network, C4Config::Network, C4Application::NextTick(), NO_OWNER, C4GameLobby::MainDlg::OnError(), C4Game::Parameters, C4ScriptGuiWindowPropertyName::player, C4Game::PlayerInfos, C4Network2::Players, Players, StdStrBuf::Replace(), C4Network2Players::RequestPlayerInfoUpdate(), C4Network2::ResList, C4GraphicsSystem::SaveScreenshot(), C4GameParameters::Scenario, C4Game::ScenarioFile, C4Game::ScenarioFilename, SCharPos(), C4ControlScript::SCOPE_Console, SCopyUntil(), SEqual(), SEqual2(), SEqualNoCase(), C4Network2::SetCtrlMode(), C4PlayerInfo::SetOriginalColor(), C4Network2::SetPassword(), SSearch(), C4Network2::Start(), C4GameLobby::MainDlg::Start(), C4Network2::StartLobbyCountdown(), C4ConfigDeveloper::TodoFilename, C4Game::ToggleChart(), C4GameLobby::MainDlg::UpdatePassword(), C4ConfigGeneral::UserDataPath, C4Network2::Vote(), VT_Kick, WildcardMatch(), and CStdFile::WriteString().
Referenced by C4Console::In(), and ProcessInput().
bool C4MessageInput::ProcessInput | ( | const char * | szText | ) |
Definition at line 311 of file C4MessageInput.cpp.
References C4CMT_Alert, C4CMT_Me, C4CMT_Normal, C4CMT_Private, C4CMT_Say, C4CMT_Sound, C4CMT_Team, C4MaxMessage, C4MaxName, C4Game::C4S, C4SFilm_Cinematic, CDT_Private, CID_Message, Control, C4GameControl::DoInput(), C4SHead::Film, Game, C4PlayerList::GetByName(), C4PlayerList::GetLocalByIndex(), C4Scenario::Head, C4Game::IsRunning, C4TeamList::IsTeamVisible(), IsWhiteSpace(), LoadResStr(), Log(), C4Player::Number, Players, ProcessCommand(), SCopy(), SCopyUntil(), SEqual2NoCase(), SEqualNoCase(), SLen(), C4Game::Teams, and C4ScriptGuiWindowPropertyName::text.
Referenced by C4Console::In(), C4GameLobby::MainDlg::OnChatInput(), C4ChatInputDialog::OnChatInput(), and C4Application::OnCommand().
bool C4MessageInput::StartTypeIn | ( | bool | fObjInput = false , |
C4Object * | pObj = nullptr , |
||
bool | fUpperCase = false , |
||
bool | fTeam = false , |
||
int32_t | iPlr = -1 , |
||
const StdStrBuf & | rsInputQuery = StdStrBuf() |
||
) |
Definition at line 275 of file C4MessageInput.cpp.
References C4ChatInputDialog, CloseTypeIn(), IsTypeIn(), pGUI, and C4GUI::Screen::ShowRemoveDlg().
Referenced by KeyStartTypeIn(), and ToggleTypeIn().
void C4MessageInput::StoreBackBuffer | ( | const char * | szMessage | ) |
Definition at line 866 of file C4MessageInput.cpp.
References C4MaxMessage, C4MSGB_BackBufferMax, SCopy(), and SEqual().
Referenced by C4GameLobby::MainDlg::OnChatInput(), and C4ChatInputDialog::OnChatInput().
bool C4MessageInput::ToggleTypeIn | ( | ) |
Definition at line 291 of file C4MessageInput.cpp.
References CloseTypeIn(), GetTypeIn(), IsTypeIn(), and StartTypeIn().
|
friend |
Definition at line 143 of file C4MessageInput.h.
Referenced by StartTypeIn().