OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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::C4MessageBoardQuery ( C4Object pCallbackObj,
const StdStrBuf rsInputQuery,
bool  fIsUppercase 
)
inline

Definition at line 161 of file C4MessageInput.h.

References StdStrBuf::Copy().

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

Here is the call graph for this function:

C4MessageBoardQuery::C4MessageBoardQuery ( )
inline

Definition at line 167 of file C4MessageInput.h.

167 : CallbackObj(nullptr) {}
C4ObjectPtr CallbackObj

Member Function Documentation

void C4MessageBoardQuery::CompileFunc ( StdCompiler pComp)

Definition at line 891 of file C4MessageInput.cpp.

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

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
C4ObjectPtr CallbackObj
void Value(const T &rStruct)
Definition: StdCompiler.h:161

Here is the call graph for this function:

Member Data Documentation

C4ObjectPtr C4MessageBoardQuery::CallbackObj

Definition at line 152 of file C4MessageInput.h.

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

bool C4MessageBoardQuery::fAnswered {false}

Definition at line 154 of file C4MessageInput.h.

Referenced by C4Player::MarkMessageBoardQueryAnswered().

bool C4MessageBoardQuery::fIsUppercase {false}

Definition at line 155 of file C4MessageInput.h.

Referenced by CompileFunc().

StdStrBuf C4MessageBoardQuery::sInputQuery

Definition at line 153 of file C4MessageInput.h.

Referenced by CompileFunc().


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