-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1.puml
More file actions
101 lines (81 loc) · 2.04 KB
/
1.puml
File metadata and controls
101 lines (81 loc) · 2.04 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
@startuml
class org.nomanspace.Herbivore {
- {static} int DEFAULT_HP
- {static} int DEFAULT_SPEED
+ void makeMove()
~ String getAvatar()
}
class org.nomanspace.Rock {
~ String getAvatar()
}
abstract class org.nomanspace.Creature {
- int hp
- int speed
+ int getHp()
+ int getSpeed()
+ {abstract}void makeMove()
}
class org.nomanspace.Map {
- java.util.Map<String,Entity> cellMap
- {static} int cellCount
- int rows
- int cols
+ {static} Map gameFieldGenerate()
- java.util.Map<String,Entity> setGameSize(Integer)
- void generateCell()
+ void addGameEntity(Integer,Integer,Entity)
+ Entity getGameEntity(Integer,Integer)
+ void removeEntity(Integer,Integer)
}
class org.nomanspace.ImageRender {
+ void printField(Map)
}
abstract class org.nomanspace.Entity {
~ {abstract}String getAvatar()
}
class org.nomanspace.FieldChecker {
+ {static} void main(String[])
+ {static} int getValidNumber(Scanner)
+ {static} List<String> getCombinations(int)
+ {static} void addPerfectSquareCombinations(int,List<String>)
+ {static} void addRectangleCombinations(int,List<String>)
+ {static} void findRectangleCombinations(int,List<String>)
+ {static} int isPerfectSquare(int)
+ {static} boolean isRectangle(int)
+ {static} int findClosestNumber(int)
}
class org.nomanspace.Main {
+ {static} void main(String[])
}
class org.nomanspace.Grass {
~ String getAvatar()
}
class org.nomanspace.Config {
~ int rows
~ int cols
}
interface org.nomanspace.Removable {
+ void deleteEntity()
}
class org.nomanspace.Tree {
~ String getAvatar()
}
class org.nomanspace.Moves {
+ void getCoordinate(Entity)
+ void moveCreature(Map,Entity)
}
class org.nomanspace.Predator {
- {static} int DEFAULT_HP
- {static} int DEFAULT_SPEED
- int damage
+ int damageDeal()
+ void makeMove()
~ String getAvatar()
}
org.nomanspace.Creature <|-- org.nomanspace.Herbivore
org.nomanspace.Entity <|-- org.nomanspace.Rock
org.nomanspace.Entity <|-- org.nomanspace.Creature
org.nomanspace.Entity <|-- org.nomanspace.Grass
org.nomanspace.Entity <|-- org.nomanspace.Tree
org.nomanspace.Creature <|-- org.nomanspace.Predator
@enduml