-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprotokoll.txt
99 lines (82 loc) · 4.74 KB
/
protokoll.txt
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
Controller - Server
[channel] [controllerId] [aktionen]
0. Byte: Channel 1 - 255 // Server: ok, Controller: ok
1. Byte: ControllerId 1 - 255 // Server: ok, Controller: ok
2. Byte: Aktion 1 - 255 // Server: ok, Controller: ok
immer:
0 - unbekannt
Aktionen:
1 - Spieler erstellen vom Controller || Farbe und Nummer wird vom Server geschickt
// raus: 3. Byte: with Name? 1 = ja, 0 = nein
2 - Teamname // Server: vllt
3 - n. Byte: Name (Base 64) // Server: ??, Controller: ok
// nur 0. , 1. und 2. Byte für "skip"
3 - abbruch // Server: ??, Controller: ok
4 - rechts // Server: ok, Controller: ok
5 - links // Server: ok, Controller: ok
6 - oben // Server: ok, Controller: ok
7 - unten // Server: ok, Controller: ok
8 - Uhrzeigersinn // Server: ok, Controller: ok
9 - gegen Uhrzeigersinn // Server: ok, Controller: ok
10 - heal // Server: ok, Controller: ok
11 - Polling // Server: ok, Controller: ok
Server - Controller
0. Byte: Typ // Server: ok, Controller: ok
Typ:
1 - Start
1. Byte: ID // Server: ok, Controller: ok
2. Byte: Farbe // Server: ok, Controller: ok
3. Byte: Name eingeben? 1 = ja, 0 = nein
2 - Status:
1. Byte: Status:
0 - OK // Server: ok, Controller: ok
1 - Spiel zuende // Server: ok, Controller: ok
2 - Anmeldung wenn Spiel schon läuft // Server: ok, Controller: ok
3 - Spiel nicht gefunden // Server: ok, Controller: ok
Server - Display
[aktion] [daten]
0. Byte: Aktion // Server: ok, Display: ok
nächste Bytes: Daten
Aktionen:
1 - Init
1. Byte: channel ID // Server: ok, Display: ok
2 - Name wird eingegeben // Server: vllt
3 - Abbruch // Server: vllt
4 - Countdown starten // Server: vllt
1. Byte. length
2. Name
5 - Spieler joined // Server: vllt
1. Byte: Spieler ID
2. Byte: Spieler Farbe
6 - Spiel starten // Server: vllt
1. Byte: Anzahl Spieler
2. Byte: Anzahl Lanes
3. - n. Byte: Position der Spieler
7 - Spieler Bewegung
1. Byte: Spieler ID // Server: ok, Display: ok
2. Byte: nächste Position // Server: ok, Display: ok
8 - Heal // Server: ok, Display: ok
1. Byte: Healer: Spieler ID
2. Byte: Anzahl Target
3. - n. Byte: Target: Spieler ID
9 - Create Obstacle
1. Byte: Anzahl Obstacles
n+
1. Byte: Obstcle ID
2. Byte: Kategorie
3. Byte: Position
10 - Collision
1. Byte: Obstacle ID // Server: ok, Display: ok
2. Byte: Kategorie
3. Byte: Anzahl Spieler // Server: ok, Display: ok
4. - n. Byte: Spieler ID // Server: ok, Display: ok
11 - Spielende // Server: ok, Display: ok
1. Byte: Teampunktzahl 1
2. Byte: Teampunktzahl 2 // Pkt = Pkt1 * 256 + Pkt2 bzw. Pkt = Pkt1 << 8 + Pkt2
n+ [0 bis Anzahl der Spieler - 1]
0. Byte: Farbe
1. Byte: Prozent
m+ [ 0 bis 2]
0. Byte: Länge des Namen
1. Byte: Name
2.+ 3. Byte: Score