-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKlassendiagramm.ncp
334 lines (334 loc) · 14.3 KB
/
Klassendiagramm.ncp
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
<Project>
<Name>gdp</Name>
<ProjectItem type="NClass.DiagramEditor.ClassDiagram.Diagram" assembly="NClass.DiagramEditor, Version=2.4.1823.0, Culture=neutral, PublicKeyToken=null">
<Name>racetrack</Name>
<Language>Java</Language>
<Entities>
<Entity type="Class">
<Name>GUI</Name>
<Access>Public</Access>
<Location left="113" top="54" />
<Size width="162" height="216" />
<Collapsed>False</Collapsed>
<Modifier>None</Modifier>
</Entity>
<Entity type="Class">
<Name>Game</Name>
<Access>Public</Access>
<Location left="312" top="589" />
<Size width="315" height="281" />
<Collapsed>False</Collapsed>
<Member type="Field">private final Map map</Member>
<Member type="Field">private final RuleSet rule</Member>
<Member type="Field">private final List<Player> players</Member>
<Member type="Constructor">public Game(Map map, RuleSet rule, Player[] players)</Member>
<Member type="Method">public Map getMap()</Member>
<Member type="Method">public RuleSet getRule()</Member>
<Member type="Method">public List<Player> getPlayers()</Member>
<Member type="Method">public State getState()</Member>
<Member type="Method">public void pause()</Member>
<Member type="Method">public void run()</Member>
<Member type="Method">public void registerListener(EventListener listener)</Member>
<Modifier>None</Modifier>
</Entity>
<Entity type="Class">
<Name>Player</Name>
<Access>Public</Access>
<Location left="519" top="278" />
<Size width="345" height="247" />
<Collapsed>False</Collapsed>
<Member type="Method">public abstract Vec2D turn()</Member>
<Member type="Method">public final Game getGame()</Member>
<Member type="Method">public final Vec2D getPosition()</Member>
<Member type="Method">public final Vec2D getVelocity()</Member>
<Member type="Method">public final List<Vec2D> getTurnHistory()</Member>
<Member type="Method">public final void setPosition(Vec2D position)</Member>
<Member type="Method">public final void setVelocity(Vec2D velocity)</Member>
<Member type="Method">protected void onLoad()</Member>
<Member type="Method">protected void onUpdatePosition(Point oldPos, Point newPoint)</Member>
<Member type="Method">protected void onUpdateVelocity(Vec2D oldVelocity, Vec2D newVelocity)</Member>
<Modifier>Abstract</Modifier>
</Entity>
<Entity type="Class">
<Name>Bot</Name>
<Access>Public</Access>
<Location left="954" top="358" />
<Size width="163" height="77" />
<Collapsed>False</Collapsed>
<Modifier>None</Modifier>
</Entity>
<Entity type="Class">
<Name>HumanPlayer</Name>
<Access>Public</Access>
<Location left="312" top="54" />
<Size width="163" height="77" />
<Collapsed>False</Collapsed>
<Modifier>None</Modifier>
</Entity>
<Entity type="Class">
<Name>Map</Name>
<Access>Public</Access>
<Location left="48" top="589" />
<Size width="192" height="162" />
<Collapsed>False</Collapsed>
<Member type="Method">public boolean isTrack(Point point)</Member>
<Member type="Method">public PointType getPointType(Point point)</Member>
<Member type="Method">public Vec2D getSize()</Member>
<Member type="Method">public Image getImage()</Member>
<Member type="Method">public Turn getTurnResult(Point start, Point end)</Member>
<Modifier>None</Modifier>
</Entity>
<Entity type="Class">
<Name>MapGenerator</Name>
<Access>Public</Access>
<Location left="746" top="784" />
<Size width="174" height="94" />
<Collapsed>False</Collapsed>
<Member type="Method">public Map generateMap(int seed, int numberPlayers, Difficulty difficulty)</Member>
<Modifier>None</Modifier>
</Entity>
<Entity type="Class">
<Name>RuleSet</Name>
<Access>Public</Access>
<Location left="88" top="967" />
<Size width="708" height="247" />
<Collapsed>False</Collapsed>
<Member type="Field">private final EnvironmentCollisionRule environmentCollisionRule</Member>
<Member type="Field">private final PlayerCollisionRule playerCollisionRule</Member>
<Member type="Field">private final TurnRule turnRule</Member>
<Member type="Field">private final VictoryRule victoryRule</Member>
<Member type="Constructor">public RuleSet(EnvironmentCollisionRule envCollisionRule, PlayerCollisionRule playerCollisionRule, TurnRule turnRule, VictoryRule rule)</Member>
<Member type="Method">public boolean getTurnResult(Player player, Point destination)</Member>
<Member type="Method">public boolean getTurnResult(Point start, Point destination)</Member>
<Member type="Method">public Turn[] getAllowedTurns(Player player)</Member>
<Member type="Method">public Turn[] getAllowedTurns(Point position, Vec2D velocity)</Member>
<Member type="Method">public Player getWinner()</Member>
<Modifier>None</Modifier>
</Entity>
<Entity type="Class">
<Name>Vec2D</Name>
<Access>Public</Access>
<Location left="788" top="54" />
<Size width="189" height="196" />
<Collapsed>False</Collapsed>
<Member type="Field">public final int x</Member>
<Member type="Field">public final int y</Member>
<Member type="Constructor">public Vec2D(int x, int y)</Member>
<Member type="Method">public Vec2D add(Vec2D summand)</Member>
<Member type="Method">public Vec2D sub(Vec2D subtrahend)</Member>
<Member type="Method">public Vec2D mul(int factor)</Member>
<Member type="Method">public Vec2D negate()</Member>
<Modifier>None</Modifier>
</Entity>
<Entity type="Class">
<Name>BounceEnvCollision</Name>
<Access>Public</Access>
<Location left="389" top="1690" />
<Size width="162" height="216" />
<Collapsed>False</Collapsed>
<Modifier>None</Modifier>
</Entity>
<Entity type="Interface">
<Name>EnvironmentCollisionRule</Name>
<Access>Public</Access>
<Location left="88" top="1481" />
<Size width="244" height="94" />
<Collapsed>False</Collapsed>
<Member type="Method">void handleCollision(PlayerInfo info)</Member>
</Entity>
<Entity type="Interface">
<Name>PlayerCollisionRule</Name>
<Access>Public</Access>
<Location left="282" top="1268" />
<Size width="261" height="94" />
<Collapsed>False</Collapsed>
<Member type="Method">void handleCollision(PlayerInfo actor, PlayerInfo victim)</Member>
</Entity>
<Entity type="Interface">
<Name>TurnRule</Name>
<Access>Public</Access>
<Location left="631" top="1268" />
<Size width="303" height="145" />
<Collapsed>False</Collapsed>
<Member type="Method">public Point[] getAllowedTurns(Player player)</Member>
<Member type="Method">public Point[] getAllowedTurns(Point position, Vec2D velocity)</Member>
<Member type="Method">public boolean isTurnAllowed(Player player, Vec2D newPosition)</Member>
<Member type="Method">public boolean isTurnAllowed()</Member>
</Entity>
<Entity type="Interface">
<Name>VictoryRule</Name>
<Access>Public</Access>
<Location left="505" top="1481" />
<Size width="163" height="94" />
<Collapsed>False</Collapsed>
<Member type="Method">public Player getWinner()</Member>
</Entity>
<Entity type="Comment">
<Text>Bsp:</Text>
<Location left="418" top="1785" />
<Size width="102" height="50" />
</Entity>
<Entity type="Enum">
<Name>State</Name>
<Access>Public</Access>
<Location left="196" top="451" />
<Size width="163" height="112" />
<Collapsed>False</Collapsed>
<Value>RUNNING</Value>
<Value>PAUSED</Value>
<Value>FINISHED</Value>
</Entity>
<Entity type="Enum">
<Name>PointType</Name>
<Access>Public</Access>
<Location left="88" top="812" />
<Size width="163" height="129" />
<Collapsed>False</Collapsed>
<Value>NONE</Value>
<Value>TRACK</Value>
<Value>START</Value>
<Value>FINISH</Value>
</Entity>
<Entity type="Interface">
<Name>EventListener</Name>
<Access>Public</Access>
<Location left="703" top="589" />
<Size width="480" height="162" />
<Collapsed>False</Collapsed>
<Member type="Method">public void onGameStart(boolean firstTime)</Member>
<Member type="Method">public void onGamePause()</Member>
<Member type="Method">public void onGameFinished()</Member>
<Member type="Method">public void onPlayerChooseStart(Player player)</Member>
<Member type="Method">public void onPlayerTurn(Player player, Point startPoint, Point endPoint, Point destinationPoint)</Member>
</Entity>
<Entity type="Enum">
<Name>Difficulty</Name>
<Access>Public</Access>
<Location left="852" top="934" />
<Size width="163" height="112" />
<Collapsed>False</Collapsed>
<Value>EASY</Value>
<Value>NORMAL</Value>
<Value>HARD</Value>
</Entity>
</Entities>
<Relationships>
<Relationship type="Generalization" first="4" second="2">
<StartOrientation>Vertical</StartOrientation>
<EndOrientation>Horizontal</EndOrientation>
<BendPoint relativeToStartShape="True">
<X>383</X>
<Y>156</Y>
</BendPoint>
<BendPoint relativeToStartShape="False">
<X>494</X>
<Y>343</Y>
</BendPoint>
</Relationship>
<Relationship type="Association" first="1" second="7">
<Label>
</Label>
<StartOrientation>Vertical</StartOrientation>
<EndOrientation>Vertical</EndOrientation>
<Direction>Unidirectional</Direction>
<AssociationType>Association</AssociationType>
</Relationship>
<Relationship type="Association" first="0" second="1">
<Label>
</Label>
<StartOrientation>Vertical</StartOrientation>
<EndOrientation>Vertical</EndOrientation>
<BendPoint relativeToStartShape="False">
<X>438</X>
<Y>564</Y>
</BendPoint>
<Direction>Unidirectional</Direction>
<AssociationType>Association</AssociationType>
</Relationship>
<Relationship type="Association" first="7" second="10">
<Label>
</Label>
<StartOrientation>Vertical</StartOrientation>
<EndOrientation>Vertical</EndOrientation>
<Direction>Unidirectional</Direction>
<AssociationType>Association</AssociationType>
</Relationship>
<Relationship type="Association" first="7" second="11">
<Label>
</Label>
<StartOrientation>Vertical</StartOrientation>
<EndOrientation>Vertical</EndOrientation>
<Direction>Unidirectional</Direction>
<AssociationType>Association</AssociationType>
</Relationship>
<Relationship type="Association" first="7" second="12">
<Label>
</Label>
<StartOrientation>Vertical</StartOrientation>
<EndOrientation>Vertical</EndOrientation>
<Direction>Unidirectional</Direction>
<AssociationType>Association</AssociationType>
</Relationship>
<Relationship type="Association" first="7" second="13">
<Label>
</Label>
<StartOrientation>Vertical</StartOrientation>
<EndOrientation>Vertical</EndOrientation>
<Direction>Unidirectional</Direction>
<AssociationType>Association</AssociationType>
</Relationship>
<Relationship type="Realization" first="9" second="10">
<StartOrientation>Vertical</StartOrientation>
<EndOrientation>Vertical</EndOrientation>
</Relationship>
<Relationship type="Association" first="1" second="5">
<Label>
</Label>
<StartOrientation>Horizontal</StartOrientation>
<EndOrientation>Horizontal</EndOrientation>
<Direction>Unidirectional</Direction>
<AssociationType>Association</AssociationType>
</Relationship>
<Relationship type="Association" first="1" second="2">
<Label>
</Label>
<StartOrientation>Vertical</StartOrientation>
<EndOrientation>Horizontal</EndOrientation>
<BendPoint relativeToStartShape="False">
<X>485</X>
<Y>473</Y>
</BendPoint>
<Direction>Bidirectional</Direction>
<AssociationType>Association</AssociationType>
</Relationship>
<Relationship type="Generalization" first="3" second="2">
<StartOrientation>Horizontal</StartOrientation>
<EndOrientation>Horizontal</EndOrientation>
</Relationship>
<Relationship type="Nesting" first="1" second="15">
<StartOrientation>Vertical</StartOrientation>
<EndOrientation>Horizontal</EndOrientation>
<BendPoint relativeToStartShape="True">
<X>407</X>
<Y>564</Y>
</BendPoint>
</Relationship>
<Relationship type="Association" first="1" second="17">
<Label>
</Label>
<StartOrientation>Horizontal</StartOrientation>
<EndOrientation>Horizontal</EndOrientation>
<Direction>Unidirectional</Direction>
<AssociationType>Association</AssociationType>
</Relationship>
<Relationship type="Association" first="5" second="16">
<Label>
</Label>
<StartOrientation>Vertical</StartOrientation>
<EndOrientation>Vertical</EndOrientation>
<Direction>Unidirectional</Direction>
<AssociationType>Association</AssociationType>
</Relationship>
</Relationships>
</ProjectItem>
</Project>