|
|
@ -53,6 +53,7 @@ private: |
|
|
|
float lastHitTimer=0; //When this is greater than zero, if we get hit again it adds to our displayed combo number.
|
|
|
|
float lastHitTimer=0; //When this is greater than zero, if we get hit again it adds to our displayed combo number.
|
|
|
|
std::shared_ptr<DamageNumber>damageNumberPtr; |
|
|
|
std::shared_ptr<DamageNumber>damageNumberPtr; |
|
|
|
void Initialize(); |
|
|
|
void Initialize(); |
|
|
|
|
|
|
|
float iframe_time=0; |
|
|
|
protected: |
|
|
|
protected: |
|
|
|
const float ATTACK_COOLDOWN="Warrior.Auto Attack.Cooldown"_F; |
|
|
|
const float ATTACK_COOLDOWN="Warrior.Auto Attack.Cooldown"_F; |
|
|
|
const float MAGIC_ATTACK_COOLDOWN="Wizard.Auto Attack.Cooldown"_F; |
|
|
|
const float MAGIC_ATTACK_COOLDOWN="Wizard.Auto Attack.Cooldown"_F; |
|
|
@ -71,7 +72,6 @@ protected: |
|
|
|
bool SetPos(vf2d pos); |
|
|
|
bool SetPos(vf2d pos); |
|
|
|
float friction="Player.Friction"_F; |
|
|
|
float friction="Player.Friction"_F; |
|
|
|
float attack_cooldown_timer=0; |
|
|
|
float attack_cooldown_timer=0; |
|
|
|
float iframe_time=0; |
|
|
|
|
|
|
|
float teleportAnimationTimer=0; |
|
|
|
float teleportAnimationTimer=0; |
|
|
|
vf2d teleportTarget={}; |
|
|
|
vf2d teleportTarget={}; |
|
|
|
vf2d teleportStartPosition={}; |
|
|
|
vf2d teleportStartPosition={}; |
|
|
@ -131,6 +131,7 @@ public: |
|
|
|
bool CanAct(); |
|
|
|
bool CanAct(); |
|
|
|
bool CanAct(Ability&ability); |
|
|
|
bool CanAct(Ability&ability); |
|
|
|
void Knockback(vf2d vel); |
|
|
|
void Knockback(vf2d vel); |
|
|
|
|
|
|
|
void SetIframes(float duration); |
|
|
|
|
|
|
|
|
|
|
|
void AddBuff(BuffType type,float duration,float intensity); |
|
|
|
void AddBuff(BuffType type,float duration,float intensity); |
|
|
|
std::vector<Buff>GetBuffs(BuffType buff); |
|
|
|
std::vector<Buff>GetBuffs(BuffType buff); |
|
|
|