-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZappy-Protocol
86 lines (68 loc) · 1.71 KB
/
Zappy-Protocol
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
Command-Reply Sequences
Connection Establishment
<- Welcome
&- msz X Y
Connection Disbandment
<- Goodbye
Assignment
N ->
<- T
&- ppo X Y O
<- TEAM-NOT-FOUND
GUI GUI GUI ->
<- msz X Y
Movement
Forward ->
<- ok
Right ->
<- ok
Left ->
<- ok
Information
Inventory ->
<- [food q0, linemate q1, deraumere q2, sibur q3, mendiane q4, phiras q5, thystame q6]
Broadcast ->
<- ok
Look ->
<- [Q,...,Q]
Connect_nbr ->
<- T
Broadcast received
<- B M
Actions
Take object ->
<- ok
<- ko
Set object ->
<- ok
<- ko
Fork ->
<- ok
<- ko
Eject ->
<- ok
<- ko
Incantation ->
<- Elevation underway
<- ko
Ejection
<- eject: O
Incantation Success
<- Current level: L
Incantation Interrupted
<- ko
Symbols and Meaning
O Orientation: 0(N), 1(E), 2(S), 3(W)
X Width or horizontal position
Y Height or vertical position
L Player of incantation level
B Broadcast position relative to Player
M Message
N Team name
T Number of unused slots in a team
Q Contents of a tile
Nota Bene:
The look command functions based on the player's level, the higher it is the
further he can see in a cone in front of himself.
Think of the range of the look command as an extra tile per level sideways
and forward.