doc/protocol.txt
author unc0rr
Fri, 04 Jan 2013 21:44:40 +0400
branchflibqtfrontend
changeset 8363 0b4ac686fc44
parent 8240 ee39403a1d27
child 10338 9558b0380779
permissions -rw-r--r--
Merge from default
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8240
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     1
    '?'             ping?
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     2
    '!'             pong!
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     3
    'l','L'         срабатывание команд     -left, +left
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     4
    'r','R'                                 -right, +right
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     5
    'u','U'                                 -up, +up
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     6
    'd','D'                                 -down, +down
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     7
    'z', 'Z'                                -precise, +precise
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     8
    'N'             срабатывание команды /nextturn
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
     9
    'S'                                  /switch
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    10
    's' + <текст>   /say
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    11
    '+'             пустой пакет для постоянности лага
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    12
    '1'..'5'        /timer 1..5
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    13
    chr(128+№)     /slot №
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    14
    'w'             /setweap
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    15
    'p'             /put
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    16
    'j'             /ljump
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    17
    'J'             /hjump
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    18
    'E' + <текст>   сообщение об ошибке
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    19
    ','             /skip
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    20
    't' + №         /taunt №
2497
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    21
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    22
фронтенд клиенту:
8240
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    23
    'e' + <команда> выполнить "/<команда>"
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    24
    'T' + {L,N,D}   тип игры (локальная, сетевая, просмотр демо)
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    25
    'W' + <текст>   сообщение о нефатальной ошибке
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    26
    'F' + <team>    команда team вылетела в сетевой игре
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    27
    'o'             stop syncing, game over!
2497
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    28
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    29
Клиент фронтенду:
8240
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    30
    'C'             запрос текущего конфига игры
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    31
    'q'             выход по причине окончания демки
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    32
    'i'             статистика
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    33
    'K'             вывести сообщение из KB
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    34
    'Q'             выход через команду /quit
ee39403a1d27 Stop syncing when recieved 'o' message
unc0rr
parents: 2497
diff changeset
    35
    'q'             выход по причине окончания игры