projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implemented a new object factory mechanism which is now really independent of the...
[supertux.git]
/
src
/
object
/
tilemap.cpp
diff --git
a/src/object/tilemap.cpp
b/src/object/tilemap.cpp
index
4046813
..
fb0cb63
100644
(file)
--- a/
src/object/tilemap.cpp
+++ b/
src/object/tilemap.cpp
@@
-33,6
+33,7
@@
#include "app/globals.h"
#include "lisp/lisp.h"
#include "lisp/writer.h"
#include "app/globals.h"
#include "lisp/lisp.h"
#include "lisp/writer.h"
+#include "object_factory.h"
TileMap::TileMap()
: solid(false), speed(1), width(0), height(0), layer(LAYER_TILES),
TileMap::TileMap()
: solid(false), speed(1), width(0), height(0), layer(LAYER_TILES),
@@
-277,3
+278,5
@@
TileMap::change_at(const Vector& pos, uint32_t newtile)
{
change(int(pos.x)/32, int(pos.y)/32, newtile);
}
{
change(int(pos.x)/32, int(pos.y)/32, newtile);
}
+
+IMPLEMENT_FACTORY(TileMap, "tilemap");