summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-24 15:21:11 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-24 15:51:39 -0700
commitd039422e70e47a762ef61de619e9e98780b12664 (patch)
treed0cb68147e6fe37a8c85e4907766976bf79547b4 /src/localplayer.cpp
parent84cf9bcc38028696d02c03cd523b7997906b9f01 (diff)
downloadmana-d039422e70e47a762ef61de619e9e98780b12664.tar.gz
mana-d039422e70e47a762ef61de619e9e98780b12664.tar.bz2
mana-d039422e70e47a762ef61de619e9e98780b12664.tar.xz
mana-d039422e70e47a762ef61de619e9e98780b12664.zip
Move StorageWindow to instancing intead of global
Also make storage under eAthena more flexible. Reviewed-by: Dennis Friis
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index d7f64113..8ce03bba 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -77,7 +77,6 @@ LocalPlayer *player_node = NULL;
LocalPlayer::LocalPlayer(int id, int job):
Player(id, job, 0),
mEquipment(new Equipment),
- mInStorage(false),
mAttackRange(0),
mTargetTime(-1),
mLastTarget(-1),
@@ -101,8 +100,6 @@ LocalPlayer::LocalPlayer(int id, int job):
mInventory(new Inventory(Net::getInventoryHandler()
->getSize(Net::InventoryHandler::INVENTORY))),
mLocalWalkTime(-1),
- mStorage(new Inventory(Net::getInventoryHandler()
- ->getSize(Net::InventoryHandler::STORAGE))),
mMessageTime(0)
{
// Variable to keep the local player from doing certain actions before a map
@@ -124,7 +121,6 @@ LocalPlayer::LocalPlayer(int id, int job):
LocalPlayer::~LocalPlayer()
{
delete mInventory;
- delete mStorage;
config.removeListener("showownname", this);
@@ -1095,13 +1091,6 @@ void LocalPlayer::loadTargetCursor(const std::string &filename,
mTargetCursor[index][size] = currentCursor;
}
-void LocalPlayer::setInStorage(bool inStorage)
-{
- mInStorage = inStorage;
-
- storageWindow->setVisible(inStorage);
-}
-
void LocalPlayer::addMessageToQueue(const std::string &message,
Palette::ColorType color)
{