30 #include "render/graphics.h"
41 const std::string &animation,
51 mAnimationX(mRectX + (mRectSize - (mSprite !=
nullptr ?
52 mSprite->getWidth() : 0)) / 2),
53 mAnimationY(mRectY + (mRectSize - (mSprite !=
nullptr ?
54 mSprite->getHeight() : 0)) / 2)
61 reportAlways(
"Skill %d/%d casting animation '%s' load failed",
75 const int offsetY)
const
#define reportAlways(...)
void drawRescaled(Graphics *const graphics, const int posX, const int posY, const int dx, const int dy) const
bool isTerminated() const
bool update(const int time)
void update(const int time)
CastingEffect(const int skillId, const int skillLevel, const std::string &animation, const int x, const int y, const int range)
bool isTerminated() const
void draw(Graphics *const graphics, const int offsetX, const int offsetY) const
virtual void setColor(const Color &color)
virtual void drawRectangle(const Rect &rectangle)=0
const Color & getColorWithAlpha(const UserColorIdT type)
static const int mapTileSize
UserPalette * userPalette