📄 attention_to_bma.h.ps
字号:
dup stringwidth pop fnfs 0.8 mul add exch % leave space took on stack dup pw exch stringwidth pop fnfs 0.8 mul add sub hm rmoveto show % right title grestore % stk: ct ltw rtw % 5. the center title gsave pw 3 1 roll % stk: ct pw ltw rtw 3 copy % Move to the center of the left room sub add 2 div hm rmoveto % What is the available space in here? add sub fnfs 0.8 mul sub fnfs 0.8 mul sub % stk: ct space_left%%IncludeResource: font Helvetica-Bold fHelvetica-Bold fnfs scalefont setfont cfshow grestore} bind def% Function border: prints virtual page border/border { %def gsave % print four sides 0 setgray x v get y v get moveto 0.7 setlinewidth % of the square pw 0 rlineto 0 ph neg rlineto pw neg 0 rlineto closepath stroke grestore} bind def% Function water: prints a water mark in background/water { %def gsave scx scy moveto rotate%%IncludeResource: font Times-Bold fTimes-Bold 100 scalefont setfont .97 setgray dup stringwidth pop 2 div neg -50 rmoveto show grestore} bind def% Function rhead: prints the right header/rhead { %def lx ly moveto fHelvetica fnfs 0.8 mul scalefont setfont l-show} bind def% Function footer (cf rf lf -> -)/footer { fHelvetica fnfs 0.8 mul scalefont setfont dx dy moveto show snx sny moveto l-show fnx fny moveto c-show} bind def%%EndResource%%BeginResource: procset a2ps-black+white-Prolog 2.0 1% Function T(ab), jumps to the n-th tabulation in the current line/T { cw mul x0 add y0 moveto} bind def% Function n: move to the next line/n { %def /y0 y0 bfs sub store x0 y0 moveto} bind def% Function N: show and move to the next line/N { Show /y0 y0 bfs sub store x0 y0 moveto} bind def/S { Show} bind def/p { false UL false BX fCourier bfs scalefont setfont Show} bind def/sy { false UL false BX fSymbol bfs scalefont setfont Show} bind def/k { false UL false BX fCourier-Oblique bfs scalefont setfont Show} bind def/K { false UL false BX fCourier-Bold bfs scalefont setfont Show} bind def/c { false UL false BX fCourier-Oblique bfs scalefont setfont Show} bind def/C { false UL false BX fCourier-BoldOblique bfs scalefont setfont Show } bind def/l { false UL false BX fHelvetica bfs scalefont setfont Show} bind def/L { false UL false BX fHelvetica-Bold bfs scalefont setfont Show } bind def/str{ false UL false BX fTimes-Roman bfs scalefont setfont Show} bind def/e{ false UL true BX fHelvetica-Bold bfs scalefont setfont Show} bind def%%EndResource%%EndProlog%%BeginSetup%%IncludeResource: font Courier%%IncludeResource: font Courier-Oblique%%IncludeResource: font Courier-Bold%%IncludeResource: font Times-Roman%%IncludeResource: font Symbol%%IncludeResource: font Courier-BoldOblique%%BeginResource: encoding ISO-8859-1Encoding/ISO-8859-1Encoding [/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quoteright /parenleft /parenright /asterisk /plus /comma /minus /period /slash /zero /one /two /three /four /five /six /seven /eight /nine /colon /semicolon /less /equal /greater /question /at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V /W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore /quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t /u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /space /exclamdown /cent /sterling /currency /yen /brokenbar /section /dieresis /copyright /ordfeminine /guillemotleft /logicalnot /hyphen /registered /macron /degree /plusminus /twosuperior /threesuperior /acute /mu /paragraph /bullet /cedilla /onesuperior /ordmasculine /guillemotright /onequarter /onehalf /threequarters /questiondown /Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla /Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis /Eth /Ntilde /Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply /Oslash /Ugrave /Uacute /Ucircumflex /Udieresis /Yacute /Thorn /germandbls /agrave /aacute /acircumflex /atilde /adieresis /aring /ae /ccedilla /egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis /eth /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide /oslash /ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis ] def%%EndResource% Initialize page description variables./sh 595 def/sw 842 def/llx 24 def/urx 818 def/ury 571 def/lly 24 def/#copies 1 def/th 15.000000 def/fnfs 11 def/bfs 7.542439 def/cw 4.525463 def% Dictionary for ISO-8859-1 support/iso1dict 8 dict begin /fCourier ISO-8859-1Encoding /Courier reencode_font /fCourier-Bold ISO-8859-1Encoding /Courier-Bold reencode_font /fCourier-BoldOblique ISO-8859-1Encoding /Courier-BoldOblique reencode_font /fCourier-Oblique ISO-8859-1Encoding /Courier-Oblique reencode_font /fHelvetica ISO-8859-1Encoding /Helvetica reencode_font /fHelvetica-Bold ISO-8859-1Encoding /Helvetica-Bold reencode_font /fTimes-Bold ISO-8859-1Encoding /Times-Bold reencode_font /fTimes-Roman ISO-8859-1Encoding /Times-Roman reencode_fontcurrentdict end def/bgcolor [ 0 0 0 ] def/bg false def/ul false def/bx false def% The font for line numbering/f# /Helvetica findfont bfs .6 mul scalefont def/fSymbol /Symbol findfont def/hm fnfs 0.25 mul def/pw cw 86.400000 muldef/ph 503.080648 th adddef/pmw urx llx sub pw 2 mul sub 1 div def/pmh 0 def/v 0 def/x [ 0 dup pmw add pw add] def/y [ pmh ph add 0 mul ph add dup] def/scx sw 2 div def/scy sh 2 div def/snx urx def/sny lly 2 add def/dx llx def/dy sny def/fnx scx def/fny dy def/lx snx def/ly ury fnfs 0.8 mul sub def/sx 5 def/tab 8 def/x0 0 def/y0 0 def%%EndSetup%%Page: (1) 1%%BeginPageSetup/pagesave save defsh 0 translate 90 rotate%%EndPageSetupiso1dict begingsavellx lly 12 add translate/v 0 store/x0 x v get 3.167824 add sx cw mul add store/y0 y v get bfs th add sub storex0 y0 moveto(1) # (#ifndef) K( _ATTENTION_TO_BMA_H_) p n(2) # () S(#define) K( _ATTENTION_TO_BMA_H_) p n(3) # () N(4) # () S(/* This is a port of the BS02_View_Strategy \(in advanced mode\).) c n(5) # ( This strategy has been used since Fukuoka '02 and tries to get) N(6) # ( maximum view efficency by changing the view angle to normal whenever possible) N(7) # ( without losing cycles.) N(8) # () N(9) # ( The original view strategy has been heavily improved while porting to the) N(10) # ( behavior structure; the agent now usually \(i.e. as long as we have no network) N0 T ( probs\)) N(11) # ( only needs to sync directly after connecting to the server and never loses) N(12) # ( synchronisation with the server afterwards.) N(13) # (*/) N(14) # () N(15) # () S(#include) K( ") p(../base_bm.h) str(") p n(16) # () S(#include) K( ") p(types.h) str(") p n(17) # () S(#include) K( ") p(cmd.h) str(") p n(18) # () S(#include) K( ") p(log_macros.h) str(") p n(19) # () S(#include) K( <iostream>) p n(20) # () N(21) # (class AttentionTo : public AttentionToBehavior {) N(22) # ( ) S(static) K( bool initialized;) p n(23) # () N(24) # ( bool teammate_controls_ball\() S(int) k( &number, Vector & pos\);) p n(25) # ( ) S(void) k( generate_players4communication\(Cmd & cmd_form\);) p n(26) # ( ) S(void) k( construct_say_message\(Cmd & cmd\);) p n(27) # ( ) S(void) k( set_attention_to\(Cmd & cmd\);) p n(28) # () N(29) # () S(#if) K( 0) p n(30) # ( bool get_teammate\() S(int) k( number, PPlayer & p\);) p n(31) # ( ) S(int) k( relevant_teammate[11];) p n(32) # ( ) S(int) k( num_relevant_teammates;) p n(33) # () N(34) # ( ) S(void) k( set_relevant_teammates\() p(const) K( ) p(int) k( t1=0,) p(const) K( ) p(int) k( t2=0,) p(const) K( ) p(int) k( t3=0,) p(const) K() p n0 T ( ) S(int) k( t4=0,) p n(35) # () S 8 T () S 16 T () S 24 T ( ) S(const) K( ) p(int) k( t5=0,) p(const) K( ) p(int) k( t6=0,) p(const) K( ) p(int) k( t7=0,) p(const) K() p n0 T ( ) S(int) k( t8=0,) p n(36) # () S 8 T () S 16 T () S 24 T ( ) S(const) K( ) p(int) k( t9=0,) p(const) K( ) p(int) k( t10=0,) p(const) K( ) p(int) k( t11=0\);) p n(37) # () S(#endif) K n(38) # () N(39) # (#if) S( 0) p n(40) # ( ) S(void) k( check_communicate_ball_and_mypos\(Cmd & cmd\);) p n(41) # ( ) S(void) k( communicate_players\(Cmd & cmd_form\);) p n(42) # () S(#endif) K n(43) # () N(44) # () S( public:) p n(45) # ( bool get_cmd\(Cmd &cmd\);) N(46) # ( ) N(47) # ( ) S(static) K( bool init\() p(char) k( ) p(const) K( * conf_file, ) p(int) k( argc, ) p(char) k( ) p(const) K(* ) p(const) K(* argv\) {) p n(48) # ( ) S(if) K(\(initialized\) ) p(return) K( true;) p n(49) # ( initialized = true;) N(50) # ( std::cout << ") S(\\nAttentionTo behavior initialized.) str(";) p n(51) # ( ) S(return) K( true;) p n(52) # ( }) N(53) # ( AttentionTo\(\);) N(54) # (};) N(55) # () N(56) # () S(#endif) K( ) p(// _ATTENTION_TO_BMA_H_) c n(attention_to_bma.h) (Page 1/1) (Jun 18, 04 14:03) titlebordergrestore(Printed by Thomas Gabel) rhead(attention_to_bma.h) (1/1) (Monday April 04, 2005) footerend % of iso1dictpagesave restoreshowpage%%Trailerend%%EOF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -