Commit graph

20 commits

Author SHA1 Message Date
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
d9ca60019f Use the supplied main as explained in the docs. 2015-08-17 17:46:26 +02:00
5cea116b8f Rename tilecoordinates to pixelconv and move content to dk. 2015-08-17 15:39:28 +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
42da727a67 Add unit test for AsciiMapSource and fix issues. 2015-08-17 00:41:21 +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
9ea9743e95 Don't get confused with the wrong overload when passed a Vec. 2015-08-14 12:56:40 +02:00
b2095603d1 Add operators for scalar types and fix wrong operator<= 2015-08-14 12:32:52 +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
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