ManaPlus
Functions | Variables
Ea::GameRecv Namespace Reference

Functions

void processWhoAnswer (Net::MessageIn &msg)
 
void processCharSwitchResponse (Net::MessageIn &msg)
 
void processMapQuitResponse (Net::MessageIn &msg)
 

Variables

std::string mMap
 
BeingId mCharID = BeingId_zero
 

Function Documentation

◆ processCharSwitchResponse()

void Ea::GameRecv::processCharSwitchResponse ( Net::MessageIn msg)

Definition at line 56 of file gamerecv.cpp.

57 {
58  if (msg.readUInt8("response") != 0U)
60 }
void setState(const StateT state)
Definition: client.h:66
Client * client
Definition: client.cpp:118
bool msg(InputEvent &event)
Definition: chat.cpp:39
@ SWITCH_CHARACTER
Definition: state.h:64

References client, Actions::msg(), Client::setState(), and State::SWITCH_CHARACTER.

◆ processMapQuitResponse()

void Ea::GameRecv::processMapQuitResponse ( Net::MessageIn msg)

Definition at line 62 of file gamerecv.cpp.

63 {
64  if (msg.readInt16("response") != 0)
65  {
67  // TRANSLATORS: error header
68  _("Game"),
69  // TRANSLATORS: error message
70  _("Request to quit denied!"),
71  // TRANSLATORS: ok dialog button
72  _("OK"),
74  Modal_true,
76  nullptr,
77  260);
78  }
79 }
#define CREATEWIDGET(type,...)
Definition: createwidget.h:29
#define _(s)
Definition: gettext.h:35
const bool Modal_true
Definition: modal.h:30
const bool ShowCenter_true
Definition: showcenter.h:30

References _, CREATEWIDGET, DialogType::ERROR, Modal_true, Actions::msg(), and ShowCenter_true.

◆ processWhoAnswer()

void Ea::GameRecv::processWhoAnswer ( Net::MessageIn msg)

Definition at line 50 of file gamerecv.cpp.

51 {
53  msg.readInt32("users count"));
54 }
void notify(const unsigned int message)

References Actions::msg(), NotifyManager::notify(), and NotifyTypes::ONLINE_USERS.

Variable Documentation

◆ mCharID

BeingId Ea::GameRecv::mCharID = BeingId_zero

◆ mMap

std::string Ea::GameRecv::mMap