ManaPlus
Namespaces | Data Structures | Enumerations | Functions | Variables
TmwAthena Namespace Reference

Namespaces

 BeingRecv
 
 BuySellRecv
 
 CharServerRecv
 
 ChatRecv
 
 GameRecv
 
 GeneralRecv
 
 InventoryRecv
 
 ItemRecv
 
 LoginRecv
 
 PartyRecv
 
 PlayerRecv
 
 QuestRecv
 
 SkillRecv
 
 TradeRecv
 

Data Structures

class  AchievementHandler
 
class  AdminHandler
 
class  AttendanceHandler
 
class  AuctionHandler
 
class  BankHandler
 
class  BarterHandler
 
class  BattleGroundHandler
 
class  BeingHandler
 
class  BuyingStoreHandler
 
class  BuySellHandler
 
class  CashShopHandler
 
class  CharServerHandler
 
class  ChatHandler
 
class  ClanHandler
 
class  ElementalHandler
 
class  FamilyHandler
 
class  FriendsHandler
 
class  GameHandler
 
class  GeneralHandler
 
class  GuildHandler
 
class  HomunculusHandler
 
class  InventoryHandler
 
class  ItemHandler
 
class  LoginHandler
 
class  Mail2Handler
 
class  MailHandler
 
class  MapHandler
 
class  MarketHandler
 
class  MercenaryHandler
 
class  MessageIn
 
class  MessageOut
 
class  Network
 
class  NpcHandler
 
class  PartyHandler
 
class  PetHandler
 
class  PlayerHandler
 
class  QuestHandler
 
class  RefineHandler
 
class  RouletteHandler
 
class  SearchStoreHandler
 
class  ServerFeatures
 
class  SkillHandler
 
class  TradeHandler
 
class  VendingHandler
 

Enumerations

enum  ServerFlags { FLAG_REGISTRATION = 1 }
 

Functions

static void setGm (Being *const dstBeing, const uint16_t gmstatus)
 
void updateProtocol ()
 

Variables

ServerInfo mapServer
 
ServerInfo charServer
 
static const unsigned int packet_lengths_size = 0xFFFFU
 
static const unsigned int messagesSize = 0xFFFFU
 

Enumeration Type Documentation

◆ ServerFlags

Enumerator
FLAG_REGISTRATION 

Definition at line 52 of file loginrecv.cpp.

53 {
55 };
@ FLAG_REGISTRATION
Definition: loginrecv.cpp:54

Function Documentation

◆ setGm()

static void TmwAthena::setGm ( Being *const  dstBeing,
const uint16_t  gmstatus 
)
static

Definition at line 64 of file beingrecv.cpp.

66 {
67  if (dstBeing != localPlayer &&
68  gmstatus == 0x80)
69  {
70  dstBeing->setGroupId(paths.getIntValue("gmDefaultLevel"));
71  }
72  else
73  {
74  dstBeing->setGroupId(gmstatus);
75  }
76 }
virtual void setGroupId(const int id)
Definition: being.cpp:5587
int getIntValue(const std::string &key) const
Configuration paths
LocalPlayer * localPlayer

References Configuration::getIntValue(), localPlayer, paths, and Being::setGroupId().

Referenced by TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), and TmwAthena::BeingRecv::processPlayerUpdate2().

◆ updateProtocol()

void TmwAthena::updateProtocol ( )

Definition at line 34 of file updateprotocol.cpp.

35 {
36  itemIdLen = 2;
37 #define PACKETS_UPDATE
38 #include "net/protocoloutupdate.h"
39 #include "net/tmwa/packetsout.inc"
40 #undef packet
41  Network *const network = Network::mInstance;
42  if (network != nullptr)
43  {
44  network->clearHandlers();
45  network->registerHandlers();
46  }
47 }
int itemIdLen
Definition: client.cpp:130

References TmwAthena::Network::clearHandlers(), itemIdLen, TmwAthena::Network::mInstance, and TmwAthena::Network::registerHandlers().

Referenced by TmwAthena::LoginRecv::processServerVersion().

Variable Documentation

◆ charServer

ServerInfo TmwAthena::charServer

◆ mapServer

ServerInfo TmwAthena::mapServer

◆ messagesSize

const unsigned int TmwAthena::messagesSize = 0xFFFFU
static

◆ packet_lengths_size

const unsigned int TmwAthena::packet_lengths_size = 0xFFFFU
static