From 790181fec3c9bc5ca91e9f24fe417c63a1c4f50a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Babi=C4=8D?= Date: Thu, 17 Mar 2016 20:41:37 +0100 Subject: [PATCH] Implement Map.getTileByPosition and do some refactoring --- .idea/codeStyleSettings.xml | 6 +- .idea/workspace.xml | 164 ++++++++++++++++++---------------- index.php | 22 +++-- src/Coffee/Map.php | 35 ++++++-- src/Coffee/Position.php | 26 +++--- src/Coffee/Tile.php | 16 ++-- tests/Coffee/MapTest.php | 23 ++++- tests/Coffee/PositionTest.php | 12 +-- tests/Coffee/TileTest.php | 2 +- 9 files changed, 182 insertions(+), 124 deletions(-) diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml index c4c9543..7fb8ed0 100644 --- a/.idea/codeStyleSettings.xml +++ b/.idea/codeStyleSettings.xml @@ -2,7 +2,11 @@ diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d5ae339..3e14d4c 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,11 +1,14 @@ - + + + + @@ -30,12 +33,12 @@ - - + + - - + + @@ -44,7 +47,7 @@ - + @@ -54,7 +57,7 @@ - + @@ -64,8 +67,8 @@ - - + + @@ -74,18 +77,18 @@ - - + + - + - - + + @@ -94,8 +97,8 @@ - - + + @@ -104,7 +107,7 @@ - + @@ -114,8 +117,8 @@ - - + + @@ -162,13 +165,13 @@ @@ -413,18 +416,18 @@ - + - + - + - + - + @@ -649,38 +652,44 @@ - + - + - + - + - + - + - + - + - + - + @@ -688,17 +697,16 @@ + - + - - - - - + + + @@ -707,9 +715,13 @@ + + + +