diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2006-12-27 20:33:16 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2006-12-27 20:33:16 +0000 |
commit | 4bfa5b213257416f997d01b087c9e8bbb91cb3b9 (patch) | |
tree | 89e6e3dcb328994cc9fd21604b61c1544dc972ba /src/player.h | |
parent | 896901986a1d6ad0e93f494fba0b39b066c2aabf (diff) | |
download | manaserv-4bfa5b213257416f997d01b087c9e8bbb91cb3b9.tar.gz manaserv-4bfa5b213257416f997d01b087c9e8bbb91cb3b9.tar.bz2 manaserv-4bfa5b213257416f997d01b087c9e8bbb91cb3b9.tar.xz manaserv-4bfa5b213257416f997d01b087c9e8bbb91cb3b9.zip |
Clients are now notified when other clients near them perform attacks.
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h index 83f5fee1..f3d1c35e 100644 --- a/src/player.h +++ b/src/player.h @@ -42,6 +42,7 @@ class Player : public Being : Being(OBJECT_PLAYER, 65535), mDatabaseID(id), mName(name), + mIsAttacking(false), mClient(NULL) {} @@ -203,6 +204,12 @@ class Player : public Being unequip(unsigned char slot); /** + * Set attacking state + **/ + void setAttacking(bool isAttacking) + { mIsAttacking = isAttacking; } + + /** * Gets database ID. * * @return the database ID, a negative number if none yet. @@ -238,6 +245,8 @@ class Player : public Being Inventory inventory; /**< Player inventory and Equipment */ + bool mIsAttacking; /**< attacking state */ + friend class GameClient; }; |