diff options
author | Adam NAILI | 2018-01-14 15:22:08 +0100 |
---|---|---|
committer | Adam NAILI | 2018-01-14 15:22:08 +0100 |
commit | b81db47a693f69f522ad0e31fd2354bed1d2ea00 (patch) | |
tree | 37bf40df2728216d4263d1b9825a5069568627d3 /src/docs | |
parent | c639cf1a706f46372acef471eecd652153ac76be (diff) | |
parent | c9c4f27367039c315c6137cbea1099df3716206f (diff) | |
download | wallj-b81db47a693f69f522ad0e31fd2354bed1d2ea00.tar.gz |
Merge branch 'master' of https://github.com/pacien/upem-java-wallj
Diffstat (limited to 'src/docs')
-rw-r--r-- | src/docs/class.puml | 8 | ||||
-rw-r--r-- | src/docs/user.md | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/docs/class.puml b/src/docs/class.puml index 50e55fb..6a527ae 100644 --- a/src/docs/class.puml +++ b/src/docs/class.puml | |||
@@ -3,10 +3,6 @@ | |||
3 | skinparam linetype ortho | 3 | skinparam linetype ortho |
4 | 4 | ||
5 | package utils { | 5 | package utils { |
6 | class PathFinder { | ||
7 | static List<Vec2> findPath(Board, TileVec2, TileVec2) | ||
8 | } | ||
9 | |||
10 | class Matrix { | 6 | class Matrix { |
11 | static int getWidth(...) | 7 | static int getWidth(...) |
12 | static int getHeight(...) | 8 | static int getHeight(...) |
@@ -129,6 +125,10 @@ package board { | |||
129 | TileVec2(col, row) | 125 | TileVec2(col, row) |
130 | Vec2 toPixelPos() | 126 | Vec2 toPixelPos() |
131 | } | 127 | } |
128 | |||
129 | class PathFinder { | ||
130 | static List<TileVec2> findPath(Board, TileVec2, TileVec2) | ||
131 | } | ||
132 | } | 132 | } |
133 | 133 | ||
134 | package model { | 134 | package model { |
diff --git a/src/docs/user.md b/src/docs/user.md index 96303ff..bb24c53 100644 --- a/src/docs/user.md +++ b/src/docs/user.md | |||
@@ -106,13 +106,15 @@ A world is defined as valid if its blocks fulfill the following criteria: | |||
106 | 106 | ||
107 | * The bounding box of the defined world must be made of bounding blocks. | 107 | * The bounding box of the defined world must be made of bounding blocks. |
108 | * The interior space formed by bounding blocks must be unique and simple. | 108 | * The interior space formed by bounding blocks must be unique and simple. |
109 | * Reachable blocks are either be adjacent or belong to the interior space. | 109 | * Reachable blocks are either adjacent or belong to the interior space. |
110 | * The world must contain at least one trash can and one garbage block. | 110 | * The world must contain at least one trash can and one garbage block. |
111 | 111 | ||
112 | Only valid worlds can be loaded into the game. | 112 | Only valid worlds can be loaded into the game. |
113 | 113 | ||
114 | The validity of a world may not guaranty the solvability of the puzzle. | 114 | The validity of a world may not guaranty the solvability of the puzzle. |
115 | 115 | ||
116 | \newpage | ||
117 | |||
116 | __Example of invalid world definition:__ | 118 | __Example of invalid world definition:__ |
117 | ``` | 119 | ``` |
118 | WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW | 120 | WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW |