📄 score_bms.h.ps
字号:
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-2) 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( _SCORE_BMS_H_) p n(2) # () S(#define) K( _SCORE_BMS_H_) p n(3) # () N(4) # () S(#include) K( ") p(../base_bm.h) str(") p n(5) # () S(#include) K( ") p(types.h) str(") p n(6) # () S(#include) K( ") p(cmd.h) str(") p n(7) # () S(#include) K( ") p(log_macros.h) str(") p n(8) # () S(#include) K( ") p(intention.h) str(") p n(9) # () S(#include) K( ") p(oneortwo_step_kick_bms.h) str(") p n(10) # () N(11) # (class Score : public BaseBehavior {) N(12) # ( ) S(static) K( bool initialized;) p n(13) # () N(14) # ( OneOrTwoStepKick *oneortwo;) N(15) # () N(16) # ( private:) N(17) # () N(18) # ( ) S(int) k( nr_of_looks_to_goal;) p n(19) # ( Value saved_velocity;) N(20) # ( Value saved_direction;) N(21) # ( Vector saved_target;) N(22) # ( ) S(int) k( saved_multi_step;) p n(23) # ( ) S(int) k( risky_goalshot_possible;) p n(24) # ( ) S(int) k( last_time_look_to_goal;) p n(25) # ( ) S(float) k( goalshot_param1;) p n(26) # ( ) S(int) k( goalshot_mode;) p n(27) # () N(28) # () N(29) # ( ) S(// auxillary functions for shoot2goal:) c n(30) # () S( ) p(float) k( get_orientation_and_speed_handicap_add\(Vector target\);) p n(31) # ( Value player_action_radius_at_time\() S(int) k( time, PPlayer player, ) p n(32) # () S 8 T () S 16 T () S 24 T () S 32 T ( Value player_dist_to_ball, ) S(int) k( player_handi) p n0 T (cap\);) N(33) # ( ) S(int) k( intercept_opponents\(Value direction, Value b_v, ) p(int) k( max_steps\);) p n(34) # ( Value goalie_action_radius_at_time\() S(int) k( time, Value goalie_size, ) p(int) k( goalie_han) p n0 T (dicap\);) N(35) # ( ) S(int) k( intercept_goalie\(Vector ball_pos, Vector ball_vel, Vector goalie_pos, Valu) p n0 T (e goalie_size\);) N(36) # ( bool goalie_needs_turn_for_intercept\() S(int) k( time, Vector initial_ball_pos, Vector) p n0 T ( initial_ball_vel, ) N(37) # () S 8 T () S 16 T () S 24 T () S 32 T ( Vector b_pos, Vector b_vel, Value goalie_) N0 T (size\);) N(38) # ( Vector intersection_point\(Vector p1, Vector steigung1, Vector p2, Vector steig) N0 T (ung2\);) N(39) # ( Vector point_on_line\(Vector steigung, Vector line_point, Value x\);) N(40) # ( bool is_pos_in_quadrangle\(Vector pos, Vector p1, Vector p2, Vector p3, Vector ) N0 T (p4\);) N(41) # ( bool is_pos_in_quadrangle\(Vector pos, Vector p1, Vector p2, Value width\);) N(42) # () N(43) # ( ) S(int) k( get_goalshot_chance\() p(int) k( &multi_step, Value &velocity, ) p n(44) # () S 8 T () S 16 T () S 24 T ( Value &direction, Vector &target, ) S(int) k( &best_index\);) p n(45) # ( ) S(void) k( consider_special_cases\() p(int) k( goalie_age, ) p(int) k( goalie_vel_age, Vector goalie_) p n0 T (vel,) N(46) # () S 8 T () S 16 T () S 24 T ( Value &goalie_size, Vector &goalie_pos, PPlayer go) N0 T (alie\);) N(47) # ( ) S(int) k( select_best_kick\() p(int) k( *kick_possible, ) p(int) k( nr_of_targets\);) p n(48) # ( ) S(void) k( fill_target_arrays\(Vector *test_targets, Value *test_dirs, ) p(int) k( nr_of_targ) p n0 T (ets, Vector ball_pos\);) N(49) # ( ) S(void) k( fill_velocity_arrays\(Value *test_vels_1step, Value *test_vels_multi, ) p n(50) # () S 8 T () S 16 T () S 24 T ( Vector *test_targets, ) S(int) k( nr_of_targets\);) p n(51) # () N(52) # ( ) S(// end of auxillary functions for shoot2goal:) c n(53) # () N(54) # () N(55) # () S( public:) p n(56) # () N(score_bms.h) (Page 1/2) (Apr 15, 05 17:26) titleborder/v 1 store/x0 x v get 3.167824 add sx cw mul add store/y0 y v get bfs th add sub storex0 y0 moveto(57) # ( Score\(\);) p n(58) # ( virtual ~Score\(\);) N(59) # () N(60) # ( bool test_shoot2goal\(Intention &intention\);) N(61) # () N(62) # ( bool get_cmd\(Cmd &cmd\); ) N(63) # () S 8 T () S 16 T () S 24 T () S 32 T ( ) N(64) # ( ) 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(65) # ( ) S(if) K(\(initialized\) ) p(return) K( true;) p n(66) # ( initialized = true;) N(67) # ( std::cout << ") S(\\nScore behavior initialized.) str(";) p n(68) # ( ) S(return) K( OneOrTwoStepKick::init\(conf_file, argc, argv\);) p n(69) # ( }) N(70) # (};) N(71) # () N(72) # () S(#endif) K( ) p(// _SCORE_BMS_H_) c n(score_bms.h) (Page 2/2) (Apr 15, 05 17:26) titlebordergrestore(Printed by Thomas Gabel) rhead(score_bms.h) (1/1) (Monday July 04, 2005) footerend % of iso1dictpagesave restoreshowpage%%Trailerend%%EOF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -