OpenClonk
C4MessageBoardQuery Class Reference

#include <C4MessageInput.h>

Collaboration diagram for C4MessageBoardQuery:
[legend]

Public Member Functions

 C4MessageBoardQuery (C4Object *pCallbackObj, const StdStrBuf &rsInputQuery, bool fIsUppercase)
 
 C4MessageBoardQuery ()
 
void CompileFunc (StdCompiler *pComp)
 

Public Attributes

C4ObjectPtr CallbackObj
 
StdStrBuf sInputQuery
 
bool fAnswered {false}
 
bool fIsUppercase {false}
 
C4MessageBoardQuerypNext {nullptr}
 

Detailed Description

Definition at line 149 of file C4MessageInput.h.

Constructor & Destructor Documentation

◆ C4MessageBoardQuery() [1/2]

C4MessageBoardQuery::C4MessageBoardQuery ( C4Object pCallbackObj,
const StdStrBuf rsInputQuery,
bool  fIsUppercase 
)
inline

Definition at line 161 of file C4MessageInput.h.

162  : CallbackObj(pCallbackObj), fIsUppercase(fIsUppercase), pNext(nullptr)
163  {
164  sInputQuery.Copy(rsInputQuery);
165  }
C4MessageBoardQuery * pNext
C4ObjectPtr CallbackObj
void Copy()
Definition: StdBuf.h:467

References StdStrBuf::Copy(), and sInputQuery.

Here is the call graph for this function:

◆ C4MessageBoardQuery() [2/2]

C4MessageBoardQuery::C4MessageBoardQuery ( )
inline

Definition at line 167 of file C4MessageInput.h.

167 : CallbackObj(nullptr) {}

Member Function Documentation

◆ CompileFunc()

void C4MessageBoardQuery::CompileFunc ( StdCompiler pComp)

Definition at line 891 of file C4MessageInput.cpp.

892 {
893  // note that this CompileFunc does not save the fAnswered-flag, so pending message board queries will be re-asked when resuming SaveGames
894  pComp->Separator(StdCompiler::SEP_START); // '('
895  // callback object number
896  pComp->Value(CallbackObj); pComp->Separator();
897  // input query string
898  pComp->Value(sInputQuery); pComp->Separator();
899  // options
900  pComp->Value(fIsUppercase);
901  // list end
902  pComp->Separator(StdCompiler::SEP_END); // ')'
903 }
virtual bool Separator(Sep eSep=SEP_SEP)
Definition: StdCompiler.h:119
void Value(const T &rStruct)
Definition: StdCompiler.h:161

References CallbackObj, fIsUppercase, StdCompiler::SEP_END, StdCompiler::SEP_START, StdCompiler::Separator(), sInputQuery, and StdCompiler::Value().

Here is the call graph for this function:

Member Data Documentation

◆ CallbackObj

C4ObjectPtr C4MessageBoardQuery::CallbackObj

Definition at line 152 of file C4MessageInput.h.

Referenced by CompileFunc(), and C4Player::MarkMessageBoardQueryAnswered().

◆ fAnswered

bool C4MessageBoardQuery::fAnswered {false}

Definition at line 154 of file C4MessageInput.h.

Referenced by C4Player::MarkMessageBoardQueryAnswered().

◆ fIsUppercase

bool C4MessageBoardQuery::fIsUppercase {false}

Definition at line 155 of file C4MessageInput.h.

Referenced by CompileFunc().

◆ pNext

◆ sInputQuery

StdStrBuf C4MessageBoardQuery::sInputQuery

Definition at line 153 of file C4MessageInput.h.

Referenced by C4MessageBoardQuery(), and CompileFunc().


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