doc/protocol.txt
author unc0rr
Mon, 23 Jun 2014 23:50:08 +0400
changeset 10338 9558b0380779
parent 8243 92a430205796
child 10342 16122539d2ea
permissions -rw-r--r--
Inform engine if player is back after being disconnected
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8243
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     1
    '?'             ping?
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     2
    '!'             pong!
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     3
    'l','L'         срабатывание команд     -left, +left
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     4
    'r','R'                                 -right, +right
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     5
    'u','U'                                 -up, +up
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     6
    'd','D'                                 -down, +down
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     7
    'z', 'Z'                                -precise, +precise
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     8
    'N'             срабатывание команды /nextturn
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     9
    'S'                                  /switch
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    10
    's' + <текст>   /say
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    11
    '+'             пустой пакет для постоянности лага
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    12
    '1'..'5'        /timer 1..5
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    13
    chr(128+№)     /slot №
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    14
    'w'             /setweap
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    15
    'p'             /put
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    16
    'j'             /ljump
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    17
    'J'             /hjump
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    18
    'E' + <текст>   сообщение об ошибке
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    19
    ','             /skip
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    20
    't' + №         /taunt №
10338
9558b0380779 Inform engine if player is back after being disconnected
unc0rr
parents: 8243
diff changeset
    21
    'g' + <nick>    teams of user 'nick' are controlled again (synced msg)
2497
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    22
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    23
фронтенд клиенту:
8243
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    24
    'e' + <команда> выполнить "/<команда>"
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    25
    'T' + {L,N,D}   тип игры (локальная, сетевая, просмотр демо)
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    26
    'W' + <текст>   сообщение о нефатальной ошибке
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    27
    'F' + <team>    команда team вылетела в сетевой игре
10338
9558b0380779 Inform engine if player is back after being disconnected
unc0rr
parents: 8243
diff changeset
    28
    'G' + <nick>    user 'nick' is back (unsynced msg)
8243
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    29
    'o'             stop syncing, game over!
2497
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    30
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    31
Клиент фронтенду:
8243
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    32
    'C'             запрос текущего конфига игры
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    33
    'q'             выход по причине окончания демки
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    34
    'i'             статистика
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    35
    'K'             вывести сообщение из KB
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    36
    'Q'             выход через команду /quit
92a430205796 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    37
    'q'             выход по причине окончания игры