From 0f9ec2061c4ad6157c3186f1cab9c4d8558980b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 May 2015 14:30:20 +0300 Subject: Add strong typed int type BeingId. --- src/net/skillhandler.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/net/skillhandler.h') diff --git a/src/net/skillhandler.h b/src/net/skillhandler.h index 9c9318c66..996101149 100644 --- a/src/net/skillhandler.h +++ b/src/net/skillhandler.h @@ -23,6 +23,8 @@ #ifndef NET_SKILLHANDLER_H #define NET_SKILLHANDLER_H +#include "enums/simpletypes/beingid.h" + #include #include "localconsts.h" @@ -35,13 +37,16 @@ class SkillHandler notfinal virtual ~SkillHandler() { } - virtual void useBeing(const int id, const int level, - const int beingId) const = 0; + virtual void useBeing(const int id, + const int level, + const BeingId beingId) const = 0; - virtual void usePos(const int id, const int level, + virtual void usePos(const int id, + const int level, const int x, const int y) const = 0; - virtual void usePos(const int id, const int level, + virtual void usePos(const int id, + const int level, const int x, const int y, const std::string &text) const = 0; -- cgit v1.2.3-70-g09d2