doc/protocol.txt
author dag10
Mon, 14 Jan 2013 11:19:59 +0100
changeset 8377 869f80966a77
parent 8243 92a430205796
child 10338 9558b0380779
permissions -rw-r--r--
GCI2012: Improve Game Configuration Widget - Refactored mapmodel+datamanager to have two separate map models for static and mission maps, and then three static MapInfos in MapModel for the three special maps (random, maze, drawn). - Created theme selector dialog. - Created seed view/edit dialog. - Enlarged start icon on pagemultiplayer and pagenetgame, and added Start.png. - Moved "Settings" button on pagemultiplayer and pagenetgame from middle of page to page footer. - Added "load drawing" button to mapcontainer widget. - Map preview is no longer the randomize button; The randomize functionality is now in a button of its own. - Map preview no longer grays out (isn't disabled) when in slave mode. - Seed is now viewable and copyable when in slave mode -- but not editable. - You should now use the property master (isMaster() and setMaster()) on gamecfgwidget and mapcontainer instead of the enabled property. This is because some widgets (e.g. "view/edit seed" button and map preview) shouldn't be disabled, when all other widgets should be. - Added mission map descriptions w/ locale support in INI format in mapname/desc.txt if applicable. Use '|' for line break.

    '?'             ping?
    '!'             pong!
    'l','L'         срабатывание команд     -left, +left
    'r','R'                                 -right, +right
    'u','U'                                 -up, +up
    'd','D'                                 -down, +down
    'z', 'Z'                                -precise, +precise
    'N'             срабатывание команды /nextturn
    'S'                                  /switch
    's' + <текст>   /say
    '+'             пустой пакет для постоянности лага
    '1'..'5'        /timer 1..5
    chr(128+№)     /slot №
    'w'             /setweap
    'p'             /put
    'j'             /ljump
    'J'             /hjump
    'E' + <текст>   сообщение об ошибке
    ','             /skip
    't' + №         /taunt №

фронтенд клиенту:
    'e' + <команда> выполнить "/<команда>"
    'T' + {L,N,D}   тип игры (локальная, сетевая, просмотр демо)
    'W' + <текст>   сообщение о нефатальной ошибке
    'F' + <team>    команда team вылетела в сетевой игре
    'o'             stop syncing, game over!

Клиент фронтенду:
    'C'             запрос текущего конфига игры
    'q'             выход по причине окончания демки
    'i'             статистика
    'K'             вывести сообщение из KB
    'Q'             выход через команду /quit
    'q'             выход по причине окончания игры