a7181f7a9b
Build fix - cast index to size_t.
2015-08-14 12:31:13 +02:00
8f77af0ac1
Replace assert with DK_ASSERT.
2015-08-14 12:30:27 +02:00
cab7c296f1
Replace cloonel jump vector with vectorwrapper.
...
It's missing operators, so the build is broken.
2015-07-30 16:12:12 +02:00
b3bf60fff2
Remove old vector class from clooneljump
2015-07-30 11:43:06 +02:00
ba82a2e066
Fix operator++
2015-07-30 02:04:02 +02:00
971cd54688
Fix vector comparison and add unit test.
2015-07-30 01:48:29 +02:00
6aa4d15381
Add tilecoords and unit test.
...
Disable most projects because the build is broken. A lot.
2015-07-30 01:18:19 +02:00
5b027914d5
Add distance typedef.
2015-07-30 01:16:33 +02:00
d815b394ea
Move code that doesn't need to be templated to another class.
2015-06-28 19:11:21 +02:00
9f9ab65ff3
Add a way to use typename without relying on __PRETTY_FUNCTION__
...
This is now enabled by default in doorkeeper.
2015-06-28 01:23:01 +02:00
7140ee6b38
Buildfix on gcc 4.8
2015-06-24 23:05:33 +02:00
f1bcf8674d
Implement the type_name() function. Only tested on gcc 5.1
...
Add Sprout library.
2015-06-24 22:13:48 +02:00
6a39b82e5e
Fix the build time implementation of tiger hash.
...
Result for "message digest", "abc" and "" are correct.
2015-06-23 01:29:40 +02:00
0dada705aa
Build time implementation of tiger hash; result is wrong WiP
2015-06-21 02:42:52 +02:00
dba88117e4
Use build time strings for pretty function names if supported.
...
This doesn't really do much until I have build time hashing.
2015-06-09 00:00:41 +02:00
fd8a1cbabc
Add a hash mechanism to BaseMapSource.
...
This is needed to recognize what type of tiles a layer contains.
Client code has to fill in a map of hash => add_layer<T>() pointers.
As a layer is loaded, the correct add_layer<T>() is called based
on the hash saved with the layer itself.
2015-06-07 03:57:18 +02:00
d21a567fb7
Progress implementing TylerMapSource.
2015-06-06 14:37:54 +02:00
708ae975dc
Missing implementation of BaseMapSource::fetch().
2015-06-06 14:30:16 +02:00
f54da89531
Uneeded property.
2015-06-06 14:23:26 +02:00
ab6ef6c338
BaseMapSource doesn't need to know T. Only fetch() will need that.
2015-06-06 14:23:21 +02:00
49f7d15379
Vector doesn't need to be told the type every time.
2015-06-06 14:16:35 +02:00
12db1d9638
Clean up and handle endianness.
2015-06-04 20:59:07 +02:00
f1a6cac62b
Start implementing the tyler map loader.
...
Untented and incomplete.
2015-05-29 00:15:06 +02:00
72b400ac0c
Warning fix on clang.
2015-05-28 00:25:06 +02:00
a82e8c16f6
Helper recursive map loader.
...
Recursion not tested since the file format is not ready yet, sorry.
2015-05-28 00:20:40 +02:00
ea71478948
Refactoring in the data loading classes.
...
Lots of junk code removed, the architecture is now much simpler.
AsciiMapSource works as before.
2015-05-25 01:37:20 +02:00
1c5cb6299c
Show diamond-shaped tiles on a larger map.
2015-05-24 17:19:10 +02:00
edbb3fe1d8
Crash fix when going from a smaller view to a larger one.
2015-05-24 17:18:46 +02:00
b2eae08d02
New code to calculate the tiles position esp. in 2D.
2015-05-24 17:17:53 +02:00
20a7e0450d
Buildfix.
...
Don't use surfaces, SDL2_image lets you create a texture
directly.
This is missing the graphic files that the code seeks to
load so it will not run.
2015-05-21 18:14:07 +02:00
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
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
7a8ffe2060
Public header files moved into the doorkeeper subdirectory
2015-01-06 16:38:52 +01:00