summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-02 04:40:58 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-02 04:41:47 +0300
commitb90214b9878246ec45e68c0c6c309337d8e15ef2 (patch)
treeea977f4aaf1bc2ab8cd86f77103d1bc9cee9e1d9 /src/localplayer.h
parent17631dacf2cb8ebc3acc1dae9df0729a80a150d9 (diff)
downloadplus-b90214b9878246ec45e68c0c6c309337d8e15ef2.tar.gz
plus-b90214b9878246ec45e68c0c6c309337d8e15ef2.tar.bz2
plus-b90214b9878246ec45e68c0c6c309337d8e15ef2.tar.xz
plus-b90214b9878246ec45e68c0c6c309337d8e15ef2.zip
Add option to yellow bar to change player attack in pvp mode.
Modes: attack all, attack not friends, attack bad relations, dont attack players.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index fc8c3339b..4183f2d1b 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -271,9 +271,14 @@ class LocalPlayer : public Being, public ActorSpriteListener,
void switchMagicAttack();
+ void switchPvpAttack();
+
int getMagicAttackType()
{ return mMagicAttackType ; }
+ int getPvpAttackType()
+ { return mPvpAttackType ; }
+
int getMoveToTargetType()
{ return mMoveToTargetType ; }
@@ -475,6 +480,8 @@ class LocalPlayer : public Being, public ActorSpriteListener,
void stopAdvert();
+ bool checAttackPermissions(Being *target);
+
protected:
/** Whether or not the name settings have changed */
bool mUpdateName;
@@ -526,6 +533,8 @@ class LocalPlayer : public Being, public ActorSpriteListener,
unsigned int mPickUpType;
//magic attack type
unsigned int mMagicAttackType;
+ //pvp attack type
+ unsigned int mPvpAttackType;
//type how move to target
unsigned int mMoveToTargetType;
unsigned int mAttackType;