Download Oblig 2 -

Transcript
Obligatory Exercise 2 by group 4
Rayner(raynerv), Maja (majasm), Lavdim(lavdima), Vegard(vegaaa), Vincent(vincentg), Tonje(tonjeek)
Table of contents
1
User manual ......................................................................................................................... 4
1.1 Introduction – purpose of the game................................................................................. 4
1.2 Different roles in the game .............................................................................................. 4
1.3 Services.......................................................................................................................... 4
1.3.1
Services for user .................................................................................................... 4
1.3.2
Services for player ................................................................................................. 5
1.3.3
Services for admin ................................................................................................. 5
1.4 What happens if…........................................................................................................... 6
1.5 Specialties ...................................................................................................................... 7
2
The IKILLU system ................................................................................................................. 8
2.1 Environment................................................................................................................... 8
2.2 Functions ....................................................................................................................... 8
2.2.1
Cost of a light up.................................................................................................... 8
2.2.2
Cost of an extra shield............................................................................................ 9
2.2.3
Cost of a strike:...................................................................................................... 9
2.2.4
Effect of a strike: ................................................................................................... 9
2.3 Composite structure ..................................................................................................... 10
2.4 Use Cases ..................................................................................................................... 11
2.5 Class Diagram (incl signals) ............................................................................................ 12
2.6 High level state machines.............................................................................................. 13
2.6.1
Controller............................................................................................................ 13
2.6.2
UserSession......................................................................................................... 14
2.6.3
GameSession....................................................................................................... 15
2.6.4
Alternative Design of the three main components: ................................................ 15
2.7 Setup Game Services (Sequence Diagrams and StateMachines) ....................................... 16
2.7.1
RegisterPerson .................................................................................................... 16
2.8 Admin Services (Sequence Diagrams and State Machines)............................................... 18
2.8.1
AnnounceGame................................................................................................... 18
2.8.2
StartGame........................................................................................................... 20
2.8.3
Generate KML ..................................................................................................... 22
2.8.4
EndGame ............................................................................................................ 23
2.9 User Services ................................................................................................................ 25
2.9.1
CreateGame ........................................................................................................ 25
2.9.2
JoinGame ............................................................................................................ 26
2.9.3
UnregisterPerson................................................................................................. 28
2.10
Game Services (Sequence Diagrams and StateMachines) ............................................ 30
2.10.1
LightUp ............................................................................................................... 31
2.10.2
IncreaseShield ..................................................................................................... 33
2.10.3
Strike .................................................................................................................. 35
2.10.4
Evaluate .............................................................................................................. 38
2.10.5
LeaveGame ......................................................................................................... 39
3
Assumptions, weaknesses and improvements ...................................................................... 40
4
Appendix A ......................................................................................................................... 41
4.1 Setup Game Services (Sequence Diagrams) .................................................................... 41
4.1.1
RegisterPerson .................................................................................................... 41
4.2 Admin Services ............................................................................................................. 42
4.2.1
AnnounceGame................................................................................................... 42
4.2.2
StartGame........................................................................................................... 42
4.2.3
GenerateKML ...................................................................................................... 43
2