#include <cassert>
#include <stdexcept>
-#include "app/globals.h"
-#include "app/setup.h"
#include "sprite.h"
#include "video/drawing_context.h"
}
void
-Sprite::draw(DrawingContext& context, const Vector& pos, int layer,
- Uint32 drawing_effect)
+Sprite::draw(DrawingContext& context, const Vector& pos, int layer)
{
assert(action != 0);
update();
else
context.draw_surface(action->surfaces[(int)frame],
pos - Vector(action->x_offset, action->y_offset),
- layer + action->z_order, drawing_effect);
+ layer + action->z_order);
}
void
Sprite::draw_part(DrawingContext& context, const Vector& source,
- const Vector& size, const Vector& pos, int layer, Uint32 drawing_effect)
+ const Vector& size, const Vector& pos, int layer)
{
assert(action != 0);
update();
else
context.draw_surface_part(action->surfaces[(int)frame], source, size,
pos - Vector(action->x_offset, action->y_offset),
- layer + action->z_order, drawing_effect);
+ layer + action->z_order);
}
int