Mana
|
Classes | |
class | AbilityHandler |
class | AdminHandler |
class | BeingHandler |
class | BuySellHandler |
class | CharHandler |
Deals with incoming messages related to character selection. More... | |
class | ChatHandler |
class | Connection |
class | EffectHandler |
class | EquipBackend |
class | GameHandler |
class | GeneralHandler |
class | GuildHandler |
class | InventoryHandler |
class | ItemHandler |
class | LoginHandler |
class | ManaServItemDB |
Item information database TmwAthena specific class. More... | |
class | MessageHandler |
class | MessageIn |
Used for parsing an incoming message from manaserv. More... | |
class | MessageOut |
Used for building an outgoing message to manaserv. More... | |
class | NpcHandler |
class | PartyHandler |
class | PlayerHandler |
struct | RespawnRequestListener |
class | TradeHandler |
Typedefs | |
using | MessageHandlerPtr = const std::unique_ptr< MessageHandler > |
Functions | |
Gender | getGender (int gender) |
Helper function for getting gender by int. | |
ManaServ::QuestStatus | getQuestStatus (int status) |
Helper function for getting quest status by id. | |
void | initialize () |
Initializes the network subsystem. | |
void | finalize () |
Finalizes the network subsystem. | |
Connection * | getConnection () |
Returns a new Connection object. | |
void | registerHandler (MessageHandler *handler) |
Registers a message handler. | |
void | unregisterHandler (MessageHandler *handler) |
Unregisters a message handler. | |
void | clearNetworkHandlers () |
Clears all registered message handlers. | |
void | flush () |
Variables | |
Connection * | gameServerConnection = nullptr |
Connection * | chatServerConnection = nullptr |
Connection * | accountServerConnection = nullptr |
std::string | netToken |
ServerInfo | gameServer |
ServerInfo | chatServer |
int | connections = 0 |
const int | PICKUP_RANGE = 32 + 16 |
The permited range to pick up an item. | |
const int | NPC_TALK_RANGE = 32 * 7 |
The permited range to to talk to a NPC. | |
using ManaServ::MessageHandlerPtr = typedef const std::unique_ptr<MessageHandler> |
Definition at line 43 of file messagehandler.h.
anonymous enum |
Enumerator | |
---|---|
PROTOCOL_VERSION | |
MIN_PROTOCOL_VERSION | |
SUPPORTED_DB_VERSION |
Definition at line 28 of file manaserv_protocol.h.
anonymous enum |
Enumerated type for communicated messages:
Components: B byte, W word, D double word, S variable-size string C tile-based coordinates (B*3)
Hosts: P (player's client), A (account server), C (chat server), G (game server)
TODO - Document specific error codes for each packet
Definition at line 65 of file manaserv_protocol.h.
anonymous enum |
Definition at line 299 of file manaserv_protocol.h.
anonymous enum |
Enumerator | |
---|---|
DATA_VERSION_OK | |
DATA_VERSION_OUTDATED |
Definition at line 317 of file manaserv_protocol.h.
anonymous enum |
Enumerator | |
---|---|
PASSWORD_OK | |
PASSWORD_BAD |
Definition at line 323 of file manaserv_protocol.h.
anonymous enum |
Enumerator | |
---|---|
SYNC_CHARACTER_POINTS | |
SYNC_CHARACTER_ATTRIBUTE | |
SYNC_ONLINE_STATUS |
Definition at line 329 of file manaserv_protocol.h.
anonymous enum |
Enumerator | |
---|---|
LOGIN_INVALID_VERSION | |
LOGIN_INVALID_TIME | |
LOGIN_BANNED |
Definition at line 336 of file manaserv_protocol.h.
anonymous enum |
Enumerator | |
---|---|
REGISTER_INVALID_VERSION | |
REGISTER_EXISTS_USERNAME | |
REGISTER_EXISTS_EMAIL | |
REGISTER_CAPTCHA_WRONG |
Definition at line 343 of file manaserv_protocol.h.
anonymous enum |
Definition at line 351 of file manaserv_protocol.h.
anonymous enum |
Enumerator | |
---|---|
MOVING_POSITION | |
MOVING_DESTINATION |
Definition at line 390 of file manaserv_protocol.h.
anonymous enum |
Enumerator | |
---|---|
CHAT_USING_BAD_WORDS | |
CHAT_UNHANDLED_COMMAND |
Definition at line 398 of file manaserv_protocol.h.
anonymous enum |
Enumerator | |
---|---|
CHAT_EVENT_NEW_PLAYER | |
CHAT_EVENT_LEAVING_PLAYER | |
CHAT_EVENT_TOPIC_CHANGE | |
CHAT_EVENT_MODE_CHANGE | |
CHAT_EVENT_KICKED_PLAYER |
Definition at line 404 of file manaserv_protocol.h.
anonymous enum |
Enumerator | |
---|---|
GUILD_EVENT_NEW_PLAYER | |
GUILD_EVENT_LEAVING_PLAYER | |
GUILD_EVENT_ONLINE_PLAYER | |
GUILD_EVENT_OFFLINE_PLAYER |
Definition at line 413 of file manaserv_protocol.h.
anonymous enum |
Enumerator | |
---|---|
QUESTLOG_UPDATE_STATE | |
QUESTLOG_UPDATE_TITLE | |
QUESTLOG_UPDATE_DESCRIPTION | |
QUESTLOG_SHOW_NOTIFICATION |
Definition at line 420 of file manaserv_protocol.h.
Enumerator | |
---|---|
ATTRIBMOD_OK | |
ATTRIBMOD_INVALID_ATTRIBUTE | |
ATTRIBMOD_NO_POINTS_LEFT | |
ATTRIBMOD_DENIED |
Definition at line 364 of file manaserv_protocol.h.
Moves enum for beings and actors for others players vision.
WARNING: Has to be in sync with the same enum in the Being class of the client!
Enumerator | |
---|---|
STAND | |
WALK | |
SIT | |
DEAD | |
HURT |
Definition at line 432 of file manaserv_protocol.h.
Beings and actors directions WARNING: Has to be in sync with the same enum in the Being class of the client!
Enumerator | |
---|---|
DOWN | |
LEFT | |
UP | |
RIGHT |
Definition at line 446 of file manaserv_protocol.h.
Beings Genders.
Enumerator | |
---|---|
GENDER_MALE | |
GENDER_FEMALE | |
GENDER_UNSPECIFIED |
Definition at line 457 of file manaserv_protocol.h.
enum ManaServ::EntityType |
Enumerator | |
---|---|
OBJECT_ITEM | |
OBJECT_NPC | |
OBJECT_MONSTER | |
OBJECT_CHARACTER | |
OBJECT_EFFECT | |
OBJECT_OTHER |
Definition at line 372 of file manaserv_protocol.h.
Quest states.
Enumerator | |
---|---|
STATUS_OPEN | |
STATUS_STARTED | |
STATUS_FINISHED | |
STATUS_INVALID |
Definition at line 485 of file manaserv_protocol.h.
enum for sprites layers.
Enumerator | |
---|---|
SPRITE_LAYER_BASE | |
SPRITE_LAYER_HAIR | |
FIXED_SPRITE_LAYER_SIZE |
Definition at line 31 of file beinghandler.h.
enum ManaServ::ValueType |
The type of a value in a message.
Prepended before each value when the protocol is running in debug mode.
Enumerator | |
---|---|
Int8 | |
Int16 | |
Int32 | |
String | |
Double |
Definition at line 38 of file manaserv_protocol.h.
void ManaServ::clearNetworkHandlers | ( | ) |
Clears all registered message handlers.
Definition at line 100 of file network.cpp.
void ManaServ::finalize | ( | ) |
Finalizes the network subsystem.
Definition at line 62 of file network.cpp.
void ManaServ::flush | ( | ) |
Definition at line 135 of file network.cpp.
Connection * ManaServ::getConnection | ( | ) |
Returns a new Connection object.
Should be deleted by the caller.
Definition at line 77 of file network.cpp.
|
inline |
Helper function for getting gender by int.
Definition at line 469 of file manaserv_protocol.h.
|
inline |
Helper function for getting quest status by id.
status | id of the status |
Definition at line 498 of file manaserv_protocol.h.
void ManaServ::initialize | ( | ) |
Initializes the network subsystem.
Definition at line 47 of file network.cpp.
void ManaServ::registerHandler | ( | MessageHandler * | handler | ) |
Registers a message handler.
A message handler handles a certain subset of incoming messages.
Definition at line 88 of file network.cpp.
void ManaServ::unregisterHandler | ( | MessageHandler * | handler | ) |
Unregisters a message handler.
Definition at line 94 of file network.cpp.
Connection * ManaServ::accountServerConnection = nullptr |
Definition at line 53 of file generalhandler.cpp.
ServerInfo ManaServ::chatServer |
Definition at line 55 of file chathandler.cpp.
Connection * ManaServ::chatServerConnection = nullptr |
Definition at line 56 of file charhandler.cpp.
int ManaServ::connections = 0 |
Definition at line 26 of file internal.cpp.
ServerInfo ManaServ::gameServer |
Definition at line 41 of file gamehandler.cpp.
Connection * ManaServ::gameServerConnection = nullptr |
Definition at line 55 of file charhandler.cpp.
std::string ManaServ::netToken |
Definition at line 54 of file chathandler.cpp.
const int ManaServ::NPC_TALK_RANGE = 32 * 7 |
The permited range to to talk to a NPC.
Definition at line 517 of file manaserv_protocol.h.
const int ManaServ::PICKUP_RANGE = 32 + 16 |
The permited range to pick up an item.
Definition at line 514 of file manaserv_protocol.h.