doc/protocol.txt
author unc0rr
Sun, 07 Oct 2007 14:54:31 +0000
changeset 618 fe7a6d98ea55
child 619 758da3d985fa
permissions -rw-r--r--
Add doc, describing protocol details (in russian)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
618
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
     1
IPC:
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
     2
                '?'             ping?
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
     3
                '!'             pong!
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
     4
                'l','L'         срабатывание команд     -left, +left
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
     5
                'r','R'                                 -right, +right
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
     6
                'u','U'                                 -up, +up
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
     7
                'd','D'                                 -down, +down
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
     8
                'N'             срабатывание команды /nextturn
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
     9
                'S'                                     /switch
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    10
                's' + <текст>   /say
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    11
                '+'             пустой пакет для постоянности лага
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    12
                '1'..'5'        /timer 1..5
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    13
                chr(128+№)      /slot №
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    14
                'p'             /put
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    15
                'j'             /ljump
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    16
                'J'             /hjump
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    17
                'E' + <текст>   сообщение об ошибке
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    18
                ','		/skip
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    19
                'K'		вывести сообщение из KB
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    20
                'Q'		выход через команду /quit
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    21
                'q'		выход по причине окончания игры
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    22
                
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    23
        фронтенд клиенту:
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    24
                'e' + <команда> выполнить "/<команда>"
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    25
                'T' + {L,N,D}   тип игры (локальная, сетевая, просмотр демо)
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    26
                'W' + <текст>   сообщение о нефатальной ошибке
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    27
        Клиент фронтенду:
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    28
                'C'             запрос текущего конфига игры
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    29
                'q'             выход по причине окончания демки
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    30