doc/protocol.txt
author unc0rr
Fri, 07 Mar 2008 19:34:26 +0000
changeset 804 30f687f380fa
parent 783 4f59db6f147d
child 1035 6f5842bc481b
permissions -rw-r--r--
Oops, forgot a file
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
783
4f59db6f147d - New command 'set weapon'
unc0rr
parents: 619
diff changeset
    13
                chr(128+№)     /slot №
4f59db6f147d - New command 'set weapon'
unc0rr
parents: 619
diff changeset
    14
                'w'             /setweap
618
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    15
                'p'             /put
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    16
                'j'             /ljump
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    17
                'J'             /hjump
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    18
                'E' + <текст>   сообщение об ошибке
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    19
                ','		/skip
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    20
                'K'		вывести сообщение из KB
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    21
                'Q'		выход через команду /quit
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    22
                'q'		выход по причине окончания игры
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
        фронтенд клиенту:
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    25
                'e' + <команда> выполнить "/<команда>"
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    26
                'T' + {L,N,D}   тип игры (локальная, сетевая, просмотр демо)
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    27
                'W' + <текст>   сообщение о нефатальной ошибке
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    28
        Клиент фронтенду:
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    29
                'C'             запрос текущего конфига игры
fe7a6d98ea55 Add doc, describing protocol details (in russian)
unc0rr
parents:
diff changeset
    30
                'q'             выход по причине окончания демки
619
758da3d985fa - Update protocol doc
unc0rr
parents: 618
diff changeset
    31
                'i'             статистика