![]() |
ManaPlus
|
Data Structures | |
| class | AchievementHandler |
| class | AdminHandler |
| class | AttendanceHandler |
| class | AuctionHandler |
| class | BankHandler |
| class | BarterHandler |
| class | BattleGroundHandler |
| class | BeingHandler |
| class | BuyingStoreHandler |
| class | BuySellHandler |
| class | CashShopHandler |
| struct | Character |
| class | CharServerHandler |
| class | ChatHandler |
| class | ClanHandler |
| class | Download |
| class | ElementalHandler |
| class | FamilyHandler |
| class | FriendsHandler |
| class | GameHandler |
| class | GeneralHandler |
| class | GuildHandler |
| class | HomunculusHandler |
| class | InventoryHandler |
| class | LoginHandler |
| class | Mail2Handler |
| class | MailHandler |
| class | MapHandler |
| class | MarketHandler |
| class | MercenaryHandler |
| class | MessageIn |
| class | MessageOut |
| class | NpcHandler |
| class | PartyHandler |
| class | PetHandler |
| class | PlayerHandler |
| class | QuestHandler |
| class | RefineHandler |
| class | RouletteHandler |
| class | SearchStoreHandler |
| class | ServerFeatures |
| class | SkillHandler |
| class | TradeHandler |
| class | VendingHandler |
Typedefs | |
| typedef std::list< Character * > | Characters |
Functions | |
| void | connectToServer (const ServerInfo &server) |
| void | unload () |
| ServerTypeT | getNetworkType () |
| void | loadIgnorePackets () |
| bool | isIgnorePacket (const int id) |
Variables | |
| ServerTypeT | networkType = ServerType::UNKNOWN |
| std::set< int > | ignorePackets |
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 std::list< Character * > Net::Characters |
Definition at line 61 of file character.h.
| void Net::connectToServer | ( | const ServerInfo & | server | ) |
Handles server detection and connection
Definition at line 130 of file net.cpp.
References BLOCK_END, BLOCK_START, Net::LoginHandler::connect(), delete2, ServerType::EATHENA, ServerType::EVOL2, generalHandler, Net::GeneralHandler::load(), loginHandler, networkType, Net::GeneralHandler::reload(), Net::LoginHandler::setServer(), ServerType::TMWATHENA, ServerInfo::type, ServerType::UNKNOWN, and Net::GeneralHandler::unload().
Referenced by Client::stateConnectServer1().
| ServerTypeT Net::getNetworkType | ( | ) |
Definition at line 189 of file net.cpp.
References networkType.
Referenced by ChangeDisplay::action(), PopupMenu::addBuySell(), PopupMenu::addCatchPetCommands(), ChatWindow::addChatTab(), PopupMenu::addMailCommands(), PopupMenu::addSocialMenu(), Being::addToCache(), LocalPlayer::attack(), LocalPlayer::attack2(), LocalPlayer::attributeChanged(), CharSelectDialog::CharSelectDialog(), ChatTab::chatLog(), TradeWindow::checkItem(), ActorManager::createBeing(), createGuiWindows(), LocalPlayer::fixPos(), PartyTab::getAutoCompleteCommands(), FloorItem::getName(), Item::getName(), Being::handleAttack(), PartyTab::handleCommand(), Being::handleSkill(), EAthena::ServerFeatures::haveServerVersion(), ActorManager::heal(), PopupMenu::isAllowCommand(), GroupDb::isAllowCommand(), PopupMenu::isAllowOtherCommand(), Being::isBuyShopEnabled(), Being::isSellShopEnabled(), ActorManager::itenplz(), DbManager::loadDb(), LocalPlayer::LocalPlayer(), LocalPlayer::magicAttack(), ItemContainer::mouseReleased(), ShopListBox::mouseReleased(), LocalPlayer::moveToTarget(), LocalPlayer::optionChanged(), Actions::outString(), outStringNormal(), parseDirectionName(), LocalPlayer::pickedUp(), ChatWindow::resortChatLog(), EAthena::LoginHandler::sendLoginRegister(), ItemPopup::setItem(), Being::setState(), PopupMenu::showAdoptCommands(), PopupMenu::showChatPopup(), PopupMenu::showEmoteType(), PopupMenu::showFloorItemGMCommands(), PopupMenu::showItemGMCommands(), PopupMenu::showMonsterGMCommands(), PopupMenu::showMuteCommands(), PopupMenu::showNpcGMCommands(), PopupMenu::showPlayerGMCommands(), PopupMenu::showPopup(), DbManager::unloadDb(), Item::updateColor(), ShopItem::updateDisplayName(), Being::updateFromCache(), and LocalPlayer::updateStatus().
| bool Net::isIgnorePacket | ( | const int | id | ) |
| void Net::loadIgnorePackets | ( | ) |
Definition at line 194 of file net.cpp.
References config, Configuration::getStringValue(), ignorePackets, and splitToIntSet().
Referenced by Setup_Misc::apply().
| void Net::unload | ( | ) |
Definition at line 180 of file net.cpp.
References delete2, generalHandler, ignorePackets, and Net::GeneralHandler::unload().
Referenced by AvatarDB::load(), BadgesDB::load(), CharDB::load(), ClanDb::load(), ColorDB::load(), CommandsDB::load(), DeadDB::load(), ElementalDb::load(), EmoteDB::load(), GroupDb::load(), HomunculusDB::load(), HorseDB::load(), ItemDB::load(), ItemFieldDb::load(), ItemOptionDb::load(), LanguageDb::load(), MapDB::load(), MercenaryDB::load(), ModDB::load(), MonsterDB::load(), NetworkDb::load(), NPCDB::load(), NpcDialogDB::load(), PaletteDB::load(), PETDB::load(), QuestDb::load(), SkillUnitDb::load(), SoundDB::load(), StatDb::load(), StatusEffectDB::load(), TextDb::load(), WeaponsDB::load(), Theme::loadRect(), and TouchManager::unloadTouchItem().
| std::set<int> Net::ignorePackets |
Definition at line 128 of file net.cpp.
Referenced by isIgnorePacket(), loadIgnorePackets(), and unload().
| ServerTypeT Net::networkType = ServerType::UNKNOWN |
Definition at line 127 of file net.cpp.
Referenced by connectToServer(), and getNetworkType().