summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-03-24 23:10:51 -0600
committerJared Adams <jaxad0127@gmail.com>2010-03-25 11:31:55 -0600
commitbf6cb46d9b06b06470efd5ad3ebae7e274f6906f (patch)
tree281cdf6d017477f07e02e73acef175f937c18eed /src/localplayer.cpp
parent83077364f8b67fb9fc57e8b04a1feff0e243848d (diff)
downloadmana-bf6cb46d9b06b06470efd5ad3ebae7e274f6906f.tar.gz
mana-bf6cb46d9b06b06470efd5ad3ebae7e274f6906f.tar.bz2
mana-bf6cb46d9b06b06470efd5ad3ebae7e274f6906f.tar.xz
mana-bf6cb46d9b06b06470efd5ad3ebae7e274f6906f.zip
Eliminate the logic methods from InventoryWindow and StorageWindow
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 6d53cac3..d88b01f5 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -40,6 +40,7 @@
#include "text.h"
#include "gui/gui.h"
+#include "gui/inventorywindow.h"
#include "gui/ministatus.h"
#include "gui/skilldialog.h"
#include "gui/statuswindow.h"
@@ -759,6 +760,20 @@ void LocalPlayer::lowerAttribute(int attr)
Net::getPlayerHandler()->decreaseAttribute(attr);
}
+void LocalPlayer::setTotalWeight(int value)
+{
+ mTotalWeight = value;
+
+ inventoryWindow->updateWeight();
+}
+
+void LocalPlayer::setMaxWeight(int value)
+{
+ mMaxWeight = value;
+
+ inventoryWindow->updateWeight();
+}
+
void LocalPlayer::setAttributeBase(int num, int value, bool notify)
{
int old = mAttributeBase[num];