aboutsummaryrefslogtreecommitdiff
path: root/src/docs/class.puml
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/class.puml')
-rw-r--r--src/docs/class.puml33
1 files changed, 18 insertions, 15 deletions
diff --git a/src/docs/class.puml b/src/docs/class.puml
index f4766db..7a00135 100644
--- a/src/docs/class.puml
+++ b/src/docs/class.puml
@@ -6,15 +6,6 @@ package utils {
6 class PathFinder { 6 class PathFinder {
7 static List<Vec2> findPath(Board, TileVec2, TileVec2) 7 static List<Vec2> findPath(Board, TileVec2, TileVec2)
8 } 8 }
9
10 class TileVec2 {
11 static final int TILE_DIM
12
13 Vec2
14 TileVec2(Vec2)
15 Vec2 toPixelPos()
16 static TileVec2 fromPixelPos(Vec2)
17 }
18} 9}
19 10
20package viewer { 11package viewer {
@@ -76,7 +67,9 @@ package event {
76 67
77package board { 68package board {
78 class Board { 69 class Board {
79 BlockType[][] 70 Board(width, height)
71 BlockType getBlockTypeAt(TileVec2)
72 BlockType setBlockTypeAt(TileVec2, BlockType)
80 } 73 }
81 74
82 class BoardParser { 75 class BoardParser {
@@ -91,15 +84,25 @@ package board {
91 static Board worldToBoard(List<Block>) 84 static Board worldToBoard(List<Block>)
92 static List<Block> boardToWorld(Board) 85 static List<Block> boardToWorld(Board)
93 } 86 }
87
88 class TileVec2 {
89 static final int TILE_DIM
90 static TileVec2 fromVec2(Vec2)
91
92 Vec2
93 TileVec2(col, row)
94 Vec2 toPixelPos()
95 }
94} 96}
95 97
96package model { 98package model {
97 enum BlockType { 99 enum BlockType {
98 Wall 100 FREE
99 Trash 101 WALL
100 Garbage 102 TRASH
101 Robot 103 GARBAGE
102 Bomb 104 ROBOT
105 BOMB
103 } 106 }
104 107
105 class BlockFactory { 108 class BlockFactory {