ManaPlus
|
Functions | |
void | processPlayerEquipment (Net::MessageIn &msg) |
void | processPlayerInventoryAdd (Net::MessageIn &msg) |
void | processPlayerInventory (Net::MessageIn &msg) |
void | processPlayerStorage (Net::MessageIn &msg) |
void | processPlayerEquip (Net::MessageIn &msg) |
void | processPlayerUnEquip (Net::MessageIn &msg) |
void | processPlayerStorageEquip (Net::MessageIn &msg) |
void | processPlayerStorageAdd (Net::MessageIn &msg) |
void | processPlayerStorageRemove (Net::MessageIn &msg) |
void | processPlayerInventoryRemove (Net::MessageIn &msg) |
void | processPlayerInventoryUse (Net::MessageIn &msg) |
int | getSlot (const int eAthenaSlot) |
Variables | |
const EquipSlot::Type | EQUIP_POINTS [EquipSlot::VECTOREND] |
int TmwAthena::InventoryRecv::getSlot | ( | const int | eAthenaSlot | ) |
Definition at line 546 of file inventoryrecv.cpp.
References CAST_S32, EQUIP_POINTS, Net::InventoryHandler::getProjectileSlot(), inventoryHandler, and EquipSlot::VECTOREND.
Referenced by processPlayerEquip(), processPlayerEquipment(), and processPlayerUnEquip().
void TmwAthena::InventoryRecv::processPlayerEquip | ( | Net::MessageIn & | msg | ) |
Definition at line 379 of file inventoryrecv.cpp.
References BLOCK_END, BLOCK_START, NotifyTypes::EQUIP_FAILED, getSlot(), INVENTORY_OFFSET, Ea::InventoryRecv::mEquips, Actions::msg(), NotifyManager::notify(), and Ea::EquipBackend::setEquipment().
void TmwAthena::InventoryRecv::processPlayerEquipment | ( | Net::MessageIn & | msg | ) |
Definition at line 78 of file inventoryrecv.cpp.
References BLOCK_END, BLOCK_START, CAST_S32, Ea::EquipBackend::clear(), Damaged_false, Equipm_true, Equipped_false, Favorite_false, fromBool, Equipment::getBackend(), PlayerInfo::getEquipment(), PlayerInfo::getInventory(), getSlot(), INVENTORY_OFFSET, ItemColor_one, localPlayer, Logger::log(), logger, maxCards, Ea::InventoryRecv::mDebugInventory, Ea::InventoryRecv::mEquips, Actions::msg(), Equipment::setBackend(), Inventory::setCards(), Ea::EquipBackend::setEquipment(), and Inventory::setItem().
void TmwAthena::InventoryRecv::processPlayerInventory | ( | Net::MessageIn & | msg | ) |
Definition at line 270 of file inventoryrecv.cpp.
References BLOCK_END, BLOCK_START, CAST_S32, Ea::EquipBackend::clear(), Inventory::clear(), Damaged_false, Equipped_false, Favorite_false, fromBool, PlayerInfo::getEquipment(), PlayerInfo::getInventory(), INVENTORY_OFFSET, ItemColor_one, localPlayer, Logger::log(), logger, maxCards, Ea::InventoryRecv::mDebugInventory, Ea::InventoryRecv::mEquips, Actions::msg(), Equipment::setBackend(), Inventory::setCards(), and Inventory::setItem().
void TmwAthena::InventoryRecv::processPlayerInventoryAdd | ( | Net::MessageIn & | msg | ) |
Definition at line 140 of file inventoryrecv.cpp.
References Pickup::BAD_ITEM, BeingId_zero, BLOCK_END, BLOCK_START, Ea::EquipBackend::clear(), Damaged_false, ArrowsListener::distributeEvent(), Pickup::DROP_STEAL, empty, Equipped_false, Favorite_false, fromBool, ItemDB::get(), ItemDB::getEmpty(), PlayerInfo::getEquipment(), Item::getId(), PlayerInfo::getInventory(), Inventory::getItem(), Item::getQuantity(), Pickup::INV_FULL, INVENTORY_OFFSET, ItemColor_one, localPlayer, maxCards, Ea::InventoryRecv::mEquips, Ea::InventoryRecv::mSentPickups, Actions::msg(), Pickup::OKAY, LocalPlayer::pickedUp(), Actions::pickup(), Equipment::setBackend(), Inventory::setCards(), Inventory::setItem(), Pickup::STACK_FULL, Pickup::TOO_FAR, Pickup::TOO_HEAVY, UNIMPLEMENTEDPACKETFIELD, and Pickup::UNKNOWN.
void TmwAthena::InventoryRecv::processPlayerInventoryRemove | ( | Net::MessageIn & | msg | ) |
Definition at line 525 of file inventoryrecv.cpp.
References BLOCK_END, BLOCK_START, ArrowsListener::distributeEvent(), PlayerInfo::getInventory(), Inventory::getItem(), INVENTORY_OFFSET, localPlayer, Actions::msg(), and Inventory::removeItemAt().
void TmwAthena::InventoryRecv::processPlayerInventoryUse | ( | Net::MessageIn & | msg | ) |
Definition at line 566 of file inventoryrecv.cpp.
References BLOCK_END, BLOCK_START, PlayerInfo::getInventory(), Inventory::getItem(), INVENTORY_OFFSET, localPlayer, Actions::msg(), and Inventory::removeItemAt().
void TmwAthena::InventoryRecv::processPlayerStorage | ( | Net::MessageIn & | msg | ) |
Definition at line 332 of file inventoryrecv.cpp.
References BLOCK_END, BLOCK_START, CAST_S32, Damaged_false, Equipm_false, Favorite_false, fromBool, ItemColor_one, Logger::log(), logger, maxCards, Ea::InventoryRecv::mDebugInventory, Actions::msg(), Ea::InventoryRecv::mStorageItems, and STORAGE_OFFSET.
void TmwAthena::InventoryRecv::processPlayerStorageAdd | ( | Net::MessageIn & | msg | ) |
Definition at line 467 of file inventoryrecv.cpp.
References BLOCK_END, BLOCK_START, Damaged_false, Equipm_false, Equipped_false, Favorite_false, fromBool, ItemColor_one, maxCards, Actions::msg(), Ea::InventoryRecv::mStorage, Inventory::setCards(), Inventory::setItem(), STORAGE_OFFSET, and ItemType::Unknown.
void TmwAthena::InventoryRecv::processPlayerStorageEquip | ( | Net::MessageIn & | msg | ) |
Definition at line 417 of file inventoryrecv.cpp.
References BLOCK_END, BLOCK_START, CAST_S32, CAST_U32, Damaged_false, Equipm_false, Favorite_false, fromBool, ItemColor_one, Logger::log(), logger, maxCards, Ea::InventoryRecv::mDebugInventory, Actions::msg(), Ea::InventoryRecv::mStorageItems, and STORAGE_OFFSET.
void TmwAthena::InventoryRecv::processPlayerStorageRemove | ( | Net::MessageIn & | msg | ) |
Definition at line 507 of file inventoryrecv.cpp.
References BLOCK_END, BLOCK_START, Actions::msg(), Ea::InventoryRecv::mStorage, Inventory::removeItemAt(), and STORAGE_OFFSET.
void TmwAthena::InventoryRecv::processPlayerUnEquip | ( | Net::MessageIn & | msg | ) |
Definition at line 399 of file inventoryrecv.cpp.
References BLOCK_END, BLOCK_START, ArrowsListener::distributeEvent(), getSlot(), Ea::InventoryRecv::mEquips, Actions::msg(), and Ea::EquipBackend::setEquipment().
const EquipSlot::Type TmwAthena::InventoryRecv::EQUIP_POINTS[EquipSlot::VECTOREND] |
Definition at line 51 of file inventoryrecv.cpp.
Referenced by EAthena::InventoryRecv::getSlot(), and getSlot().