|
|
|
@ -51,7 +51,6 @@ private: |
|
|
|
|
Animate2D::Animation<std::string>animation; |
|
|
|
|
Animate2D::AnimationState internal_animState; |
|
|
|
|
Key lastReleasedMovementKey; |
|
|
|
|
void Update(float fElapsedTime); |
|
|
|
|
void AddAnimation(std::string state); |
|
|
|
|
std::vector<Buff>buffList; |
|
|
|
|
CastInfo castInfo={"",0}; |
|
|
|
@ -65,7 +64,6 @@ protected: |
|
|
|
|
const float MAGIC_ATTACK_COOLDOWN="Wizard.Auto Attack.Cooldown"_F; |
|
|
|
|
float ARROW_ATTACK_COOLDOWN="Ranger.Auto Attack.Cooldown"_F; |
|
|
|
|
void SetSwordSwingTimer(float val); |
|
|
|
|
void SetState(State::State newState); |
|
|
|
|
void SetFacingDirection(Key direction); |
|
|
|
|
void SetLastReleasedMovementKey(Key k); |
|
|
|
|
void Spin(float duration,float spinSpd); |
|
|
|
@ -122,6 +120,7 @@ public: |
|
|
|
|
Key GetFacingDirection(); |
|
|
|
|
vf2d GetVelocity(); |
|
|
|
|
bool HasIframes(); |
|
|
|
|
void Update(float fElapsedTime); |
|
|
|
|
void UpdateWalkingAnimation(Key direction); |
|
|
|
|
void UpdateIdleAnimation(Key direction); |
|
|
|
|
//The range is the search range in tiles.
|
|
|
|
@ -140,6 +139,7 @@ public: |
|
|
|
|
void SetZ(float z); |
|
|
|
|
//Returns true if the move was valid and successful.
|
|
|
|
|
bool SetPos(vf2d pos); |
|
|
|
|
void SetState(State::State newState); |
|
|
|
|
|
|
|
|
|
void AddBuff(BuffType type,float duration,float intensity); |
|
|
|
|
std::vector<Buff>GetBuffs(BuffType buff); |
|
|
|
|