-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverview.plantuml
52 lines (44 loc) · 885 Bytes
/
overview.plantuml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@startuml
' View at http://www.plantuml.com/plantuml/
enum PipeType {
Straight,
Turn,
LeftRight,
UnderOver,
XIntersection,
TIntersection
}
class Pipe {
- pipeDisplay : GameObject
+ ReduceLifetime() : bool
}
class Tile {
- pipe : Pipe
+ BuildPipe(type : PipeType) : bool
}
class Playboard {
- tiles : Tile*
- inventory : Inventory
}
class Inventory {
- pipeStraightCount : int
- pipeTurnCount : int
- pipeLeftRightCount : int
- pipeUnderOverCount : int
- pipeXIntersectionCount : int
- pipeTIntersectionCount : int
}
class GameManager {
- inventory : Inventory
- buildNext : PipeType
- Update() : void
+ SetBuildNext(type : PipeType) : bool
}
note bottom of GameManager
In Update, wenn Mouse down, Raycast either hit pipe or tile, either build or destroy
GameManage stores what the user will build next
end note
Playboard -> Tile
Tile -> Pipe
Playboard -down-> Inventory
@enduml