summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/pethandler.cpp4
-rw-r--r--src/net/eathena/pethandler.h2
-rw-r--r--src/net/pethandler.h2
-rw-r--r--src/net/tmwa/pethandler.cpp6
-rw-r--r--src/net/tmwa/pethandler.h2
5 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index b18cc83d0..c2e4d2b32 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -323,4 +323,8 @@ void PetHandler::setDirection(const BeingDirection::Type type A_UNUSED) const
{
}
+void PetHandler::startAi(const bool start A_UNUSED) const
+{
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/pethandler.h b/src/net/eathena/pethandler.h
index b397d98d4..687884251 100644
--- a/src/net/eathena/pethandler.h
+++ b/src/net/eathena/pethandler.h
@@ -68,6 +68,8 @@ class PetHandler final : public MessageHandler, public Net::PetHandler
void setDirection(const BeingDirection::Type type) const
override final;
+ void startAi(const bool start) const override final;
+
protected:
static void processPetRoulette(Net::MessageIn &msg);
diff --git a/src/net/pethandler.h b/src/net/pethandler.h
index 20e4b945e..50a844df6 100644
--- a/src/net/pethandler.h
+++ b/src/net/pethandler.h
@@ -58,6 +58,8 @@ class PetHandler notfinal
virtual void unequip() const = 0;
virtual void setDirection(const BeingDirection::Type type) const = 0;
+
+ virtual void startAi(const bool start) const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/pethandler.cpp b/src/net/tmwa/pethandler.cpp
index 787b288b5..33bd2cb3c 100644
--- a/src/net/tmwa/pethandler.cpp
+++ b/src/net/tmwa/pethandler.cpp
@@ -113,4 +113,10 @@ void PetHandler::setDirection(const BeingDirection::Type type) const
static_cast<int>(type), tick_time), GENERAL_CHANNEL);
}
+void PetHandler::startAi(const bool start) const
+{
+ chatHandler->talk(strprintf("\302\202\302a%dg%d",
+ start ? 1 : 0, tick_time), GENERAL_CHANNEL);
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/pethandler.h b/src/net/tmwa/pethandler.h
index 49f32e84d..7b7f40cd0 100644
--- a/src/net/tmwa/pethandler.h
+++ b/src/net/tmwa/pethandler.h
@@ -66,6 +66,8 @@ class PetHandler final : public MessageHandler, public Net::PetHandler
void setDirection(const BeingDirection::Type type) const
override final;
+ void startAi(const bool start) const override final;
+
protected:
int mRandCounter;
};