Mana
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
Net Namespace Reference

The network communication layer. More...

Classes

class  AbilityHandler
 
class  AdminHandler
 
struct  Character
 A structure to hold information about a character. More...
 
class  CharHandler
 
class  ChatHandler
 
class  Download
 
class  GameHandler
 
class  GeneralHandler
 
class  GuildHandler
 
class  InventoryHandler
 
class  LoginHandler
 
class  MessageHandler
 
class  NpcHandler
 
class  PartyHandler
 
class  PlayerHandler
 
class  TradeHandler
 

Typedefs

using Characters = std::list< Character * >
 

Functions

void connectToServer (ServerInfo &server)
 Handles server detection and connection.
 
void unload ()
 
ServerType getNetworkType ()
 
AdminHandlergetAdminHandler ()
 
CharHandlergetCharHandler ()
 
ChatHandlergetChatHandler ()
 
GameHandlergetGameHandler ()
 
GeneralHandlergetGeneralHandler ()
 
GuildHandlergetGuildHandler ()
 
InventoryHandlergetInventoryHandler ()
 
LoginHandlergetLoginHandler ()
 
NpcHandlergetNpcHandler ()
 
PartyHandlergetPartyHandler ()
 
PlayerHandlergetPlayerHandler ()
 
AbilityHandlergetAbilityHandler ()
 
TradeHandlergetTradeHandler ()
 

Variables

constexpr Position fallBackBoxPositions []
 
const std::string fallBackBoxIcons []
 

Detailed Description

The network communication layer.

It is composed of a host of interfaces that interact with different aspects of the game. They have different implementations depending on the type of server the client is connecting to.

Typedef Documentation

◆ Characters

using Net::Characters = typedef std::list<Character *>

Definition at line 49 of file charhandler.h.

Function Documentation

◆ connectToServer()

void Net::connectToServer ( ServerInfo server)

Handles server detection and connection.

Definition at line 130 of file net.cpp.

◆ getAbilityHandler()

Net::AbilityHandler * Net::getAbilityHandler ( )

Definition at line 115 of file net.cpp.

◆ getAdminHandler()

Net::AdminHandler * Net::getAdminHandler ( )

Definition at line 60 of file net.cpp.

◆ getCharHandler()

Net::CharHandler * Net::getCharHandler ( )

Definition at line 65 of file net.cpp.

◆ getChatHandler()

Net::ChatHandler * Net::getChatHandler ( )

Definition at line 70 of file net.cpp.

◆ getGameHandler()

Net::GameHandler * Net::getGameHandler ( )

Definition at line 75 of file net.cpp.

◆ getGeneralHandler()

Net::GeneralHandler * Net::getGeneralHandler ( )

Definition at line 80 of file net.cpp.

◆ getGuildHandler()

Net::GuildHandler * Net::getGuildHandler ( )

Definition at line 85 of file net.cpp.

◆ getInventoryHandler()

Net::InventoryHandler * Net::getInventoryHandler ( )

Definition at line 90 of file net.cpp.

◆ getLoginHandler()

Net::LoginHandler * Net::getLoginHandler ( )

Definition at line 95 of file net.cpp.

◆ getNetworkType()

ServerType Net::getNetworkType ( )

Definition at line 200 of file net.cpp.

◆ getNpcHandler()

Net::NpcHandler * Net::getNpcHandler ( )

Definition at line 100 of file net.cpp.

◆ getPartyHandler()

Net::PartyHandler * Net::getPartyHandler ( )

Definition at line 105 of file net.cpp.

◆ getPlayerHandler()

Net::PlayerHandler * Net::getPlayerHandler ( )

Definition at line 110 of file net.cpp.

◆ getTradeHandler()

Net::TradeHandler * Net::getTradeHandler ( )

Definition at line 120 of file net.cpp.

◆ unload()

void Net::unload ( )

Definition at line 177 of file net.cpp.

Variable Documentation

◆ fallBackBoxIcons

const std::string Net::fallBackBoxIcons[]
Initial value:
= {
"equip-box-chest",
"equip-box-hands",
"equip-box-head",
"equip-box-legs",
"equip-box-feet",
"equip-box-ring",
"equip-box-ring",
"equip-box-neck",
"equip-box-weapon",
"equip-box-shield",
"equip-box-ammo"
}

Definition at line 46 of file inventoryhandler.h.

◆ fallBackBoxPositions

constexpr Position Net::fallBackBoxPositions[]
constexpr
Initial value:
= {
{ 90, 40 },
{ 8, 78 },
{ 70, 0 },
{ 50, 208 },
{ 90, 208 },
{ 8, 168 },
{ 129, 168 },
{ 50, 40 },
{ 8, 123 },
{ 129, 123 },
{ 129, 78 }
}

Definition at line 32 of file inventoryhandler.h.