summaryrefslogtreecommitdiff
path: root/src/being/localplayer.h
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2025-02-20 22:02:00 +0000
committerFedja Beader <fedja@protonmail.ch>2025-02-20 22:02:00 +0000
commitbb5d5bef365c65fed4fa32c3ac2ce384b2ea4e52 (patch)
tree003b8a99a17f76592a89b72d9f007ceb6b626b55 /src/being/localplayer.h
parent530545589cdaf6d1664438e885d0b4e538684d9b (diff)
downloadmanaplus-bb5d5bef365c65fed4fa32c3ac2ce384b2ea4e52.tar.gz
manaplus-bb5d5bef365c65fed4fa32c3ac2ce384b2ea4e52.tar.bz2
manaplus-bb5d5bef365c65fed4fa32c3ac2ce384b2ea4e52.tar.xz
manaplus-bb5d5bef365c65fed4fa32c3ac2ce384b2ea4e52.zip
Convert navigateTo to take a Position instead of two integers.
Tile coordinates dance in pairs, so let's pair them up. also grows exe size by about 3K, hope this will go away when the rest is converted to Position as well. Note: on my local debug build only. Not on gcc10 CI. Squashed with: * Should it be mNavigateDest or mNavigateTo? Hmm, the jury is still out there ... **** mana/plus!116
Diffstat (limited to 'src/being/localplayer.h')
-rw-r--r--src/being/localplayer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index 1770bd4d3..a972e9d6e 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -243,10 +243,11 @@ class LocalPlayer final : public Being,
static void setAfkMessage(std::string message);
- bool navigateTo(const int x, const int y);
+ bool navigateTo(const Position& to);
void navigateClean();
+
void imitateEmote(const Being *const being,
const unsigned char action) const;
@@ -486,8 +487,7 @@ class LocalPlayer final : public Being,
time_t mPingTime;
time_t mAfkTime;
time_t mActivityTime;
- int mNavigateX;
- int mNavigateY;
+ Position mNavigateDest;
BeingId mNavigateId;
int mCrossX;
int mCrossY;