summaryrefslogtreecommitdiff
path: root/src/resources/map/map.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-16 00:32:58 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-16 00:32:58 +0300
commitf672c7242dfa8d278d826f1e460af96265ca307c (patch)
tree623589aa9a104febeac4147ea349e05c76fb8c77 /src/resources/map/map.h
parent6d44c69cb0cc9c2ac8a94c56c07ed45f63ab9726 (diff)
downloadplus-f672c7242dfa8d278d826f1e460af96265ca307c.tar.gz
plus-f672c7242dfa8d278d826f1e460af96265ca307c.tar.bz2
plus-f672c7242dfa8d278d826f1e460af96265ca307c.tar.xz
plus-f672c7242dfa8d278d826f1e460af96265ca307c.zip
Impliment packet SMSG_MAP_SET_TILES_TYPE (hercules)
This allow change collision types from server.
Diffstat (limited to 'src/resources/map/map.h')
-rw-r--r--src/resources/map/map.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/resources/map/map.h b/src/resources/map/map.h
index 9c74875d8..65fcb8f00 100644
--- a/src/resources/map/map.h
+++ b/src/resources/map/map.h
@@ -142,12 +142,12 @@ class Map final : public Properties, public ConfigListener
const MetaTile *getMetaTile(const int x,
const int y) const A_WARN_UNUSED;
- /**
- * Marks a tile as occupied.
- */
void addBlockMask(const int x, const int y,
const BlockTypeT type);
+ void setBlockMask(const int x, const int y,
+ const BlockTypeT type);
+
/**
* Gets walkability for a tile with a blocking bitmask. When called
* without walkmask, only blocks against colliding tiles.
@@ -195,6 +195,8 @@ class Map final : public Properties, public ConfigListener
*/
const std::string getFilename() const A_WARN_UNUSED;
+ const std::string getGatName() const A_WARN_UNUSED;
+
/**
* Find a path from one location to the next.
*/