doc/protocol.txt
author Xeli
Sat, 04 Feb 2012 16:22:46 +0100
changeset 6622 01889d5bc79b
parent 2497 29678306d4fb
child 8240 ee39403a1d27
permissions -rw-r--r--
Rewrote the Ammomenu: Added landscape ammomenu At the moment MOBILE indicates landscape, but we could just as easily make a variable out of it Draw to texture once uVariables.AmmoMenuInvalidated indicates a new ammo menu needs to be drawn, see uTeams and uAmmos Slot/Cellsize is dependent on uConsts.AMSlotSize this should make it easier to scale the ammo menu on smaller screens AmmoRect AmmoRect indicates where and how big the ammo menu is, this makes positioning a bit easier imo, because you only need to change the position at one single point needs testing on the iphone (and other systems as well ofcourse..)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2497
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     1
	'?'             ping?
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     2
	'!'             pong!
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     3
	'l','L'         срабатывание команд     -left, +left
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     4
	'r','R'                                 -right, +right
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     5
	'u','U'                                 -up, +up
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     6
	'd','D'                                 -down, +down
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     7
	'z', 'Z'                                -precise, +precise
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     8
	'N'             срабатывание команды /nextturn
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     9
	'S'                                  /switch
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    10
	's' + <текст>   /say
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    11
	'+'             пустой пакет для постоянности лага
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    12
	'1'..'5'        /timer 1..5
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    13
	chr(128+№)     /slot №
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    14
	'w'             /setweap
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    15
	'p'             /put
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    16
	'j'             /ljump
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    17
	'J'             /hjump
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    18
	'E' + <текст>   сообщение об ошибке
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    19
	','             /skip
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    20
	'K'             вывести сообщение из KB
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    21
	'Q'             выход через команду /quit
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    22
	'q'             выход по причине окончания игры
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    23
	't' + №        /taunt №
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    24
	'F' + <team>    команда team вылетела в сетевой игре
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    25
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    26
фронтенд клиенту:
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    27
	'e' + <команда> выполнить "/<команда>"
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    28
	'T' + {L,N,D}   тип игры (локальная, сетевая, просмотр демо)
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    29
	'W' + <текст>   сообщение о нефатальной ошибке
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
Клиент фронтенду:
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    32
	'C'             запрос текущего конфига игры
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    33
	'q'             выход по причине окончания демки
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    34
	'i'             статистика