From 4789ebb11407eb9402c385f3cc6fa242d91214c2 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 24 Jul 2006 00:13:24 +0000 Subject: Implemented caching of spritesets, including a lot of cleanups to the new animation system. Action now refers to the Spriteset directly and AnimatedSprite refers to the current Action directly instead of using the std::map with a std::string constantly. Some methods and parameters are marked as const. The READ_PROP macro was replaced by static methods. Warnings are logged when unnamed actions are defined or when actions refer to undefined imagesets. Code is more tolerant towards missing actions. --- src/tileset.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tileset.h') diff --git a/src/tileset.h b/src/tileset.h index 5fa4ade1..27bc28c3 100644 --- a/src/tileset.h +++ b/src/tileset.h @@ -24,7 +24,7 @@ #ifndef _TMW_TILESET_H_ #define _TMW_TILESET_H_ -#include "graphic/spriteset.h" +#include "resources/spriteset.h" /** * A tileset, which is basically just a spriteset but it stores a firstgid. @@ -36,7 +36,7 @@ class Tileset : public Spriteset * Constructor. */ Tileset(Image *img, int w, int h, int firstGid): - Spriteset(img, w, h), + Spriteset("", img, w, h), mFirstGid(firstGid) { } -- cgit v1.2.3-70-g09d2