Commit graph

86 commits

Author SHA1 Message Date
fd3ea392ac DELEME 2015-09-02 17:52:13 +02:00
2841c606c5 DELEME 2015-09-01 17:39:39 +02:00
5637bf4e5c DELEME 2015-08-31 17:11:11 +02:00
4df71e46a1 DELEME4 2015-08-28 17:31:17 +02:00
eecd1d1649 New salted id system 2015-08-28 17:26:09 +02:00
a7dd322da6 DELEME2 2015-08-27 17:12:55 +02:00
9ccbe880a4 DELEME 2015-08-26 18:08:05 +02:00
163d4e0e13 Add operator+= and -= to Viewport to allow panning. 2015-08-26 00:00:43 +02:00
71a6ddccdd Add an accumulation type. 2015-08-25 22:16:57 +02:00
6a6dfd9225 Fix some asserts, get rid of subtiles params. 2015-08-25 20:53:35 +02:00
ccd00df6d8 Don't pass the map size from the c++ code anymore. 2015-08-25 15:44:28 +02:00
f13d38bda9 Wrong assertion fixed 2015-08-25 14:31:42 +02:00
490009df47 Allow block_offset to be passed down. 2015-08-25 00:30:33 +02:00
f073bb5793 Remove deprecated functions.
This also fixes the circular inclusion problem between
TileIterator and PixelConv.
2015-08-20 19:24:02 +02:00
5a9d497183 Add pick_tile() method (not implemented yet). 2015-08-20 19:11:12 +02:00
e001f46dbe Add GPL3 licence. 2015-08-19 21:06:58 +02:00
0bb92413db TileIterator returns Tile<T> instead of just T. 2015-08-19 00:15:31 +02:00
ae05910316 Add pixel_position() to tile iterator. 2015-08-18 00:03:27 +02:00
a1ae683601 Store tile size in PixelConv instead of taking it in to_pixel. 2015-08-18 00:00:59 +02:00
e8584d87fa Merge HalfDiamond into Diamond, store ctor parameters.
Also added unit test.
2015-08-17 23:14:08 +02:00
ad127b8fbe Deprecate free functions to convert to screen coordinates. 2015-08-17 23:09:21 +02:00
83963e67ea Start implementing pixel conversions as classes. WiP. 2015-08-17 17:36:45 +02:00
5cea116b8f Rename tilecoordinates to pixelconv and move content to dk. 2015-08-17 15:39:28 +02:00
e2273e0d14 Change Vec dimension type to uint32_t. 2015-08-17 13:37:17 +02:00
4d8cbc4085 Fix test names, fix build in tilecoordinates.
I'm not sure the functions will still return the correct screen
coordinates. For now it builds, I will add tests in the next commits.
2015-08-17 13:36:47 +02:00
2b2d0a3219 Warning fix. 2015-08-17 10:45:20 +02:00
42da727a67 Add unit test for AsciiMapSource and fix issues. 2015-08-17 00:41:21 +02:00
78312526ac Get game to build again. 2015-08-16 22:29:34 +02:00
b01fad0314 Buildfix in tileiterator + unit test. 2015-08-16 20:33:44 +02:00
cb9e4bce19 Add to_index() function to convert coords to scalar. 2015-08-16 20:32:58 +02:00
a1996b2d75 Add implementation for operator-= 2015-08-16 16:34:32 +02:00
28fc001540 Get += operator to work with negative numbers. 2015-08-15 23:52:37 +02:00
e3345c5cca Finish implementing operator+= for positive offsets. 2015-08-14 22:13:14 +02:00
dbdc814049 Try mplementing operator+= (broken but almost there). 2015-08-14 18:18:43 +02:00
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