-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent.uml
95 lines (80 loc) · 1.2 KB
/
component.uml
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
@startuml
class Item{
-- Variable --
-- Function --
}
class Actor{
-- Variable --
int HP
int STR
int DEF
...
list[Item] items
}
class Chip{
-- Variable --
enum terrain
list[Item] items
}
class Map{
-- Variable --
list[Chip] map
int id_
str trainsition_target
-- Function --
set_transition_target
set_items
set_terrain
add_item
}
class NPC{
-- Variable --
-- Function --
select_act
}
class Player{
-- Variable --
-- Function --
}
class ActorController{
-- Variables --
list[Actor] actors
-- Function --
get_act
get_next_actor
add_actor
remove_actor
}
class World{
-- Variable --
list[Map] maps
list[ActorController] actor_controllers
-- Function --
transit_map
}
class Game{
-- Variable --
World world
long int time
-- Function --
tick_world
}
class GUI{
-- Variable --
-- Function --
draw_game_view
get_input
tick_game
}
Item --* Actor
Item --* Chip
Actor --* NPC
Actor --* Player
NPC --* ActorController
Player --* ActorController
Chip --* Map
ActorController -* World
Map --* World
World --* Game
Game --* GUI
@enduml