Commit graph

22 commits

Author SHA1 Message Date
King_DuckZ
2d61a84c13 AsciiMapReader works on raw data, so it needs to know
the map size (2D only) from the outside.
2015-05-21 09:52:45 +02:00
King_DuckZ
701366bf86 Replace size_t with uint32_t for template parameter D
This fixes the build on 64-bit machines, where size_t and uint32_t from vector.hpp would mismatch.
2015-01-08 12:20:17 +01:00
King_DuckZ
7a8ffe2060 Public header files moved into the doorkeeper subdirectory 2015-01-06 16:38:52 +01:00
King_DuckZ
90d759c696 Enable iteration over subtiles.
This feature has not been tested yet. I only made sure the regular iteration still works.
2015-01-06 16:00:24 +01:00
King_DuckZ
2e0f59f189 Refactoring in map reading code - part 2/2 2015-01-05 18:01:57 +01:00
King_DuckZ
436d738620 Refactoring in map reading code - part 1/2
Fixed a bug when iterating over a view that was smaller than the map size
Added a class to abstract map readers
2015-01-05 18:01:28 +01:00
King_DuckZ
a6afd2eb54 Add typedefs for const_iterator.
TileIterator needed to be modified in order to support const values.
2014-12-30 17:53:15 +01:00
King_DuckZ
3185505484 Debug code that slipped into the previous commit 2014-12-29 16:19:30 +01:00
King_DuckZ
c9381a4585 Advancing in the design of Tyler.
Iterating through tiles in viewports now works fine.
You can pass in a custom device as the data source for the tile map.
2014-12-29 16:17:59 +01:00
King_DuckZ
d5c199f3b9 Fix in asciimapsource 2014-12-29 16:14:36 +01:00
King_DuckZ
931acf3293 2D ascii tile loader refactored out of TileStreamer.
This also adds a static lib part to DoorKeeper that will only contain helper functions.
2014-12-22 16:59:09 +01:00
King_DuckZ
59801755cc Some reordering in the directory.
This breaks the build.
2014-12-22 16:56:17 +01:00
King_DuckZ
7bf96669a5 I can iterate through tiles using viewports. 2014-12-14 16:28:42 +01:00
King_DuckZ
e17f77ae05 Spirit parser to load simple 2D maps. 2014-12-13 04:50:23 +01:00
King_DuckZ
bd241bbbd2 buildfix 2014-12-13 00:22:50 +01:00
King_DuckZ
0da607ab3d Progressing with the implementation 2014-12-12 20:04:48 +01:00
King_DuckZ
9086de8dae Advancing with the implementation.
The iterator is not included anywhere yet so it's completely untested.
Next step is to define the relationship between views and layers, so iterators can be put
into the class that will be responsible to spawn them.
2014-12-11 23:58:52 +01:00
King_DuckZ
1e5f4fd2f0 Adding the concept of layers.
Deferring the data loading task to lower level classes.
test_tiler removed as Tyler won't require the user to derive from it anymore.
2014-12-09 23:53:09 +01:00
King_DuckZ
369caf503d Typedef for the inner type of the vector.
Cloonel Jump doesn't have this but it's a minor change
and I should really add it there as well.
2014-12-09 23:51:19 +01:00
King_DuckZ
e63aebe6e1 Some changes and the build is fine again.
This is a test version, design is still in progress.
2014-12-09 22:30:06 +01:00
King_DuckZ
f9e249a972 Buildfix and reorder of files 2014-09-02 16:41:21 +02:00
King_DuckZ
4908096a44 First import 2014-08-27 16:03:56 +02:00