diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-21 21:02:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-21 21:02:14 +0300 |
commit | 3ff29eb31e08751f6e4993c62c0be8ac5b159b92 (patch) | |
tree | d942048e23e8cd61b2b5431c6b6c16553159acd1 /src/net | |
parent | 68581ace3255ea4d8b0f0e5b33a33633a27b8e42 (diff) | |
download | manaverse-3ff29eb31e08751f6e4993c62c0be8ac5b159b92.tar.gz manaverse-3ff29eb31e08751f6e4993c62c0be8ac5b159b92.tar.bz2 manaverse-3ff29eb31e08751f6e4993c62c0be8ac5b159b92.tar.xz manaverse-3ff29eb31e08751f6e4993c62c0be8ac5b159b92.zip |
Add server feature haveAttackDirections.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/serverfeatures.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/serverfeatures.h | 2 | ||||
-rw-r--r-- | src/net/serverfeatures.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/serverfeatures.cpp | 5 | ||||
-rw-r--r-- | src/net/tmwa/serverfeatures.h | 2 |
5 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index 0e684b00a..4179adef3 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -190,4 +190,9 @@ bool ServerFeatures::haveCreateCharGender() const return serverVersion >= 4; } +bool ServerFeatures::haveAttackDirections() const +{ + return true; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index d91373322..bf7fb422e 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -95,6 +95,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveNpcWhispers() const override final; bool haveCreateCharGender() const override final; + + bool haveAttackDirections() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index 4c4d78470..b93914a22 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -92,6 +92,8 @@ class ServerFeatures notfinal virtual bool haveNpcWhispers() const = 0; virtual bool haveCreateCharGender() const = 0; + + virtual bool haveAttackDirections() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index a24a9a0b9..5e4ea63e5 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -189,4 +189,9 @@ bool ServerFeatures::haveCreateCharGender() const return false; } +bool ServerFeatures::haveAttackDirections() const +{ + return false; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 9ab448104..e447197c3 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -95,6 +95,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveNpcWhispers() const override final; bool haveCreateCharGender() const override final; + + bool haveAttackDirections() const override final; }; } // namespace TmwAthena |