diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-11-02 04:40:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-11-02 04:41:47 +0300 |
commit | b90214b9878246ec45e68c0c6c309337d8e15ef2 (patch) | |
tree | ea977f4aaf1bc2ab8cd86f77103d1bc9cee9e1d9 /src/localplayer.h | |
parent | 17631dacf2cb8ebc3acc1dae9df0729a80a150d9 (diff) | |
download | manaverse-b90214b9878246ec45e68c0c6c309337d8e15ef2.tar.gz manaverse-b90214b9878246ec45e68c0c6c309337d8e15ef2.tar.bz2 manaverse-b90214b9878246ec45e68c0c6c309337d8e15ef2.tar.xz manaverse-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.h | 9 |
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; |