23 #ifndef TACTICS3DSUPER_POWER_H
24 #define TACTICS3DSUPER_POWER_H
26 #include "../Libs/Utils_LIB/UTypes.h"
44 typedef std::vector<OpenSkyNet::Utils::TaggedUnion>
Params;
60 virtual void getPlayerInfo(
const Warrior* user_,
char* buffer_,
int bufferLen_)
const { memset(buffer_, 0, bufferLen_); }
61 virtual void getPrePerformInfo(
char* buffer_,
int bufferLen_)
const { memset(buffer_, 0, bufferLen_); }
62 virtual void getAnimationName(
char* buffer_,
int bufferLen_)
const { strncpy(buffer_,
"attack", bufferLen_); }
83 virtual void getAnimationName(
char* buffer_,
int bufferLen_)
const { memset(buffer_, 0, bufferLen_); }
132 extern std::map<SUPER_POWER, const SuperPower*>
g_superPowers;
135 #endif //TACTICS3DSUPER_POWER_H
virtual void use(Warrior *user_, const Warriors &targets_, const Params ¶ms_) const
Definition: Tactics3DSuperPower.cpp:91
virtual ~SuperPower()
Definition: Tactics3DSuperPower.h:51
virtual void onFirstActiveRoundEnd(Warrior *user_, const Warriors &targets_) const
Definition: Tactics3DSuperPower.cpp:104
virtual void getPlayerInfo(const Warrior *user_, char *buffer_, int bufferLen_) const
Definition: Tactics3DSuperPower.cpp:59
Definition: Tactics3DSuperPower.h:91
virtual Warriors filterTargets(const Warrior *user_, const Warriors &targets_) const
Definition: Tactics3DSuperPower.h:70
virtual void setInactive(Warrior *user_, const Warriors &targets_) const
Definition: Tactics3DSuperPower.h:55
virtual void getAnimationName(char *buffer_, int bufferLen_) const
Definition: Tactics3DSuperPower.h:62
virtual void onFirstActiveRoundEnd(Warrior *user_, const Warriors &targets_) const
Definition: Tactics3DSuperPower.h:58
virtual void setInactive(Warrior *user_, const Warriors &targets_) const
Definition: Tactics3DSuperPower.cpp:95
virtual void getPrePerformInfo(char *buffer_, int bufferLen_) const
Definition: Tactics3DSuperPower.h:61
Definition: Tactics3DSuperPower.h:37
ArgumentAgainstMotion()
Definition: Tactics3DSuperPower.h:105
int _maxRounds
Definition: Tactics3DSuperPower.h:41
Evocation()
Definition: Tactics3DSuperPower.h:77
Definition: Tactics3DWarrior.h:42
Definition: Tactics3DSuperPower.h:117
virtual Warriors filterTargets(const Warrior *user_, const Warriors &targets_) const
Definition: Tactics3DSuperPower.cpp:81
virtual bool canTranslate() const
Definition: Tactics3DSuperPower.h:65
std::vector< Warrior * > Warriors
Definition: Tactics3DSuperPower.h:43
const Evocation g_evocation
Definition: Tactics3DSuperPower.cpp:13
virtual void use(Warrior *user_, const Warriors &targets_, const Params ¶ms_) const
Definition: Tactics3DSuperPower.h:53
virtual void getPlayerInfo(const Warrior *user_, char *buffer_, int bufferLen_) const
Definition: Tactics3DSuperPower.cpp:76
virtual void getAnimationName(char *buffer_, int bufferLen_) const
Definition: Tactics3DSuperPower.h:83
virtual bool canRotate() const
Definition: Tactics3DSuperPower.h:85
virtual bool doesMoveCurrCamToWarriorPOV(const Warrior *user_) const
Definition: Tactics3DSuperPower.h:68
Definition: Tactics3DSuperPower.h:76
virtual bool canMoveInSameRound() const
Definition: Tactics3DSuperPower.h:64
Definition: Tactics3DSuperPower.h:104
virtual bool doesMoveCurrCamToWarriorPOV(const Warrior *user_) const
Definition: Tactics3DSuperPower.cpp:42
virtual void setInactive(Warrior *user_, const Warriors &targets_) const
Definition: Tactics3DSuperPower.cpp:71
virtual bool canRotate() const
Definition: Tactics3DSuperPower.h:66
WhatDoesNotKillMe()
Definition: Tactics3DSuperPower.h:92
virtual void formatParams(Params ¶ms_) const
Definition: Tactics3DSuperPower.h:71
std::map< SUPER_POWER, const SuperPower * > g_superPowers
Definition: Tactics3DSuperPower.cpp:18
SUPER_POWER _id
Definition: Tactics3DSuperPower.h:38
SuperPower(SUPER_POWER id_, const std::string &name_, int maxUses_, int maxRounds_)
Definition: Tactics3DSuperPower.h:49
static const Params s_emptyParams
Definition: Tactics3DSuperPower.h:47
virtual void use(Warrior *user_, const Warriors &targets_, const Params ¶ms_) const
Definition: Tactics3DSuperPower.cpp:46
const WhatDoesNotKillMe g_whatDoesNotKillMe
Definition: Tactics3DSuperPower.cpp:14
virtual void use(Warrior *user_, const Warriors &targets_, const Params ¶ms_) const
Definition: Tactics3DSuperPower.cpp:64
virtual void getPrePerformInfo(char *buffer_, int bufferLen_) const
Definition: Tactics3DSuperPower.cpp:38
virtual void getPlayerInfo(const Warrior *user_, char *buffer_, int bufferLen_) const
Definition: Tactics3DSuperPower.cpp:33
Definition: Tactics3DSuperPower.h:35
JamSession()
Definition: Tactics3DSuperPower.h:118
SUPER_POWER
Definition: Tactics3DSuperPower.h:35
virtual void getPlayerInfo(const Warrior *user_, char *buffer_, int bufferLen_) const
Definition: Tactics3DSuperPower.h:60
int _maxUses
Definition: Tactics3DSuperPower.h:40
static const Warriors s_emptyWarriors
Definition: Tactics3DSuperPower.h:46
Definition: Tactics3DSuperPower.h:35
std::vector< OpenSkyNet::Utils::TaggedUnion > Params
Definition: Tactics3DSuperPower.h:44
virtual void takeDamage(Warrior *user_, int dmg_) const
Definition: Tactics3DSuperPower.h:57
const JamSession g_jamSession
Definition: Tactics3DSuperPower.cpp:16
Definition: Tactics3DSuperPower.h:35
const ArgumentAgainstMotion g_argumentAgainstMotion
Definition: Tactics3DSuperPower.cpp:15
virtual void setInactive(Warrior *user_, const Warriors &targets_) const
Definition: Tactics3DSuperPower.cpp:50
virtual void getPlayerInfo(const Warrior *user_, char *buffer_, int bufferLen_) const
Definition: Tactics3DSuperPower.cpp:122
Definition: Tactics3DSuperPower.h:35
virtual void takeDamage(Warrior *user_, int dmg_) const
Definition: Tactics3DSuperPower.cpp:54
virtual void use(Warrior *user_, const Warriors &targets_, const Params ¶ms_) const
Definition: Tactics3DSuperPower.cpp:28
static void initAll()
Definition: Tactics3DSuperPower.cpp:20
virtual Warriors filterTargets(const Warrior *user_, const Warriors &targets_) const
Definition: Tactics3DSuperPower.cpp:128
Definition: Tactics3DSuperPower.h:35
std::string _name
Definition: Tactics3DSuperPower.h:39