// begin of waspsoccer.pl code file. // begin of unit waspsoccer code. final class waspsoccer_main_0 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: main case 0: m.allocate (3); //m.success = m.end_head (); break; case 1: // goal: text_area(_G419) m.put_y_value (2,1); /* 'Browser' */ m.call (dlplib.text_area_1); /*6*/ break; case 2: // goal: set_output(_G419) m.put_y_value (2,1); /* 'Browser' */ m.call (dlplib.set_output_1); /*6*/ break; case 3: // goal: format('Load the game ..., Please wait...~n') m.put_atom (data__1__0,1); m.call (dlplib.format_1); /*6*/ break; case 4: // goal: loadURL(url) m.put_z_value (0,1); /* url */ m.call (1) /*2*/; /* loadURL_1 */ break; case 5: // goal: new(game_clock, _G439) m.put_atom (game_clock__0,1); m.put_y_value (0,2); /* 'Clock' */ m.call (dlplib.new_2); /*6*/ break; case 6: // goal: new(clock_pulse(_G439), _G447) m.put_struct (clock_pulse__1,1); m.set_y_value (0); /* 'Clock' */ m.put_v_varia (2); /* 'Unknown' */ m.call (dlplib.new_2); /*6*/ break; case 7: // goal: <-(this, _G439, get_time1(_G460)) m.put_this (1); m.put_y_value (0,2); /* 'Clock' */ m.put_struct (get_time1__1,3); m.set_y_value (1); /* 'TimeLeft' */ m.call (dlplib.op_call_3); /*6*/ break; case 8: // goal: format('the game will start in 5 seconds,~n') m.put_atom (data__2__0,1); m.call (dlplib.format_1); /*6*/ break; case 9: // goal: format('the total playing time is ~w seconds,~n', [_G460]) m.put_atom (data__3__0,1); m.put_list (2); m.set_y_value (1); /* 'TimeLeft' */ m.set_nil (); m.call (dlplib.format_2); /*6*/ break; case 10: // goal: delay(5000) m.put_int (5000,1); m.call (dlplib.delay_1); /*6*/ break; case 11: // goal: format('the game startup,~n') m.put_atom (data__4__0,1); m.call (dlplib.format_1); /*6*/ break; case 12: // goal: new(ball(ball, _G439), _G489) m.put_struct (ball__2,1); m.set_atom (ball__0); m.set_y_value (0); /* 'Clock' */ m.put_v_varia (2); /* 'Unknown' */ m.call (dlplib.new_2); /*6*/ break; case 13: // goal: new(goalKeeper(goalKeeper1, _G439), _G500) m.put_struct (goalKeeper__2,1); m.set_atom (goalKeeper1__0); m.set_y_value (0); /* 'Clock' */ m.put_v_varia (2); /* 'Unknown' */ m.call (dlplib.new_2); /*6*/ break; case 14: // goal: new(goalKeeper(goalKeeper2, _G439), _G511) m.put_struct (goalKeeper__2,1); m.set_atom (goalKeeper2__0); m.set_y_value (0); /* 'Clock' */ m.put_v_varia (2); /* 'Unknown' */ m.call (dlplib.new_2); /*6*/ break; case 15: // goal: new(soccerPlayerUser(me_red10, _G439), _G522) m.put_struct (soccerPlayerUser__2,1); m.set_atom (me_red10__0); m.set_y_value (0); /* 'Clock' */ m.put_v_varia (2); /* 'Unknown' */ m.call (dlplib.new_2); /*6*/ break; case 16: // goal: new(soccerPlayer(blue9, _G439), _G533) m.put_struct (soccerPlayer__2,1); m.set_atom (blue9__0); m.set_y_value (0); /* 'Clock' */ m.put_v_varia (2); /* 'Unknown' */ m.call (dlplib.new_2); /*6*/ break; case 17: // goal: new(soccerPlayer(blue8, _G439), _G544) m.put_struct (soccerPlayer__2,1); m.set_atom (blue8__0); m.set_y_value (0); /* 'Clock' */ m.put_v_varia (2); /* 'Unknown' */ m.call (dlplib.new_2); /*6*/ break; case 18: // goal: new(soccerPlayer(blue7, _G439), _G555) m.put_struct (soccerPlayer__2,1); m.set_atom (blue7__0); m.set_y_value (0); /* 'Clock' */ m.put_v_varia (2); /* 'Unknown' */ m.call (dlplib.new_2); /*6*/ break; case 19: // goal: new(soccerPlayer(blue11, _G439), _G566) m.put_struct (soccerPlayer__2,1); m.set_atom (blue11__0); m.set_y_value (0); /* 'Clock' */ m.put_v_varia (2); /* 'Unknown' */ m.call (dlplib.new_2); /*6*/ break; case 20: // goal: new(soccerPlayer(red2, _G439), _G577) m.put_struct (soccerPlayer__2,1); m.set_atom (red2__0); m.set_y_value (0); /* 'Clock' */ m.put_v_varia (2); /* 'Unknown' */ m.call (dlplib.new_2); /*6*/ break; case 21: // goal: new(soccerPlayer(red3, _G439), _G588) m.put_struct (soccerPlayer__2,1); m.set_atom (red3__0); m.set_y_value (0); /* 'Clock' */ m.put_v_varia (2); /* 'Unknown' */ m.call (dlplib.new_2); /*6*/ break; case 22: // goal: new(soccerPlayer(red11, _G439), _G599) m.put_struct (soccerPlayer__2,1); m.set_atom (red11__0); m.set_y_value (0); /* 'Clock' */ m.put_v_varia (2); /* 'Unknown' */ m.call (dlplib.new_2); /*6*/ break; case 23: // goal: <-(this, game_score, setGameScore(red, blue, 0, 0)) m.put_this (1); m.put_atom (game_score__0,2); m.put_struct (setGameScore__4,3); m.set_atom (red__0); m.set_atom (blue__0); m.set_int (0); m.set_int (0); m.call (dlplib.op_call_3); /*6*/ break; case 24: // goal: <-(this, game_score, showGameScore) m.put_this (1); m.put_atom (game_score__0,2); m.put_atom (showGameScore__0,3); m.deallocate (); m.exec (dlplib.op_call_3); break; case 25: m.end_rule (); break; } // switch return m.success; } // waspsoccer:main/0 exec() // waspsoccer:main/0 decls. public SymbolDescriptor data__1__0; public SymbolDescriptor new__1; public SymbolDescriptor game_clock__0; public SymbolDescriptor clock_pulse__1; public SymbolDescriptor this__0; public SymbolDescriptor get_time1__1; public SymbolDescriptor data__2__0; public SymbolDescriptor data__3__0; public SymbolDescriptor op__dot__2; public SymbolDescriptor sl_sr__0; public SymbolDescriptor data__4__0; public SymbolDescriptor ball__2; public SymbolDescriptor ball__0; public SymbolDescriptor goalKeeper__2; public SymbolDescriptor goalKeeper1__0; public SymbolDescriptor goalKeeper2__0; public SymbolDescriptor soccerPlayerUser__2; public SymbolDescriptor me_red10__0; public SymbolDescriptor soccerPlayer__2; public SymbolDescriptor blue9__0; public SymbolDescriptor blue8__0; public SymbolDescriptor blue7__0; public SymbolDescriptor blue11__0; public SymbolDescriptor red2__0; public SymbolDescriptor red3__0; public SymbolDescriptor red11__0; public SymbolDescriptor game_score__0; public SymbolDescriptor setGameScore__4; public SymbolDescriptor red__0; public SymbolDescriptor blue__0; public SymbolDescriptor showGameScore__0; // end of waspsoccer:main/0 decls. public boolean init (DLP m) { data__1__0 = m.define_symbol ("Load the game ..., Please wait...~n".intern(), 0); new__1 = m.define_symbol ("new".intern(), 1); game_clock__0 = m.define_symbol ("game_clock".intern(), 0); clock_pulse__1 = m.define_symbol ("clock_pulse".intern(), 1); this__0 = m.define_symbol ("this".intern(), 0); get_time1__1 = m.define_symbol ("get_time1".intern(), 1); data__2__0 = m.define_symbol ("the game will start in 5 seconds,~n".intern(), 0); data__3__0 = m.define_symbol ("the total playing time is ~w seconds,~n".intern(), 0); op__dot__2 = m.define_symbol (".".intern(), 2); sl_sr__0 = m.define_symbol ("[]".intern(), 0); data__4__0 = m.define_symbol ("the game startup,~n".intern(), 0); ball__2 = m.define_symbol ("ball".intern(), 2); ball__0 = m.define_symbol ("ball".intern(), 0); goalKeeper__2 = m.define_symbol ("goalKeeper".intern(), 2); goalKeeper1__0 = m.define_symbol ("goalKeeper1".intern(), 0); goalKeeper2__0 = m.define_symbol ("goalKeeper2".intern(), 0); soccerPlayerUser__2 = m.define_symbol ("soccerPlayerUser".intern(), 2); me_red10__0 = m.define_symbol ("me_red10".intern(), 0); soccerPlayer__2 = m.define_symbol ("soccerPlayer".intern(), 2); blue9__0 = m.define_symbol ("blue9".intern(), 0); blue8__0 = m.define_symbol ("blue8".intern(), 0); blue7__0 = m.define_symbol ("blue7".intern(), 0); blue11__0 = m.define_symbol ("blue11".intern(), 0); red2__0 = m.define_symbol ("red2".intern(), 0); red3__0 = m.define_symbol ("red3".intern(), 0); red11__0 = m.define_symbol ("red11".intern(), 0); game_score__0 = m.define_symbol ("game_score".intern(), 0); setGameScore__4 = m.define_symbol ("setGameScore".intern(), 4); red__0 = m.define_symbol ("red".intern(), 0); blue__0 = m.define_symbol ("blue".intern(), 0); showGameScore__0 = m.define_symbol ("showGameScore".intern(), 0); return true; } // waspsoccer:main/0 init() } // waspsoccer:main/0 final class waspsoccer_init_vars_0 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: init_vars case 0: //m.success = m.end_head (); break; case 1: // goal: assign_nlv_term(this, nreg, 0, './soccer6.wrl') m.put_this (1); m.put_nreg (2); m.put_int (0,3); m.put_atom (data__5__0,4); m.exec (dlplib.assign_nlv_term_4); break; case 2: m.end_rule (); break; } // switch return m.success; } // waspsoccer:init_vars/0 exec() // waspsoccer:init_vars/0 decls. public SymbolDescriptor data__5__0; // end of waspsoccer:init_vars/0 decls. public boolean init (DLP m) { data__5__0 = m.define_symbol ("./soccer6.wrl".intern(), 0); return true; } // waspsoccer:init_vars/0 init() } // waspsoccer:init_vars/0 class waspsoccer extends Code { public static ObjectDescriptor object; public static ObjectDescriptor _bcilib; public static MethodDescriptor main_0; public static MethodDescriptor loadURL_1; public boolean init (DLP m) { object = m.define_object ("waspsoccer".intern(), 1, 2, 1); _bcilib = m.header_object (object, "bcilib".intern(), 0); main_0 = m.define_method (object, 0, "main".intern(), 0); loadURL_1 = m.extern_method (object, 1, "loadURL".intern(), 1); m.define_nonlog (object, "url".intern(), 0); return true; } // waspsoccer init() } // class waspsoccer // end of unit waspsoccer code. // begin of unit game_clock code. final class game_clock_get_time1_1 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: get_time1(_G410) case 0: //m.success = m.get_x_varia (10,1); /* Time */ m.end_head (); break; case 1: // goal: assign_var_term(_G410, time_left) m.put_x_value (10,1); /* 'Time' */ m.put_z_value (0,2); /* time_left */ m.exec (dlplib.assign_var_term_2); break; case 2: m.end_rule (); break; } // switch return m.success; } // game_clock:get_time1/1 exec() // game_clock:get_time1/1 decls. // end of game_clock:get_time1/1 decls. public boolean init (DLP m) { return true; } // game_clock:get_time1/1 init() } // game_clock:get_time1/1 final class game_clock_set_time_1 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: set_time(_G410) case 0: //m.success = m.get_x_varia (10,1); /* Time */ m.end_head (); break; case 1: // goal: assign_nlv_term(this, nreg, 0, _G410) m.put_this (1); m.put_nreg (2); m.put_int (0,3); m.put_x_value (10,4); /* 'Time' */ m.exec (dlplib.assign_nlv_term_4); break; case 2: m.end_rule (); break; } // switch return m.success; } // game_clock:set_time/1 exec() // game_clock:set_time/1 decls. // end of game_clock:set_time/1 decls. public boolean init (DLP m) { return true; } // game_clock:set_time/1 init() } // game_clock:set_time/1 final class game_clock_init_vars_0 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: init_vars case 0: //m.success = m.end_head (); break; case 1: // goal: assign_nlv_term(this, nreg, 0, 5000) m.put_this (1); m.put_nreg (2); m.put_int (0,3); m.put_int (5000,4); m.exec (dlplib.assign_nlv_term_4); break; case 2: m.end_rule (); break; } // switch return m.success; } // game_clock:init_vars/0 exec() // game_clock:init_vars/0 decls. // end of game_clock:init_vars/0 decls. public boolean init (DLP m) { return true; } // game_clock:init_vars/0 init() } // game_clock:init_vars/0 class game_clock extends Code { public static ObjectDescriptor object; public static MethodDescriptor get_time1_1; public static MethodDescriptor set_time_1; public boolean init (DLP m) { object = m.define_object ("game_clock".intern(), 0, 2, 1); get_time1_1 = m.define_method (object, 0, "get_time1".intern(), 1); set_time_1 = m.define_method (object, 1, "set_time".intern(), 1); m.define_nonlog (object, "time_left".intern(), 0); return true; } // game_clock init() } // class game_clock // end of unit game_clock code. // begin of unit clock_pulse code. final class clock_pulse_clock_pulse_1 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: clock_pulse(_G410) case 0: m.allocate (4); //m.success = m.get_y_value (2,1); /* Clock */ m.cut_level (0); m.end_head (); break; case 1: // goal: repeat m.call (dlplib.repeat_0); /*6*/ break; case 2: // goal: sleep(1000) m.put_int (1000,1); m.call (dlplib.sleep_1); /*6*/ break; case 3: // goal: <-(this, _G410, get_time1(_G429)) m.put_this (1); m.put_y_value (2,2); /* 'Clock' */ m.put_struct (get_time1__1,3); m.set_y_value (3); /* 'Time' */ m.call (dlplib.op_call_3); /*6*/ break; case 4: // goal: is_eval(_G429-1, _G434) m.put_struct (op__sub__2,1); m.set_y_value (3); /* 'Time' */ m.set_int (1); m.put_y_value (1,2); /* 'Left' */ m.call (dlplib.is_eval_2); /*6*/ break; case 5: // goal: <-(this, _G410, set_time(_G434)) m.put_this (1); m.put_y_value (2,2); /* 'Clock' */ m.put_struct (set_time__1,3); m.set_y_value (1); /* 'Left' */ m.call (dlplib.op_call_3); /*6*/ break; case 6: // goal: _G434<1 m.put_y_value (1,1); /* 'Left' */ m.put_int (1,2); m.call (dlplib.op_cmp_lt_2); /*6*/ break; case 7: // goal: ! m.cut_tail (0); m.deallocate (); break; case 8: m.end_rule (); break; } // switch return m.success; } // clock_pulse:clock_pulse/1 exec() // clock_pulse:clock_pulse/1 decls. public SymbolDescriptor this__0; public SymbolDescriptor get_time1__1; public SymbolDescriptor op__sub__2; public SymbolDescriptor set_time__1; // end of clock_pulse:clock_pulse/1 decls. public boolean init (DLP m) { this__0 = m.define_symbol ("this".intern(), 0); get_time1__1 = m.define_symbol ("get_time1".intern(), 1); op__sub__2 = m.define_symbol ("-".intern(), 2); set_time__1 = m.define_symbol ("set_time".intern(), 1); return true; } // clock_pulse:clock_pulse/1 init() } // clock_pulse:clock_pulse/1 class clock_pulse extends Code { public static ObjectDescriptor object; public static MethodDescriptor clock_pulse_1; public boolean init (DLP m) { object = m.define_object ("clock_pulse".intern(), 0, 1, 0); clock_pulse_1 = m.define_method (object, 0, "clock_pulse".intern(), 1); return true; } // clock_pulse init() } // class clock_pulse // end of unit clock_pulse code. // begin of unit ball code. final class ball_ball_2 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: ball(_G413, _G414) case 0: m.allocate (2); //m.success = m.get_y_value (1,1); /* Name */ m.get_y_value (0,2); /* Clock */ m.end_head (); break; case 1: // goal: format('~w thread active.~n', [_G413]) m.put_atom (data__6__0,1); m.put_list (2); m.set_y_value (1); /* 'Name' */ m.set_nil (); m.call (dlplib.format_2); /*6*/ break; case 2: // goal: activity(_G413, _G414) m.put_y_value (1,1); /* 'Name' */ m.put_y_value (0,2); /* 'Clock' */ m.deallocate (); m.exec (1); /* activity_2 */ break; case 3: m.end_rule (); break; } // switch return m.success; } // ball:ball/2 exec() // ball:ball/2 decls. public SymbolDescriptor data__6__0; public SymbolDescriptor op__dot__2; public SymbolDescriptor sl_sr__0; // end of ball:ball/2 decls. public boolean init (DLP m) { data__6__0 = m.define_symbol ("~w thread active.~n".intern(), 0); op__dot__2 = m.define_symbol (".".intern(), 2); sl_sr__0 = m.define_symbol ("[]".intern(), 0); return true; } // ball:ball/2 init() } // ball:ball/2 final class ball_activity_2 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: activity(_G413, _G414) case 0: m.allocate (7); //m.success = m.get_y_value (5,1); /* Name */ m.get_y_value (6,2); /* Clock */ m.cut_level (0); m.end_head (); break; case 1: // goal: repeat m.call (dlplib.repeat_0); /*6*/ break; case 2: // goal: sleep(5000) m.put_int (5000,1); m.call (dlplib.sleep_1); /*6*/ break; case 3: // goal: <-(this, _G414, get_time1(_G433)) m.put_this (1); m.put_y_value (6,2); /* 'Clock' */ m.put_struct (get_time1__1,3); m.set_y_value (1); /* 'TimeLeft' */ m.call (dlplib.op_call_3); /*6*/ break; case 4: // goal: format(' ~w seconds left for the game.~n', [_G433]) m.put_atom (data__7__0,1); m.put_list (2); m.set_y_value (1); /* 'TimeLeft' */ m.set_nil (); m.call (dlplib.format_2); /*6*/ break; case 5: // goal: getPosition(_G413, _G448, _G449, _G450) m.put_y_value (5,1); /* 'Name' */ m.put_y_value (4,2); /* 'X' */ m.put_y_value (3,3); /* 'Y' */ m.put_y_value (2,4); /* 'Z' */ m.call (16) /*2*/; /* getPosition_4 */ break; case 6: // goal: setValidBallPosition(_G413, _G448, _G449, _G450) m.put_y_value (5,1); /* 'Name' */ m.put_y_value (4,2); /* 'X' */ m.put_y_value (3,3); /* 'Y' */ m.put_y_value (2,4); /* 'Z' */ m.call (5) /*2*/; /* setValidBallPosition_4 */ break; case 7: // goal: _G433<1 m.put_y_value (1,1); /* 'TimeLeft' */ m.put_int (1,2); m.call (dlplib.op_cmp_lt_2); /*6*/ break; case 8: // goal: <-(this, game_score, showGameScore) m.put_this (1); m.put_atom (game_score__0,2); m.put_atom (showGameScore__0,3); m.call (dlplib.op_call_3); /*6*/ break; case 9: // goal: ! m.cut_tail (0); m.deallocate (); break; case 10: m.end_rule (); break; } // switch return m.success; } // ball:activity/2 exec() // ball:activity/2 decls. public SymbolDescriptor this__0; public SymbolDescriptor get_time1__1; public SymbolDescriptor data__7__0; public SymbolDescriptor op__dot__2; public SymbolDescriptor sl_sr__0; public SymbolDescriptor game_score__0; public SymbolDescriptor showGameScore__0; // end of ball:activity/2 decls. public boolean init (DLP m) { this__0 = m.define_symbol ("this".intern(), 0); get_time1__1 = m.define_symbol ("get_time1".intern(), 1); data__7__0 = m.define_symbol (" ~w seconds left for the game.~n".intern(), 0); op__dot__2 = m.define_symbol (".".intern(), 2); sl_sr__0 = m.define_symbol ("[]".intern(), 0); game_score__0 = m.define_symbol ("game_score".intern(), 0); showGameScore__0 = m.define_symbol ("showGameScore".intern(), 0); return true; } // ball:activity/2 init() } // ball:activity/2 final class ball_validMinMax_4 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: validMinMax(_G413, _G414, _G415, _G416) case 0: m.allocate (3); //m.success = m.get_x_varia (11,1); /* V0 */ m.get_x_varia (12,2); /* Vmin */ m.get_y_value (1,3); /* Vmax */ m.get_y_value (0,4); /* VN */ m.end_head (); break; case 1: // goal: askValid_Min(_G413, _G414, _G426) m.put_x_value (11,1); /* 'V0' */ m.put_x_value (12,2); /* 'Vmin' */ m.put_y_value (2,3); /* 'V1' */ m.call (3) /*2*/; /* askValid_Min_3 */ break; case 2: // goal: askValid_Max(_G426, _G415, _G416) m.put_y_value (2,1); /* 'V1' */ m.put_y_value (1,2); /* 'Vmax' */ m.put_y_value (0,3); /* 'VN' */ m.deallocate (); m.exec (4); /* askValid_Max_3 */ break; case 3: m.end_rule (); break; } // switch return m.success; } // ball:validMinMax/4 exec() // ball:validMinMax/4 decls. // end of ball:validMinMax/4 decls. public boolean init (DLP m) { return true; } // ball:validMinMax/4 init() } // ball:validMinMax/4 final class ball_askValid_Min_3 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: askValid_Min(_G413, _G414, _G415) case 0: m.try_me_else (5); m.allocate (3); //m.success = m.get_x_varia (11,1); /* X */ m.get_y_value (0,2); /* Xmin */ m.get_y_value (1,3); /* Xval */ m.cut_level (2); m.end_head (); break; case 1: // goal: _G413<_G414 m.put_x_value (11,1); /* 'X' */ m.put_y_value (0,2); /* 'Xmin' */ m.call (dlplib.op_cmp_lt_2); /*6*/ break; case 2: // goal: ! m.cut_body (2); break; case 3: // goal: _G415=_G414 m.put_y_value (1,1); /* 'Xval' */ m.put_y_value (0,2); /* 'Xmin' */ m.deallocate (); m.exec (dlplib.op_eq_2); break; case 4: m.end_rule (); break; // head: askValid_Min(_G3276, _G3277, _G3278) case 5: m.trust_or_fail (); //m.success = m.get_x_varia (11,1); /* X */ m.get_v_varia (2); /* Unknown */ m.get_x_varia (13,3); /* Xval */ m.end_head (); break; case 6: // goal: _G3278=_G3276 m.put_x_value (13,1); /* 'Xval' */ m.put_x_value (11,2); /* 'X' */ m.exec (dlplib.op_eq_2); break; case 7: m.end_rule (); break; } // switch return m.success; } // ball:askValid_Min/3 exec() // ball:askValid_Min/3 decls. // end of ball:askValid_Min/3 decls. public boolean init (DLP m) { return true; } // ball:askValid_Min/3 init() } // ball:askValid_Min/3 final class ball_askValid_Max_3 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: askValid_Max(_G413, _G414, _G415) case 0: m.try_me_else (5); m.allocate (3); //m.success = m.get_x_varia (11,1); /* X */ m.get_y_value (0,2); /* Xmax */ m.get_y_value (1,3); /* Xval */ m.cut_level (2); m.end_head (); break; case 1: // goal: _G413>_G414 m.put_x_value (11,1); /* 'X' */ m.put_y_value (0,2); /* 'Xmax' */ m.call (dlplib.op_cmp_gt_2); /*6*/ break; case 2: // goal: ! m.cut_body (2); break; case 3: // goal: _G415=_G414 m.put_y_value (1,1); /* 'Xval' */ m.put_y_value (0,2); /* 'Xmax' */ m.deallocate (); m.exec (dlplib.op_eq_2); break; case 4: m.end_rule (); break; // head: askValid_Max(_G3276, _G3277, _G3278) case 5: m.trust_or_fail (); //m.success = m.get_x_varia (11,1); /* X */ m.get_v_varia (2); /* Unknown */ m.get_x_varia (13,3); /* Xval */ m.end_head (); break; case 6: // goal: _G3278=_G3276 m.put_x_value (13,1); /* 'Xval' */ m.put_x_value (11,2); /* 'X' */ m.exec (dlplib.op_eq_2); break; case 7: m.end_rule (); break; } // switch return m.success; } // ball:askValid_Max/3 exec() // ball:askValid_Max/3 decls. // end of ball:askValid_Max/3 decls. public boolean init (DLP m) { return true; } // ball:askValid_Max/3 init() } // ball:askValid_Max/3 final class ball_setValidBallPosition_4 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: setValidBallPosition(_G413, _G414, _G415, _G416) case 0: m.try_me_else (7); m.allocate (3); //m.success = m.get_v_varia (1); /* Unknown */ m.get_y_value (2,2); /* X */ m.get_v_varia (3); /* Unknown */ m.get_y_value (1,4); /* Z */ m.cut_level (0); m.end_head (); break; case 1: // goal: _G414==xmin m.put_y_value (2,1); /* 'X' */ m.put_z_value (2,2); /* xmin */ m.call (dlplib.op_cmp_ge_2); /*6*/ break; case 3: // goal: _G416==zmin m.put_y_value (1,1); /* 'Z' */ m.put_z_value (4,2); /* zmin */ m.call (dlplib.op_cmp_ge_2); /*6*/ break; case 5: // goal: ! m.cut_tail (0); m.deallocate (); break; case 6: m.end_rule (); break; // head: setValidBallPosition(_G3937, _G3938, _G3939, _G3940) case 7: m.trust_or_fail (); m.allocate (5); //m.success = m.get_y_value (3,1); /* Ball */ m.get_x_varia (11,2); /* X */ m.get_y_value (1,3); /* Y */ m.get_y_value (4,4); /* Z */ m.end_head (); break; case 8: // goal: validMinMax(_G3938, xmin, xmax, _G3951) m.put_x_value (11,1); /* 'X' */ m.put_z_value (2,2); /* xmin */ m.put_z_value (1,3); /* xmax */ m.put_y_value (2,4); /* 'Xnew' */ m.call (2) /*2*/; /* validMinMax_4 */ break; case 9: // goal: validMinMax(_G3940, zmin, zmax, _G3959) m.put_y_value (4,1); /* 'Z' */ m.put_z_value (4,2); /* zmin */ m.put_z_value (3,3); /* zmax */ m.put_y_value (0,4); /* 'Znew' */ m.call (2) /*2*/; /* validMinMax_4 */ break; case 10: // goal: setPosition(_G3937, _G3951, _G3939, _G3959) m.put_y_value (3,1); /* 'Ball' */ m.put_y_value (2,2); /* 'Xnew' */ m.put_y_value (1,3); /* 'Y' */ m.put_y_value (0,4); /* 'Znew' */ m.deallocate (); m.exec (17); /* setPosition_4 */ break; case 11: m.end_rule (); break; } // switch return m.success; } // ball:setValidBallPosition/4 exec() // ball:setValidBallPosition/4 decls. // end of ball:setValidBallPosition/4 decls. public boolean init (DLP m) { return true; } // ball:setValidBallPosition/4 init() } // ball:setValidBallPosition/4 final class ball_getStatus_2 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: getStatus(_G413, _G414) case 0: //m.success = m.get_v_varia (1); /* Unknown */ m.get_x_varia (11,2); /* Status */ m.end_head (); break; case 1: // goal: assign_var_term(_G414, status) m.put_x_value (11,1); /* 'Status' */ m.put_z_value (6,2); /* status */ m.exec (dlplib.assign_var_term_2); break; case 2: m.end_rule (); break; } // switch return m.success; } // ball:getStatus/2 exec() // ball:getStatus/2 decls. // end of ball:getStatus/2 decls. public boolean init (DLP m) { return true; } // ball:getStatus/2 init() } // ball:getStatus/2 final class ball_setStatus_2 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: setStatus(_G413, _G414) case 0: //m.success = m.get_v_varia (1); /* Unknown */ m.get_x_varia (11,2); /* Status */ m.end_head (); break; case 1: // goal: assign_nlv_term(this, nreg, 6, _G414) m.put_this (1); m.put_nreg (2); m.put_int (6,3); m.put_x_value (11,4); /* 'Status' */ m.exec (dlplib.assign_nlv_term_4); break; case 2: m.end_rule (); break; } // switch return m.success; } // ball:setStatus/2 exec() // ball:setStatus/2 decls. // end of ball:setStatus/2 decls. public boolean init (DLP m) { return true; } // ball:setStatus/2 init() } // ball:setStatus/2 final class ball_isLocked_1 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: isLocked(_G413) case 0: m.allocate (1); //m.success = m.get_x_varia (10,1); /* Ball */ m.end_head (); break; case 1: // goal: getStatus(_G413, _G422) m.put_x_value (10,1); /* 'Ball' */ m.put_y_value (0,2); /* 'Status' */ m.call (6) /*2*/; /* getStatus_2 */ break; case 2: // goal: _G422=lock m.put_y_value (0,1); /* 'Status' */ m.put_atom (lock__0,2); m.deallocate (); m.exec (dlplib.op_eq_2); break; case 3: m.end_rule (); break; } // switch return m.success; } // ball:isLocked/1 exec() // ball:isLocked/1 decls. public SymbolDescriptor lock__0; // end of ball:isLocked/1 decls. public boolean init (DLP m) { lock__0 = m.define_symbol ("lock".intern(), 0); return true; } // ball:isLocked/1 init() } // ball:isLocked/1 final class ball_isUnlocked_1 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: isUnlocked(_G413) case 0: m.allocate (1); //m.success = m.get_x_varia (10,1); /* Ball */ m.end_head (); break; case 1: // goal: getStatus(_G413, _G422) m.put_x_value (10,1); /* 'Ball' */ m.put_y_value (0,2); /* 'Status' */ m.call (6) /*2*/; /* getStatus_2 */ break; case 2: // goal: _G422=unlock m.put_y_value (0,1); /* 'Status' */ m.put_atom (unlock__0,2); m.deallocate (); m.exec (dlplib.op_eq_2); break; case 3: m.end_rule (); break; } // switch return m.success; } // ball:isUnlocked/1 exec() // ball:isUnlocked/1 decls. public SymbolDescriptor unlock__0; // end of ball:isUnlocked/1 decls. public boolean init (DLP m) { unlock__0 = m.define_symbol ("unlock".intern(), 0); return true; } // ball:isUnlocked/1 init() } // ball:isUnlocked/1 final class ball_lock_1 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: lock(_G413) case 0: //m.success = m.get_x_varia (10,1); /* Ball */ m.end_head (); break; case 1: // goal: setStatus(_G413, lock) m.put_x_value (10,1); /* 'Ball' */ m.put_atom (lock__0,2); m.exec (7); /* setStatus_2 */ break; case 2: m.end_rule (); break; } // switch return m.success; } // ball:lock/1 exec() // ball:lock/1 decls. public SymbolDescriptor lock__0; // end of ball:lock/1 decls. public boolean init (DLP m) { lock__0 = m.define_symbol ("lock".intern(), 0); return true; } // ball:lock/1 init() } // ball:lock/1 final class ball_unlock_1 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: unlock(_G413) case 0: //m.success = m.get_x_varia (10,1); /* Ball */ m.end_head (); break; case 1: // goal: setStatus(_G413, unlock) m.put_x_value (10,1); /* 'Ball' */ m.put_atom (unlock__0,2); m.exec (7); /* setStatus_2 */ break; case 2: m.end_rule (); break; } // switch return m.success; } // ball:unlock/1 exec() // ball:unlock/1 decls. public SymbolDescriptor unlock__0; // end of ball:unlock/1 decls. public boolean init (DLP m) { unlock__0 = m.define_symbol ("unlock".intern(), 0); return true; } // ball:unlock/1 init() } // ball:unlock/1 final class ball_kickedwithStaticStart_9 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: kickedwithStaticStart(_G413, _G414, _G415, _G416, _G417, _G418, _G419, _G420, ballSleepTime) case 0: m.allocate (15); //m.success = m.get_y_value (7,1); /* Ball */ m.get_y_value (6,2); /* Field */ m.get_y_value (14,3); /* X */ m.get_y_value (12,4); /* Y */ m.get_y_value (10,5); /* Z */ m.get_y_value (13,6); /* Vx */ m.get_y_value (11,7); /* Vy */ m.get_y_value (9,8); /* Vz */ m.get_z_value (5,9); /* ballSleepTime */ m.cut_level (0); m.end_head (); break; case 1: // goal: kickedSound(_G413) m.put_y_value (7,1); /* 'Ball' */ m.call (15) /*2*/; /* kickedSound_1 */ break; case 2: // goal: is_eval(_G419/4.9, _G434) m.put_struct (op__div__2,1); m.set_y_value (11); /* 'Vy' */ m.set_float (4.9f); m.put_y_value (2,2); /* 'Time' */ m.call (dlplib.is_eval_2); /*6*/ break; case 3: // goal: is_eval(ballSleepTime/1000, _G447) m.put_struct (op__div__2,1); m.set_z_value (5); /* ballSleepTime */ m.set_int (1000); m.put_y_value (1,2); /* 'BallSleepTimeInSecond' */ m.call (dlplib.is_eval_2); /*6*/ break; case 4: // goal: assign_nlv_term(this, nreg, 0, 1) m.put_this (1); m.put_nreg (2); m.put_int (0,3); m.put_int (1,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 5: // goal: repeat m.call (dlplib.repeat_0); /*6*/ break; case 6: // goal: sleep(ballSleepTime) m.put_z_value (5,1); /* ballSleepTime */ m.call (dlplib.sleep_1); /*6*/ break; case 7: // goal: is_eval(steps*_G447, _G470) m.put_struct (op__mul__2,1); m.set_z_value (0); /* steps */ m.set_y_value (1); /* 'BallSleepTimeInSecond' */ m.put_y_value (8,2); /* 'CurrentTime' */ m.call (dlplib.is_eval_2); /*6*/ break; case 8: // goal: is_eval(_G415+_G418*_G470, _G479) m.put_struct (op__mul__2,14); m.set_y_value (13); /* 'Vx' */ m.set_y_value (8); /* 'CurrentTime' */ m.put_struct (op__add__2,1); m.set_y_value (14); /* 'X' */ m.set_x_value (14); /* 'Xtmp' */ m.put_y_value (5,2); /* 'Xnew' */ m.call (dlplib.is_eval_2); /*6*/ break; case 9: // goal: is_eval(_G416+_G419*_G470-4.9*_G470*_G470, _G491) m.put_struct (op__mul__2,15); m.set_float (4.9f); m.set_y_value (8); /* 'CurrentTime' */ m.put_struct (op__mul__2,16); m.set_y_value (11); /* 'Vy' */ m.set_y_value (8); /* 'CurrentTime' */ m.put_struct (op__add__2,17); m.set_y_value (12); /* 'Y' */ m.set_x_value (16); /* 'Xtmp' */ m.put_struct (op__mul__2,18); m.set_x_value (15); /* 'Xtmp' */ m.set_y_value (8); /* 'CurrentTime' */ m.put_struct (op__sub__2,1); m.set_x_value (17); /* 'Xtmp' */ m.set_x_value (18); /* 'Xtmp' */ m.put_y_value (4,2); /* 'Ynew' */ m.call (dlplib.is_eval_2); /*6*/ break; case 10: // goal: is_eval(_G417+_G420*_G470, _G516) m.put_struct (op__mul__2,19); m.set_y_value (9); /* 'Vz' */ m.set_y_value (8); /* 'CurrentTime' */ m.put_struct (op__add__2,1); m.set_y_value (10); /* 'Z' */ m.set_x_value (19); /* 'Xtmp' */ m.put_y_value (3,2); /* 'Znew' */ m.call (dlplib.is_eval_2); /*6*/ break; case 11: // goal: setSFVec3f(_G413, _G414, _G479, _G491, _G516) m.put_y_value (7,1); /* 'Ball' */ m.put_y_value (6,2); /* 'Field' */ m.put_y_value (5,3); /* 'Xnew' */ m.put_y_value (4,4); /* 'Ynew' */ m.put_y_value (3,5); /* 'Znew' */ m.call (18) /*2*/; /* setSFVec3f_5 */ break; case 12: // goal: assign_nlv_expr(this, nreg, 0, steps+1) m.put_this (1); m.put_nreg (2); m.put_int (0,3); m.put_struct (op__add__2,4); m.set_z_value (0); /* steps */ m.set_int (1); m.call (dlplib.assign_nlv_expr_4); /*6*/ break; case 13: // goal: steps>_G434//_G447 m.put_z_value (0,1); /* steps */ m.put_struct (op__div_int__2,2); m.set_y_value (2); /* 'Time' */ m.set_y_value (1); /* 'BallSleepTimeInSecond' */ m.call (dlplib.op_cmp_gt_2); /*6*/ break; case 14: // goal: ! m.cut_tail (0); m.deallocate (); break; case 15: m.end_rule (); break; } // switch return m.success; } // ball:kickedwithStaticStart/9 exec() // ball:kickedwithStaticStart/9 decls. public SymbolDescriptor op__div__2; public SymbolDescriptor op__mul__2; public SymbolDescriptor op__add__2; public SymbolDescriptor op__sub__2; public SymbolDescriptor op__div_int__2; // end of ball:kickedwithStaticStart/9 decls. public boolean init (DLP m) { op__div__2 = m.define_symbol ("/".intern(), 2); op__mul__2 = m.define_symbol ("*".intern(), 2); op__add__2 = m.define_symbol ("+".intern(), 2); op__sub__2 = m.define_symbol ("-".intern(), 2); op__div_int__2 = m.define_symbol ("//".intern(), 2); return true; } // ball:kickedwithStaticStart/9 init() } // ball:kickedwithStaticStart/9 final class ball_kickedwithStaticStartRF_8 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: kickedwithStaticStartRF(_G413, _G414, _G415, _G416, _G417, _G418, _G419, _G420) case 0: m.allocate (10); //m.success = m.get_y_value (1,1); /* Ball */ m.get_y_value (0,2); /* Field */ m.get_y_value (7,3); /* X */ m.get_y_value (6,4); /* Y */ m.get_y_value (5,5); /* Z */ m.get_y_value (8,6); /* R1 */ m.get_y_value (9,7); /* F1 */ m.get_y_value (3,8); /* Vy */ m.end_head (); break; case 1: // goal: is_eval(_G419*cos(_G418), _G428) m.put_struct (cos__1,13); m.set_y_value (8); /* 'R1' */ m.put_struct (op__mul__2,1); m.set_y_value (9); /* 'F1' */ m.set_x_value (13); /* 'Xtmp' */ m.put_y_value (4,2); /* 'Vx' */ m.call (dlplib.is_eval_2); /*6*/ break; case 2: // goal: is_eval(_G419*sin(_G418), _G439) m.put_struct (sin__1,14); m.set_y_value (8); /* 'R1' */ m.put_struct (op__mul__2,1); m.set_y_value (9); /* 'F1' */ m.set_x_value (14); /* 'Xtmp' */ m.put_y_value (2,2); /* 'Vz' */ m.call (dlplib.is_eval_2); /*6*/ break; case 3: // goal: kickedwithStaticStart(_G413, _G414, _G415, _G416, _G417, _G428, _G420, _G439, ballSleepTime) m.put_y_value (1,1); /* 'Ball' */ m.put_y_value (0,2); /* 'Field' */ m.put_y_value (7,3); /* 'X' */ m.put_y_value (6,4); /* 'Y' */ m.put_y_value (5,5); /* 'Z' */ m.put_y_value (4,6); /* 'Vx' */ m.put_y_value (3,7); /* 'Vy' */ m.put_y_value (2,8); /* 'Vz' */ m.put_z_value (5,9); /* ballSleepTime */ m.call (12) /*2*/; /* kickedwithStaticStart_9 */ break; case 4: // goal: fallToGround(_G413, _G414) m.put_y_value (1,1); /* 'Ball' */ m.put_y_value (0,2); /* 'Field' */ m.deallocate (); m.exec (14); /* fallToGround_2 */ break; case 5: m.end_rule (); break; } // switch return m.success; } // ball:kickedwithStaticStartRF/8 exec() // ball:kickedwithStaticStartRF/8 decls. public SymbolDescriptor op__mul__2; public SymbolDescriptor cos__1; public SymbolDescriptor sin__1; // end of ball:kickedwithStaticStartRF/8 decls. public boolean init (DLP m) { op__mul__2 = m.define_symbol ("*".intern(), 2); cos__1 = m.define_symbol ("cos".intern(), 1); sin__1 = m.define_symbol ("sin".intern(), 1); return true; } // ball:kickedwithStaticStartRF/8 init() } // ball:kickedwithStaticStartRF/8 final class ball_fallToGround_2 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: fallToGround(_G413, _G414) case 0: m.allocate (4); //m.success = m.get_y_value (3,1); /* Ball */ m.get_y_value (2,2); /* Field */ m.end_head (); break; case 1: // goal: getSFVec3f(_G413, _G414, _G424, _G425, _G426) m.put_y_value (3,1); /* 'Ball' */ m.put_y_value (2,2); /* 'Field' */ m.put_y_value (1,3); /* 'X' */ m.put_v_varia (4); /* 'Unknown' */ m.put_y_value (0,5); /* 'Z' */ m.call (19) /*2*/; /* getSFVec3f_5 */ break; case 2: // goal: setSFVec3f(_G413, _G414, _G424, 0.25, _G426) m.put_y_value (3,1); /* 'Ball' */ m.put_y_value (2,2); /* 'Field' */ m.put_y_value (1,3); /* 'X' */ m.put_float (0.25f,4); m.put_y_value (0,5); /* 'Z' */ m.deallocate (); m.exec (18); /* setSFVec3f_5 */ break; case 3: m.end_rule (); break; } // switch return m.success; } // ball:fallToGround/2 exec() // ball:fallToGround/2 decls. // end of ball:fallToGround/2 decls. public boolean init (DLP m) { return true; } // ball:fallToGround/2 init() } // ball:fallToGround/2 final class ball_kickedSound_1 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: kickedSound(_G413) case 0: m.allocate (2); //m.success = m.get_y_value (1,1); /* Ball */ m.end_head (); break; case 1: // goal: getSFTime(myTimeSensor, time, _G423) m.put_atom (myTimeSensor__0,1); m.put_atom (time__0,2); m.put_y_value (0,3); /* 'Time' */ m.call (20) /*2*/; /* getSFTime_3 */ break; case 2: // goal: setSFTime(_G413, kickedSoundStartTime, _G423) m.put_y_value (1,1); /* 'Ball' */ m.put_atom (kickedSoundStartTime__0,2); m.put_y_value (0,3); /* 'Time' */ m.deallocate (); m.exec (21); /* setSFTime_3 */ break; case 3: m.end_rule (); break; } // switch return m.success; } // ball:kickedSound/1 exec() // ball:kickedSound/1 decls. public SymbolDescriptor myTimeSensor__0; public SymbolDescriptor time__0; public SymbolDescriptor kickedSoundStartTime__0; // end of ball:kickedSound/1 decls. public boolean init (DLP m) { myTimeSensor__0 = m.define_symbol ("myTimeSensor".intern(), 0); time__0 = m.define_symbol ("time".intern(), 0); kickedSoundStartTime__0 = m.define_symbol ("kickedSoundStartTime".intern(), 0); return true; } // ball:kickedSound/1 init() } // ball:kickedSound/1 final class ball_init_vars_0 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: init_vars case 0: m.allocate (0); //m.success = m.end_head (); break; case 1: // goal: assign_nlv_term(this, nreg, 0, no_init) m.put_this (1); m.put_nreg (2); m.put_int (0,3); m.put_atom (no_init__0,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 2: // goal: assign_nlv_term(this, nreg, 1, 50) m.put_this (1); m.put_nreg (2); m.put_int (1,3); m.put_float (50f,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 3: // goal: assign_nlv_term(this, nreg, 2, -50) m.put_this (1); m.put_nreg (2); m.put_int (2,3); m.put_float (-50f,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 4: // goal: assign_nlv_term(this, nreg, 3, 32) m.put_this (1); m.put_nreg (2); m.put_int (3,3); m.put_float (32f,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 5: // goal: assign_nlv_term(this, nreg, 4, -32) m.put_this (1); m.put_nreg (2); m.put_int (4,3); m.put_float (-32f,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 6: // goal: assign_nlv_term(this, nreg, 5, 300) m.put_this (1); m.put_nreg (2); m.put_int (5,3); m.put_int (300,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 7: // goal: assign_nlv_term(this, nreg, 6, unlock) m.put_this (1); m.put_nreg (2); m.put_int (6,3); m.put_atom (unlock__0,4); m.deallocate (); m.exec (dlplib.assign_nlv_term_4); break; case 8: m.end_rule (); break; } // switch return m.success; } // ball:init_vars/0 exec() // ball:init_vars/0 decls. public SymbolDescriptor no_init__0; public SymbolDescriptor unlock__0; // end of ball:init_vars/0 decls. public boolean init (DLP m) { no_init__0 = m.define_symbol ("no_init".intern(), 0); unlock__0 = m.define_symbol ("unlock".intern(), 0); return true; } // ball:init_vars/0 init() } // ball:init_vars/0 class ball extends Code { public static ObjectDescriptor object; public static ObjectDescriptor _bcilib; public static MethodDescriptor ball_2; public static MethodDescriptor activity_2; public static MethodDescriptor validMinMax_4; public static MethodDescriptor askValid_Min_3; public static MethodDescriptor askValid_Max_3; public static MethodDescriptor setValidBallPosition_4; public static MethodDescriptor getStatus_2; public static MethodDescriptor setStatus_2; public static MethodDescriptor isLocked_1; public static MethodDescriptor isUnlocked_1; public static MethodDescriptor lock_1; public static MethodDescriptor unlock_1; public static MethodDescriptor kickedwithStaticStart_9; public static MethodDescriptor kickedwithStaticStartRF_8; public static MethodDescriptor fallToGround_2; public static MethodDescriptor kickedSound_1; public static MethodDescriptor getPosition_4; public static MethodDescriptor setPosition_4; public static MethodDescriptor setSFVec3f_5; public static MethodDescriptor getSFVec3f_5; public static MethodDescriptor getSFTime_3; public static MethodDescriptor setSFTime_3; public boolean init (DLP m) { object = m.define_object ("ball".intern(), 1, 22, 7); _bcilib = m.header_object (object, "bcilib".intern(), 0); ball_2 = m.define_method (object, 0, "ball".intern(), 2); activity_2 = m.define_method (object, 1, "activity".intern(), 2); validMinMax_4 = m.define_method (object, 2, "validMinMax".intern(), 4); askValid_Min_3 = m.define_method (object, 3, "askValid_Min".intern(), 3); askValid_Max_3 = m.define_method (object, 4, "askValid_Max".intern(), 3); setValidBallPosition_4 = m.define_method (object, 5, "setValidBallPosition".intern(), 4); getStatus_2 = m.define_method (object, 6, "getStatus".intern(), 2); setStatus_2 = m.define_method (object, 7, "setStatus".intern(), 2); isLocked_1 = m.define_method (object, 8, "isLocked".intern(), 1); isUnlocked_1 = m.define_method (object, 9, "isUnlocked".intern(), 1); lock_1 = m.define_method (object, 10, "lock".intern(), 1); unlock_1 = m.define_method (object, 11, "unlock".intern(), 1); kickedwithStaticStart_9 = m.define_method (object, 12, "kickedwithStaticStart".intern(), 9); kickedwithStaticStartRF_8 = m.define_method (object, 13, "kickedwithStaticStartRF".intern(), 8); fallToGround_2 = m.define_method (object, 14, "fallToGround".intern(), 2); kickedSound_1 = m.define_method (object, 15, "kickedSound".intern(), 1); getPosition_4 = m.extern_method (object, 16, "getPosition".intern(), 4); setPosition_4 = m.extern_method (object, 17, "setPosition".intern(), 4); setSFVec3f_5 = m.extern_method (object, 18, "setSFVec3f".intern(), 5); getSFVec3f_5 = m.extern_method (object, 19, "getSFVec3f".intern(), 5); getSFTime_3 = m.extern_method (object, 20, "getSFTime".intern(), 3); setSFTime_3 = m.extern_method (object, 21, "setSFTime".intern(), 3); m.define_nonlog (object, "steps".intern(), 0); m.define_nonlog (object, "xmax".intern(), 1); m.define_nonlog (object, "xmin".intern(), 2); m.define_nonlog (object, "zmax".intern(), 3); m.define_nonlog (object, "zmin".intern(), 4); m.define_nonlog (object, "ballSleepTime".intern(), 5); m.define_nonlog (object, "status".intern(), 6); return true; } // ball init() } // class ball // end of unit ball code. // begin of unit goalKeeper code. final class goalKeeper_goalKeeper_2 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: goalKeeper(_G416, _G417) case 0: m.allocate (2); //m.success = m.get_y_value (1,1); /* Name */ m.get_y_value (0,2); /* Clock */ m.end_head (); break; case 1: // goal: setSFInt32(_G416, whichChoice, 0) m.put_y_value (1,1); /* 'Name' */ m.put_atom (whichChoice__0,2); m.put_int (0,3); m.call (14) /*2*/; /* setSFInt32_3 */ break; case 2: // goal: format('~w thread active.~n', [_G416]) m.put_atom (data__8__0,1); m.put_list (2); m.set_y_value (1); /* 'Name' */ m.set_nil (); m.call (dlplib.format_2); /*6*/ break; case 3: // goal: activity(_G416, _G417) m.put_y_value (1,1); /* 'Name' */ m.put_y_value (0,2); /* 'Clock' */ m.deallocate (); m.exec (1); /* activity_2 */ break; case 4: m.end_rule (); break; } // switch return m.success; } // goalKeeper:goalKeeper/2 exec() // goalKeeper:goalKeeper/2 decls. public SymbolDescriptor whichChoice__0; public SymbolDescriptor data__8__0; public SymbolDescriptor op__dot__2; public SymbolDescriptor sl_sr__0; // end of goalKeeper:goalKeeper/2 decls. public boolean init (DLP m) { whichChoice__0 = m.define_symbol ("whichChoice".intern(), 0); data__8__0 = m.define_symbol ("~w thread active.~n".intern(), 0); op__dot__2 = m.define_symbol (".".intern(), 2); sl_sr__0 = m.define_symbol ("[]".intern(), 0); return true; } // goalKeeper:goalKeeper/2 init() } // goalKeeper:goalKeeper/2 final class goalKeeper_activity_2 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: activity(_G416, _G417) case 0: m.allocate (12); //m.success = m.get_y_value (1,1); /* Name */ m.get_y_value (11,2); /* Clock */ m.cut_level (0); m.end_head (); break; case 1: // goal: repeat m.call (dlplib.repeat_0); /*6*/ break; case 2: // goal: sleep(2000) m.put_int (2000,1); m.call (dlplib.sleep_1); /*6*/ break; case 3: // goal: <-(this, _G417, get_time1(_G436)) m.put_this (1); m.put_y_value (11,2); /* 'Clock' */ m.put_struct (get_time1__1,3); m.set_y_value (2); /* 'TimeLeft' */ m.call (dlplib.op_call_3); /*6*/ break; case 4: // goal: setDefaultPosition(_G416) m.put_y_value (1,1); /* 'Name' */ m.call (8) /*2*/; /* setDefaultPosition_1 */ break; case 5: // goal: look_at_ball(_G416, ball) m.put_y_value (1,1); /* 'Name' */ m.put_atom (ball__0,2); m.call (15) /*2*/; /* look_at_ball_2 */ break; case 6: // goal: getPositionInformation(_G416, ball, _G454, _G455, _G456, _G457, _G458, _G459, _G460) m.put_y_value (1,1); /* 'Name' */ m.put_atom (ball__0,2); m.put_y_value (9,3); /* 'X' */ m.put_y_value (8,4); /* 'Y' */ m.put_y_value (7,5); /* 'Z' */ m.put_y_value (6,6); /* 'Xball' */ m.put_y_value (5,7); /* 'Yball' */ m.put_y_value (4,8); /* 'Zball' */ m.put_y_value (3,9); /* 'Dist' */ m.call (4) /*2*/; /* getPositionInformation_9 */ break; case 7: // goal: findHowtoReact(_G416, ball, _G454, _G455, _G456, _G457, _G458, _G459, _G460, _G474) m.put_y_value (1,1); /* 'Name' */ m.put_atom (ball__0,2); m.put_y_value (9,3); /* 'X' */ m.put_y_value (8,4); /* 'Y' */ m.put_y_value (7,5); /* 'Z' */ m.put_y_value (6,6); /* 'Xball' */ m.put_y_value (5,7); /* 'Yball' */ m.put_y_value (4,8); /* 'Zball' */ m.put_y_value (3,9); /* 'Dist' */ m.put_y_value (10,10); /* 'Action' */ m.call (5) /*2*/; /* findHowtoReact_10 */ break; case 8: // goal: nonvar(_G474) m.put_y_value (10,1); /* 'Action' */ m.call (dlplib.nonvar_1); /*6*/ break; case 9: // goal: format('~w action: ~w ~n', [_G416, _G474]) m.put_list (10); m.set_y_value (10); /* 'Action' */ m.set_nil (); m.put_atom (data__9__0,1); m.put_list (2); m.set_y_value (1); /* 'Name' */ m.set_x_value (10); /* 'Xtmp' */ m.call (dlplib.format_2); /*6*/ break; case 10: // goal: doAction(_G474, _G416, ball, _G454, _G455, _G456, _G457, _G458, _G459, _G460) m.put_y_value (10,1); /* 'Action' */ m.put_y_value (1,2); /* 'Name' */ m.put_atom (ball__0,3); m.put_y_value (9,4); /* 'X' */ m.put_y_value (8,5); /* 'Y' */ m.put_y_value (7,6); /* 'Z' */ m.put_y_value (6,7); /* 'Xball' */ m.put_y_value (5,8); /* 'Yball' */ m.put_y_value (4,9); /* 'Zball' */ m.put_y_value (3,10); /* 'Dist' */ m.call (10) /*2*/; /* doAction_10 */ break; case 11: // goal: _G436<1 m.put_y_value (2,1); /* 'TimeLeft' */ m.put_int (1,2); m.call (dlplib.op_cmp_lt_2); /*6*/ break; case 12: // goal: quitGame(_G416) m.put_y_value (1,1); /* 'Name' */ m.call (3) /*2*/; /* quitGame_1 */ break; case 13: // goal: ! m.cut_tail (0); m.deallocate (); break; case 14: m.end_rule (); break; } // switch return m.success; } // goalKeeper:activity/2 exec() // goalKeeper:activity/2 decls. public SymbolDescriptor this__0; public SymbolDescriptor get_time1__1; public SymbolDescriptor ball__0; public SymbolDescriptor data__9__0; public SymbolDescriptor op__dot__2; public SymbolDescriptor sl_sr__0; // end of goalKeeper:activity/2 decls. public boolean init (DLP m) { this__0 = m.define_symbol ("this".intern(), 0); get_time1__1 = m.define_symbol ("get_time1".intern(), 1); ball__0 = m.define_symbol ("ball".intern(), 0); data__9__0 = m.define_symbol ("~w action: ~w ~n".intern(), 0); op__dot__2 = m.define_symbol (".".intern(), 2); sl_sr__0 = m.define_symbol ("[]".intern(), 0); return true; } // goalKeeper:activity/2 init() } // goalKeeper:activity/2 final class goalKeeper_stadiumExit_3 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: stadiumExit(0, 0, -50) case 0: //m.success = m.get_float (0f,1); m.get_float (0f,2); m.get_float (-50f,3); m.end_head (); break; case 1: m.end_fact (); break; } // switch return m.success; } // goalKeeper:stadiumExit/3 exec() // goalKeeper:stadiumExit/3 decls. // end of goalKeeper:stadiumExit/3 decls. public boolean init (DLP m) { return true; } // goalKeeper:stadiumExit/3 init() } // goalKeeper:stadiumExit/3 final class goalKeeper_quitGame_1 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: quitGame(_G416) case 0: m.allocate (8); //m.success = m.get_y_value (0,1); /* Player */ m.end_head (); break; case 1: // goal: format('~w is gone.~n', [_G416]) m.put_atom (data__10__0,1); m.put_list (2); m.set_y_value (0); /* 'Player' */ m.set_nil (); m.call (dlplib.format_2); /*6*/ break; case 2: // goal: getSFVec3f(_G416, position, _G435, _G436, _G437) m.put_y_value (0,1); /* 'Player' */ m.put_atom (position__0,2); m.put_y_value (7,3); /* 'X' */ m.put_y_value (6,4); /* 'Y' */ m.put_y_value (5,5); /* 'Z' */ m.call (16) /*2*/; /* getSFVec3f_5 */ break; case 3: // goal: stadiumExit(_G442, _G443, _G444) m.put_y_value (4,1); /* 'X1' */ m.put_y_value (3,2); /* 'Y1' */ m.put_y_value (2,3); /* 'Z1' */ m.call (2) /*2*/; /* stadiumExit_3 */ break; case 4: // goal: distance2D(_G435, _G437, _G442, _G444, _G453) m.put_y_value (7,1); /* 'X' */ m.put_y_value (5,2); /* 'Z' */ m.put_y_value (4,3); /* 'X1' */ m.put_y_value (2,4); /* 'Z1' */ m.put_y_value (1,5); /* 'Dist' */ m.call (17) /*2*/; /* distance2D_5 */ break; case 5: // goal: run_to_position(_G416, _G435, _G436, _G437, _G442, _G443, _G444, _G453) m.put_y_value (0,1); /* 'Player' */ m.put_y_value (7,2); /* 'X' */ m.put_y_value (6,3); /* 'Y' */ m.put_y_value (5,4); /* 'Z' */ m.put_y_value (4,5); /* 'X1' */ m.put_y_value (3,6); /* 'Y1' */ m.put_y_value (2,7); /* 'Z1' */ m.put_y_value (1,8); /* 'Dist' */ m.call (12) /*2*/; /* run_to_position_8 */ break; case 6: // goal: setSFInt32(_G416, whichChoice, -1) m.put_y_value (0,1); /* 'Player' */ m.put_atom (whichChoice__0,2); m.put_int (-1,3); m.deallocate (); m.exec (14); /* setSFInt32_3 */ break; case 7: m.end_rule (); break; } // switch return m.success; } // goalKeeper:quitGame/1 exec() // goalKeeper:quitGame/1 decls. public SymbolDescriptor data__10__0; public SymbolDescriptor op__dot__2; public SymbolDescriptor sl_sr__0; public SymbolDescriptor position__0; public SymbolDescriptor whichChoice__0; // end of goalKeeper:quitGame/1 decls. public boolean init (DLP m) { data__10__0 = m.define_symbol ("~w is gone.~n".intern(), 0); op__dot__2 = m.define_symbol (".".intern(), 2); sl_sr__0 = m.define_symbol ("[]".intern(), 0); position__0 = m.define_symbol ("position".intern(), 0); whichChoice__0 = m.define_symbol ("whichChoice".intern(), 0); return true; } // goalKeeper:quitGame/1 init() } // goalKeeper:quitGame/1 final class goalKeeper_getPositionInformation_9 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: getPositionInformation(_G416, _G417, _G418, _G419, _G420, _G421, _G422, _G423, _G424) case 0: m.allocate (7); //m.success = m.get_y_value (6,1); /* Player */ m.get_x_varia (14,2); /* Ball */ m.get_y_value (4,3); /* X */ m.get_y_value (5,4); /* Y */ m.get_y_value (3,5); /* Z */ m.get_y_value (2,6); /* X1 */ m.get_x_varia (15,7); /* Y1 */ m.get_y_value (1,8); /* Z1 */ m.get_y_value (0,9); /* Dist */ m.end_head (); break; case 1: // goal: getPosition(_G417, _G421, _G422, _G423) m.put_x_value (14,1); /* 'Ball' */ m.put_y_value (2,2); /* 'X1' */ m.put_x_value (15,3); /* 'Y1' */ m.put_y_value (1,4); /* 'Z1' */ m.call (18) /*2*/; /* getPosition_4 */ break; case 2: // goal: getSFVec3f(_G416, position, _G418, _G419, _G420) m.put_y_value (6,1); /* 'Player' */ m.put_atom (position__0,2); m.put_y_value (4,3); /* 'X' */ m.put_y_value (5,4); /* 'Y' */ m.put_y_value (3,5); /* 'Z' */ m.call (16) /*2*/; /* getSFVec3f_5 */ break; case 3: // goal: distance2D(_G418, _G420, _G421, _G423, _G424) m.put_y_value (4,1); /* 'X' */ m.put_y_value (3,2); /* 'Z' */ m.put_y_value (2,3); /* 'X1' */ m.put_y_value (1,4); /* 'Z1' */ m.put_y_value (0,5); /* 'Dist' */ m.deallocate (); m.exec (17); /* distance2D_5 */ break; case 4: m.end_rule (); break; } // switch return m.success; } // goalKeeper:getPositionInformation/9 exec() // goalKeeper:getPositionInformation/9 decls. public SymbolDescriptor position__0; // end of goalKeeper:getPositionInformation/9 decls. public boolean init (DLP m) { position__0 = m.define_symbol ("position".intern(), 0); return true; } // goalKeeper:getPositionInformation/9 init() } // goalKeeper:getPositionInformation/9 final class goalKeeper_findHowtoReact_10 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: findHowtoReact(_G416, _G417, _G418, _G419, _G420, _G421, _G422, _G423, _G424, record_score_then_throw) case 0: m.try_me_else (8); m.allocate (7); //m.success = m.get_x_varia (14,1); /* Player */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_y_value (4,6); /* X1 */ m.get_v_varia (7); /* Unknown */ m.get_y_value (1,8); /* Z1 */ m.get_v_varia (9); /* Unknown */ m.get_atom (record_score_then_throw__0,10); m.cut_level (0); m.end_head (); break; case 1: // goal: goalArea(_G416, _G434, _G435, _G436, _G437, _G438) m.put_x_value (14,1); /* 'Player' */ m.put_v_varia (2); /* 'Unknown' */ m.put_y_value (6,3); /* 'GoalXMin' */ m.put_y_value (5,4); /* 'GoalXMax' */ m.put_y_value (3,5); /* 'GoalZMin' */ m.put_y_value (2,6); /* 'GoalZMax' */ m.call (6) /*2*/; /* goalArea_6 */ break; case 2: // goal: _G435=<_G421 m.put_y_value (6,1); /* 'GoalXMin' */ m.put_y_value (4,2); /* 'X1' */ m.call (dlplib.op_cmp_le_2); /*6*/ break; case 3: // goal: _G436>=_G421 m.put_y_value (5,1); /* 'GoalXMax' */ m.put_y_value (4,2); /* 'X1' */ m.call (dlplib.op_cmp_ge_2); /*6*/ break; case 4: // goal: _G437=<_G423 m.put_y_value (3,1); /* 'GoalZMin' */ m.put_y_value (1,2); /* 'Z1' */ m.call (dlplib.op_cmp_le_2); /*6*/ break; case 5: // goal: _G438>=_G423 m.put_y_value (2,1); /* 'GoalZMax' */ m.put_y_value (1,2); /* 'Z1' */ m.call (dlplib.op_cmp_ge_2); /*6*/ break; case 6: // goal: ! m.cut_tail (0); m.deallocate (); break; case 7: m.end_rule (); break; // head: findHowtoReact(_G6580, _G6581, _G6582, _G6583, _G6584, _G6585, _G6586, _G6587, _G6588, run_then_kick) case 8: m.retry_me_else (13); m.allocate (2); //m.success = m.get_v_varia (1); /* Unknown */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_v_varia (6); /* Unknown */ m.get_v_varia (7); /* Unknown */ m.get_v_varia (8); /* Unknown */ m.get_y_value (1,9); /* Dist */ m.get_atom (run_then_kick__0,10); m.cut_level (0); m.end_head (); break; case 9: // goal: _G6588>holdableDistance m.put_y_value (1,1); /* 'Dist' */ m.put_z_value (1,2); /* holdableDistance */ m.call (dlplib.op_cmp_gt_2); /*6*/ break; case 10: // goal: _G6588=watchableDistance m.put_x_value (22,1); /* 'Dist' */ m.put_z_value (3,2); /* watchableDistance */ m.call (dlplib.op_cmp_gt_2); /*6*/ break; case 19: // goal: ! m.cut_tail (0); m.deallocate (); break; case 20: m.end_rule (); break; // head: findHowtoReact(_G17359, _G17360, _G17361, _G17362, _G17363, _G17364, _G17365, _G17366, _G17367, do_nothing) case 21: m.retry_me_else (25); m.allocate (1); //m.success = m.get_v_varia (1); /* Unknown */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_v_varia (6); /* Unknown */ m.get_v_varia (7); /* Unknown */ m.get_v_varia (8); /* Unknown */ m.get_x_varia (22,9); /* Dist */ m.get_atom (do_nothing__0,10); m.cut_level (0); m.end_head (); break; case 22: // goal: var _G17367 m.put_x_value (22,1); /* 'Dist' */ m.call (dlplib.var_1); /*6*/ break; case 23: // goal: ! m.cut_tail (0); m.deallocate (); break; case 24: m.end_rule (); break; // head: findHowtoReact(_G20525, _G20526, _G20527, _G20528, _G20529, _G20530, _G20531, _G20532, _G20533, ready_for_goal) case 25: m.retry_me_else (30); m.allocate (2); //m.success = m.get_v_varia (1); /* Unknown */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_v_varia (6); /* Unknown */ m.get_v_varia (7); /* Unknown */ m.get_v_varia (8); /* Unknown */ m.get_y_value (1,9); /* Dist */ m.get_atom (ready_for_goal__0,10); m.cut_level (0); m.end_head (); break; case 26: // goal: _G20533>stopableDistance m.put_y_value (1,1); /* 'Dist' */ m.put_z_value (4,2); /* stopableDistance */ m.call (dlplib.op_cmp_gt_2); /*6*/ break; case 27: // goal: _G20533kickableGoalDistance m.put_y_value (1,1); /* 'Dist1' */ m.put_z_value (7,2); /* kickableGoalDistance */ m.call (dlplib.op_cmp_gt_2); /*6*/ break; case 10: // goal: ! m.cut_tail (0); m.deallocate (); break; case 11: m.end_rule (); break; // head: findHowtoReact(_G10029, _G10030, _G10031, _G10032, _G10033, _G10034, _G10035, _G10036, _G10037, _G10038, _G10039, _G10040, run_to_ball) case 12: m.retry_me_else (20); m.allocate (8); //m.success = m.get_y_value (5,1); /* Player */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_y_value (3,6); /* X1 */ m.get_y_value (2,7); /* Y1 */ m.get_y_value (1,8); /* Z1 */ m.get_y_value (4,9); /* Dist */ m.get_v_varia (10); /* Unknown */ m.get_v_varia (11); /* Unknown */ m.get_v_varia (12); /* Unknown */ m.get_atom (run_to_ball__0,13); m.cut_level (0); m.end_head (); break; case 13: // goal: _G10037>kickableDistance m.put_y_value (4,1); /* 'Dist' */ m.put_z_value (5,2); /* kickableDistance */ m.call (dlplib.op_cmp_gt_2); /*6*/ break; case 14: // goal: getFieldAreaInformation(_G10029, _G10056, _G10057, _G10058, _G10059) m.put_y_value (5,1); /* 'Player' */ m.put_v_varia (2); /* 'Unknown' */ m.put_v_varia (3); /* 'Unknown' */ m.put_y_value (7,4); /* 'FieldMin' */ m.put_y_value (6,5); /* 'FieldMax' */ m.call (3) /*2*/; /* getFieldAreaInformation_5 */ break; case 15: // goal: _G10058=<_G10034 m.put_y_value (7,1); /* 'FieldMin' */ m.put_y_value (3,2); /* 'X1' */ m.call (dlplib.op_cmp_le_2); /*6*/ break; case 16: // goal: _G10059>=_G10034 m.put_y_value (6,1); /* 'FieldMax' */ m.put_y_value (3,2); /* 'X1' */ m.call (dlplib.op_cmp_ge_2); /*6*/ break; case 17: // goal: nearest(_G10029, _G10037, position(_G10034, _G10035, _G10036)) m.put_y_value (5,1); /* 'Player' */ m.put_y_value (4,2); /* 'Dist' */ m.put_struct (position__3,3); m.set_y_value (3); /* 'X1' */ m.set_y_value (2); /* 'Y1' */ m.set_y_value (1); /* 'Z1' */ m.call (12) /*2*/; /* nearest_3 */ break; case 18: // goal: ! m.cut_tail (0); m.deallocate (); break; case 19: m.end_rule (); break; // head: findHowtoReact(_G17046, _G17047, _G17048, _G17049, _G17050, _G17051, _G17052, _G17053, _G17054, _G17055, _G17056, _G17057, move_around) case 20: m.retry_me_else (26); m.allocate (4); //m.success = m.get_y_value (3,1); /* Player */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_y_value (2,6); /* X1 */ m.get_v_varia (7); /* Unknown */ m.get_v_varia (8); /* Unknown */ m.get_x_varia (22,9); /* Dist */ m.get_v_varia (10); /* Unknown */ m.get_v_varia (11); /* Unknown */ m.get_v_varia (12); /* Unknown */ m.get_atom (move_around__0,13); m.cut_level (0); m.end_head (); break; case 21: // goal: _G17054>kickableDistance m.put_x_value (22,1); /* 'Dist' */ m.put_z_value (5,2); /* kickableDistance */ m.call (dlplib.op_cmp_gt_2); /*6*/ break; case 22: // goal: getFieldAreaInformation(_G17046, _G17073, _G17074, _G17075, _G17076) m.put_y_value (3,1); /* 'Player' */ m.put_v_varia (2); /* 'Unknown' */ m.put_v_varia (3); /* 'Unknown' */ m.put_y_value (1,4); /* 'FieldMin' */ m.put_v_varia (5); /* 'Unknown' */ m.call (3) /*2*/; /* getFieldAreaInformation_5 */ break; case 23: // goal: _G17051<_G17075 m.put_y_value (2,1); /* 'X1' */ m.put_y_value (1,2); /* 'FieldMin' */ m.call (dlplib.op_cmp_lt_2); /*6*/ break; case 24: // goal: ! m.cut_tail (0); m.deallocate (); break; case 25: m.end_rule (); break; // head: findHowtoReact(_G22741, _G22742, _G22743, _G22744, _G22745, _G22746, _G22747, _G22748, _G22749, _G22750, _G22751, _G22752, move_around) case 26: m.retry_me_else (32); m.allocate (4); //m.success = m.get_y_value (3,1); /* Player */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_y_value (2,6); /* X1 */ m.get_v_varia (7); /* Unknown */ m.get_v_varia (8); /* Unknown */ m.get_x_varia (22,9); /* Dist */ m.get_v_varia (10); /* Unknown */ m.get_v_varia (11); /* Unknown */ m.get_v_varia (12); /* Unknown */ m.get_atom (move_around__0,13); m.cut_level (0); m.end_head (); break; case 27: // goal: _G22749>kickableDistance m.put_x_value (22,1); /* 'Dist' */ m.put_z_value (5,2); /* kickableDistance */ m.call (dlplib.op_cmp_gt_2); /*6*/ break; case 28: // goal: getFieldAreaInformation(_G22741, _G22768, _G22769, _G22770, _G22771) m.put_y_value (3,1); /* 'Player' */ m.put_v_varia (2); /* 'Unknown' */ m.put_v_varia (3); /* 'Unknown' */ m.put_v_varia (4); /* 'Unknown' */ m.put_y_value (1,5); /* 'FieldMax' */ m.call (3) /*2*/; /* getFieldAreaInformation_5 */ break; case 29: // goal: _G22746>_G22771 m.put_y_value (2,1); /* 'X1' */ m.put_y_value (1,2); /* 'FieldMax' */ m.call (dlplib.op_cmp_gt_2); /*6*/ break; case 30: // goal: ! m.cut_tail (0); m.deallocate (); break; case 31: m.end_rule (); break; // head: findHowtoReact(_G28233, _G28234, _G28235, _G28236, _G28237, _G28238, _G28239, _G28240, _G28241, _G28242, _G28243, _G28244, _G28245) case 32: m.trust_or_fail (); //m.success = m.get_v_varia (1); /* Unknown */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_v_varia (6); /* Unknown */ m.get_v_varia (7); /* Unknown */ m.get_v_varia (8); /* Unknown */ m.get_v_varia (9); /* Unknown */ m.get_v_varia (10); /* Unknown */ m.get_v_varia (11); /* Unknown */ m.get_v_varia (12); /* Unknown */ m.get_v_varia (13); /* Unknown */ m.end_head (); break; case 33: m.end_fact (); break; } // switch return m.success; } // soccerPlayer:findHowtoReact/13 exec() // soccerPlayer:findHowtoReact/13 decls. public SymbolDescriptor shooting__0; public SymbolDescriptor this__0; public SymbolDescriptor ball__0; public SymbolDescriptor isUnlocked__1; public SymbolDescriptor passing__0; public SymbolDescriptor run_to_ball__0; public SymbolDescriptor position__3; public SymbolDescriptor move_around__0; // end of soccerPlayer:findHowtoReact/13 decls. public boolean init (DLP m) { shooting__0 = m.define_symbol ("shooting".intern(), 0); this__0 = m.define_symbol ("this".intern(), 0); ball__0 = m.define_symbol ("ball".intern(), 0); isUnlocked__1 = m.define_symbol ("isUnlocked".intern(), 1); passing__0 = m.define_symbol ("passing".intern(), 0); run_to_ball__0 = m.define_symbol ("run_to_ball".intern(), 0); position__3 = m.define_symbol ("position".intern(), 3); move_around__0 = m.define_symbol ("move_around".intern(), 0); return true; } // soccerPlayer:findHowtoReact/13 init() } // soccerPlayer:findHowtoReact/13 final class soccerPlayer_getFieldAreaInformation_5 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: getFieldAreaInformation(_G413, _G414, _G415, _G416, _G417) case 0: m.allocate (5); //m.success = m.get_y_value (4,1); /* Player */ m.get_y_value (3,2); /* Team */ m.get_y_value (2,3); /* Role */ m.get_y_value (1,4); /* FieldMin */ m.get_y_value (0,5); /* FieldMax */ m.end_head (); break; case 1: // goal: playerRole(_G413, _G415) m.put_y_value (4,1); /* 'Player' */ m.put_y_value (2,2); /* 'Role' */ m.call (16) /*2*/; /* playerRole_2 */ break; case 2: // goal: team(_G414, _G413) m.put_y_value (3,1); /* 'Team' */ m.put_y_value (4,2); /* 'Player' */ m.call (14) /*2*/; /* team_2 */ break; case 3: // goal: fieldArea(_G414, _G415, _G416, _G417) m.put_y_value (3,1); /* 'Team' */ m.put_y_value (2,2); /* 'Role' */ m.put_y_value (1,3); /* 'FieldMin' */ m.put_y_value (0,4); /* 'FieldMax' */ m.deallocate (); m.exec (18); /* fieldArea_4 */ break; case 4: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:getFieldAreaInformation/5 exec() // soccerPlayer:getFieldAreaInformation/5 decls. // end of soccerPlayer:getFieldAreaInformation/5 decls. public boolean init (DLP m) { return true; } // soccerPlayer:getFieldAreaInformation/5 init() } // soccerPlayer:getFieldAreaInformation/5 final class soccerPlayer_doAction_13 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: doAction(shooting, _G414, _G415, _G416, _G417, _G418, _G419, _G420, _G421, _G422, _G423, _G424, _G425) case 0: m.try_me_else (9); m.allocate (10); //m.success = m.get_atom (shooting__0,1); m.get_y_value (9,2); /* Player */ m.get_y_value (1,3); /* Ball */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_v_varia (6); /* Unknown */ m.get_y_value (7,7); /* X1 */ m.get_y_value (6,8); /* Y1 */ m.get_y_value (5,9); /* Z1 */ m.get_v_varia (10); /* Unknown */ m.get_y_value (4,11); /* Xgoal */ m.get_y_value (3,12); /* Zgoal */ m.get_y_value (2,13); /* Dist1 */ m.cut_level (0); m.end_head (); break; case 1: // goal: <-(this, ball, isUnlocked(_G415)) m.put_this (1); m.put_atom (ball__0,2); m.put_struct (isUnlocked__1,3); m.set_y_value (1); /* 'Ball' */ m.call (dlplib.op_call_3); /*6*/ break; case 2: // goal: <-(this, ball, lock(_G415)) m.put_this (1); m.put_atom (ball__0,2); m.put_struct (lock__1,3); m.set_y_value (1); /* 'Ball' */ m.call (dlplib.op_call_3); /*6*/ break; case 3: // goal: getSFTime(myTimeSensor, time, _G451) m.put_atom (myTimeSensor__0,1); m.put_atom (time__0,2); m.put_y_value (8,3); /* 'Time' */ m.call (31) /*2*/; /* getSFTime_3 */ break; case 4: // goal: setSFTime(_G414, set_gesture3, _G451) m.put_y_value (9,1); /* 'Player' */ m.put_atom (set_gesture3__0,2); m.put_y_value (8,3); /* 'Time' */ m.call (32) /*2*/; /* setSFTime_3 */ break; case 5: // goal: kick_ball_to_position(_G415, _G419, _G420, _G421, _G423, 0, _G424, _G425) m.put_y_value (1,1); /* 'Ball' */ m.put_y_value (7,2); /* 'X1' */ m.put_y_value (6,3); /* 'Y1' */ m.put_y_value (5,4); /* 'Z1' */ m.put_y_value (4,5); /* 'Xgoal' */ m.put_float (0f,6); m.put_y_value (3,7); /* 'Zgoal' */ m.put_y_value (2,8); /* 'Dist1' */ m.call (24) /*2*/; /* kick_ball_to_position_8 */ break; case 6: // goal: <-(this, ball, unlock(_G415)) m.put_this (1); m.put_atom (ball__0,2); m.put_struct (unlock__1,3); m.set_y_value (1); /* 'Ball' */ m.call (dlplib.op_call_3); /*6*/ break; case 7: // goal: ! m.cut_tail (0); m.deallocate (); break; case 8: m.end_rule (); break; // head: doAction(passing, _G8758, _G8759, _G8760, _G8761, _G8762, _G8763, _G8764, _G8765, _G8766, _G8767, _G8768, _G8769) case 9: m.retry_me_else (17); m.allocate (12); //m.success = m.get_atom (passing__0,1); m.get_y_value (10,2); /* Player */ m.get_y_value (0,3); /* Ball */ m.get_y_value (9,4); /* X */ m.get_y_value (8,5); /* Y */ m.get_y_value (7,6); /* Z */ m.get_y_value (6,7); /* X1 */ m.get_y_value (5,8); /* Y1 */ m.get_y_value (4,9); /* Z1 */ m.get_v_varia (10); /* Unknown */ m.get_v_varia (11); /* Unknown */ m.get_v_varia (12); /* Unknown */ m.get_v_varia (13); /* Unknown */ m.cut_level (11); m.end_head (); break; case 10: // goal: <-(this, ball, isUnlocked(_G8759)) m.put_this (1); m.put_atom (ball__0,2); m.put_struct (isUnlocked__1,3); m.set_y_value (0); /* 'Ball' */ m.call (dlplib.op_call_3); /*6*/ break; case 11: // goal: <-(this, ball, lock(_G8759)) m.put_this (1); m.put_atom (ball__0,2); m.put_struct (lock__1,3); m.set_y_value (0); /* 'Ball' */ m.call (dlplib.op_call_3); /*6*/ break; case 12: // goal: findCoTeammate(_G8758, _G8760, _G8761, _G8762, _G8797, _G8798, _G8799, _G8800, _G8801) m.put_y_value (10,1); /* 'Player' */ m.put_y_value (9,2); /* 'X' */ m.put_y_value (8,3); /* 'Y' */ m.put_y_value (7,4); /* 'Z' */ m.put_y_value (3,5); /* 'Teammate' */ m.put_y_value (2,6); /* 'X2' */ m.put_v_varia (7); /* 'Unknown' */ m.put_y_value (1,8); /* 'Z2' */ m.put_v_varia (9); /* 'Unknown' */ m.call (25) /*2*/; /* findCoTeammate_9 */ break; case 13: // goal: ! m.cut_body (11); break; case 14: // goal: doPassing(_G8758, _G8759, _G8760, _G8761, _G8762, _G8763, _G8764, _G8765, _G8797, _G8798, _G8819, _G8800) m.put_y_value (10,1); /* 'Player' */ m.put_y_value (0,2); /* 'Ball' */ m.put_y_value (9,3); /* 'X' */ m.put_y_value (8,4); /* 'Y' */ m.put_y_value (7,5); /* 'Z' */ m.put_y_value (6,6); /* 'X1' */ m.put_y_value (5,7); /* 'Y1' */ m.put_y_value (4,8); /* 'Z1' */ m.put_y_value (3,9); /* 'Teammate' */ m.put_y_value (2,10); /* 'X2' */ m.put_v_varia (11); /* 'Unknown' */ m.put_y_value (1,12); /* 'Z2' */ m.call (5) /*2*/; /* doPassing_12 */ break; case 15: // goal: <-(this, ball, unlock(_G8759)) m.put_this (1); m.put_atom (ball__0,2); m.put_struct (unlock__1,3); m.set_y_value (0); /* 'Ball' */ m.deallocate (); m.exec (dlplib.op_call_3); break; case 16: m.end_rule (); break; // head: doAction(run_to_ball, _G17144, _G17145, _G17146, _G17147, _G17148, _G17149, _G17150, _G17151, _G17152, _G17153, _G17154, _G17155) case 17: m.retry_me_else (20); //m.success = m.get_atom (run_to_ball__0,1); m.get_x_varia (16,2); /* Player */ m.get_x_varia (17,3); /* Ball */ m.get_x_varia (18,4); /* X */ m.get_x_varia (19,5); /* Y */ m.get_x_varia (20,6); /* Z */ m.get_v_varia (7); /* Unknown */ m.get_v_varia (8); /* Unknown */ m.get_v_varia (9); /* Unknown */ m.get_v_varia (10); /* Unknown */ m.get_v_varia (11); /* Unknown */ m.get_v_varia (12); /* Unknown */ m.get_v_varia (13); /* Unknown */ m.cut_neck (); m.end_head (); break; case 18: // goal: run_and_trace(_G17144, _G17145, _G17146, _G17147, _G17148, kickableDistance, runableDistance, runstep, runSleepTime) m.put_x_value (16,1); /* 'Player' */ m.put_x_value (17,2); /* 'Ball' */ m.put_x_value (18,3); /* 'X' */ m.put_x_value (19,4); /* 'Y' */ m.put_x_value (20,5); /* 'Z' */ m.put_z_value (5,6); /* kickableDistance */ m.put_z_value (6,7); /* runableDistance */ m.put_z_value (1,8); /* runstep */ m.put_z_value (2,9); /* runSleepTime */ m.exec (10); /* run_and_trace_9 */ break; case 19: m.end_rule (); break; // head: doAction(move_around, _G21600, _G21601, _G21602, _G21603, _G21604, _G21605, _G21606, _G21607, _G21608, _G21609, _G21610, _G21611) case 20: m.retry_me_else (26); m.allocate (8); //m.success = m.get_atom (move_around__0,1); m.get_y_value (5,2); /* Player */ m.get_v_varia (3); /* Unknown */ m.get_y_value (4,4); /* X */ m.get_y_value (2,5); /* Y */ m.get_y_value (1,6); /* Z */ m.get_v_varia (7); /* Unknown */ m.get_v_varia (8); /* Unknown */ m.get_v_varia (9); /* Unknown */ m.get_v_varia (10); /* Unknown */ m.get_v_varia (11); /* Unknown */ m.get_v_varia (12); /* Unknown */ m.get_v_varia (13); /* Unknown */ m.cut_neck (); m.end_head (); break; case 21: // goal: getFieldAreaInformation(_G21600, _G21623, _G21624, _G21625, _G21626) m.put_y_value (5,1); /* 'Player' */ m.put_v_varia (2); /* 'Unknown' */ m.put_v_varia (3); /* 'Unknown' */ m.put_y_value (7,4); /* 'FieldMin' */ m.put_y_value (6,5); /* 'FieldMax' */ m.call (3) /*2*/; /* getFieldAreaInformation_5 */ break; case 22: // goal: is_eval((_G21625+_G21626)/2, _G21631) m.put_struct (op__add__2,26); m.set_y_value (7); /* 'FieldMin' */ m.set_y_value (6); /* 'FieldMax' */ m.put_struct (op__div__2,1); m.set_x_value (26); /* 'Xtmp' */ m.set_int (2); m.put_y_value (3,2); /* 'FieldMid' */ m.call (dlplib.is_eval_2); /*6*/ break; case 23: // goal: distance2D(_G21602, _G21604, _G21631, _G21604, _G21647) m.put_y_value (4,1); /* 'X' */ m.put_y_value (1,2); /* 'Z' */ m.put_y_value (3,3); /* 'FieldMid' */ m.put_y_value (1,4); /* 'Z' */ m.put_y_value (0,5); /* 'Dist' */ m.call (33) /*2*/; /* distance2D_5 */ break; case 24: // goal: run_to_position(_G21600, _G21602, _G21603, _G21604, _G21631, _G21603, _G21604, _G21647) m.put_y_value (5,1); /* 'Player' */ m.put_y_value (4,2); /* 'X' */ m.put_y_value (2,3); /* 'Y' */ m.put_y_value (1,4); /* 'Z' */ m.put_y_value (3,5); /* 'FieldMid' */ m.put_y_value (2,6); /* 'Y' */ m.put_y_value (1,7); /* 'Z' */ m.put_y_value (0,8); /* 'Dist' */ m.deallocate (); m.exec (9); /* run_to_position_8 */ break; case 25: m.end_rule (); break; // head: doAction(_G29609, _G29610, _G29611, _G29612, _G29613, _G29614, _G29615, _G29616, _G29617, _G29618, _G29619, _G29620, _G29621) case 26: m.trust_or_fail (); //m.success = m.get_x_varia (16,1); /* Action */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_v_varia (6); /* Unknown */ m.get_v_varia (7); /* Unknown */ m.get_v_varia (8); /* Unknown */ m.get_v_varia (9); /* Unknown */ m.get_v_varia (10); /* Unknown */ m.get_v_varia (11); /* Unknown */ m.get_v_varia (12); /* Unknown */ m.get_v_varia (13); /* Unknown */ m.end_head (); break; case 27: // goal: format('~n~w : unknown action = ~w~n', [this, _G29609]) m.put_list (29); m.set_x_value (16); /* 'Action' */ m.set_nil (); m.put_atom (data__19__0,1); m.put_list (2); m.set_this (); m.set_x_value (29); /* 'Xtmp' */ m.exec (dlplib.format_2); break; case 28: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:doAction/13 exec() // soccerPlayer:doAction/13 decls. public SymbolDescriptor shooting__0; public SymbolDescriptor this__0; public SymbolDescriptor ball__0; public SymbolDescriptor isUnlocked__1; public SymbolDescriptor lock__1; public SymbolDescriptor myTimeSensor__0; public SymbolDescriptor time__0; public SymbolDescriptor set_gesture3__0; public SymbolDescriptor unlock__1; public SymbolDescriptor passing__0; public SymbolDescriptor run_to_ball__0; public SymbolDescriptor move_around__0; public SymbolDescriptor op__div__2; public SymbolDescriptor op__add__2; public SymbolDescriptor data__19__0; public SymbolDescriptor op__dot__2; public SymbolDescriptor sl_sr__0; // end of soccerPlayer:doAction/13 decls. public boolean init (DLP m) { shooting__0 = m.define_symbol ("shooting".intern(), 0); this__0 = m.define_symbol ("this".intern(), 0); ball__0 = m.define_symbol ("ball".intern(), 0); isUnlocked__1 = m.define_symbol ("isUnlocked".intern(), 1); lock__1 = m.define_symbol ("lock".intern(), 1); myTimeSensor__0 = m.define_symbol ("myTimeSensor".intern(), 0); time__0 = m.define_symbol ("time".intern(), 0); set_gesture3__0 = m.define_symbol ("set_gesture3".intern(), 0); unlock__1 = m.define_symbol ("unlock".intern(), 1); passing__0 = m.define_symbol ("passing".intern(), 0); run_to_ball__0 = m.define_symbol ("run_to_ball".intern(), 0); move_around__0 = m.define_symbol ("move_around".intern(), 0); op__div__2 = m.define_symbol ("/".intern(), 2); op__add__2 = m.define_symbol ("+".intern(), 2); data__19__0 = m.define_symbol ("~n~w : unknown action = ~w~n".intern(), 0); op__dot__2 = m.define_symbol (".".intern(), 2); sl_sr__0 = m.define_symbol ("[]".intern(), 0); return true; } // soccerPlayer:doAction/13 init() } // soccerPlayer:doAction/13 final class soccerPlayer_doPassing_12 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: doPassing(_G413, _G414, _G415, _G416, _G417, _G418, _G419, _G420, _G421, _G422, _G423, _G424) case 0: m.try_me_else (6); m.allocate (10); //m.success = m.get_y_value (8,1); /* Player */ m.get_y_value (7,2); /* Ball */ m.get_y_value (6,3); /* X */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_y_value (5,6); /* X1 */ m.get_y_value (4,7); /* Y1 */ m.get_y_value (3,8); /* Z1 */ m.get_y_value (9,9); /* Teammate */ m.get_y_value (2,10); /* X2 */ m.get_v_varia (11); /* Unknown */ m.get_y_value (1,12); /* Z2 */ m.cut_level (0); m.end_head (); break; case 1: // goal: nonvar(_G421) m.put_y_value (9,1); /* 'Teammate' */ m.call (dlplib.nonvar_1); /*6*/ break; case 2: // goal: format('player ~w is passing the ball to the teammate ~w.~n', [_G413, _G421]) m.put_list (18); m.set_y_value (9); /* 'Teammate' */ m.set_nil (); m.put_atom (data__20__0,1); m.put_list (2); m.set_y_value (8); /* 'Player' */ m.set_x_value (18); /* 'Xtmp' */ m.call (dlplib.format_2); /*6*/ break; case 3: // goal: kickBalltoDirection(_G413, _G414, _G415, _G452, _G453, _G418, _G419, _G420, _G422, _G458, _G424) m.put_y_value (8,1); /* 'Player' */ m.put_y_value (7,2); /* 'Ball' */ m.put_y_value (6,3); /* 'X' */ m.put_v_varia (4); /* 'Unknown' */ m.put_v_varia (5); /* 'Unknown' */ m.put_y_value (5,6); /* 'X1' */ m.put_y_value (4,7); /* 'Y1' */ m.put_y_value (3,8); /* 'Z1' */ m.put_y_value (2,9); /* 'X2' */ m.put_v_varia (10); /* 'Unknown' */ m.put_y_value (1,11); /* 'Z2' */ m.call (6) /*2*/; /* kickBalltoDirection_11 */ break; case 4: // goal: ! m.cut_tail (0); m.deallocate (); break; case 5: m.end_rule (); break; // head: doPassing(_G7221, _G7222, _G7223, _G7224, _G7225, _G7226, _G7227, _G7228, _G7229, _G7230, _G7231, _G7232) case 6: m.retry_me_else (14); m.allocate (10); //m.success = m.get_y_value (8,1); /* Player */ m.get_y_value (7,2); /* Ball */ m.get_y_value (6,3); /* X */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_y_value (5,6); /* X1 */ m.get_y_value (4,7); /* Y1 */ m.get_y_value (3,8); /* Z1 */ m.get_x_varia (17,9); /* Teammate */ m.get_v_varia (10); /* Unknown */ m.get_v_varia (11); /* Unknown */ m.get_v_varia (12); /* Unknown */ m.cut_level (0); m.end_head (); break; case 7: // goal: var _G7229 m.put_x_value (17,1); /* 'Teammate' */ m.call (dlplib.var_1); /*6*/ break; case 8: // goal: team(_G7245, _G7221) m.put_y_value (9,1); /* 'Team' */ m.put_y_value (8,2); /* 'Player' */ m.call (14) /*2*/; /* team_2 */ break; case 9: // goal: goalPosition(_G7245, _G7252, _G7253) m.put_y_value (9,1); /* 'Team' */ m.put_y_value (2,2); /* 'X2' */ m.put_y_value (1,3); /* 'Z2' */ m.call (17) /*2*/; /* goalPosition_3 */ break; case 10: // goal: format('player ~w is kicking the ball.~n', [_G7221]) m.put_atom (data__21__0,1); m.put_list (2); m.set_y_value (8); /* 'Player' */ m.set_nil (); m.call (dlplib.format_2); /*6*/ break; case 11: // goal: kickBalltoDirection(_G7221, _G7222, _G7223, _G7270, _G7271, _G7226, _G7227, _G7228, _G7252, _G7276, _G7253) m.put_y_value (8,1); /* 'Player' */ m.put_y_value (7,2); /* 'Ball' */ m.put_y_value (6,3); /* 'X' */ m.put_v_varia (4); /* 'Unknown' */ m.put_v_varia (5); /* 'Unknown' */ m.put_y_value (5,6); /* 'X1' */ m.put_y_value (4,7); /* 'Y1' */ m.put_y_value (3,8); /* 'Z1' */ m.put_y_value (2,9); /* 'X2' */ m.put_v_varia (10); /* 'Unknown' */ m.put_y_value (1,11); /* 'Z2' */ m.call (6) /*2*/; /* kickBalltoDirection_11 */ break; case 12: // goal: ! m.cut_tail (0); m.deallocate (); break; case 13: m.end_rule (); break; // head: doPassing(_G14703, _G14704, _G14705, _G14706, _G14707, _G14708, _G14709, _G14710, _G14711, _G14712, _G14713, _G14714) case 14: m.trust_or_fail (); //m.success = m.get_v_varia (1); /* Unknown */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_v_varia (6); /* Unknown */ m.get_v_varia (7); /* Unknown */ m.get_v_varia (8); /* Unknown */ m.get_v_varia (9); /* Unknown */ m.get_v_varia (10); /* Unknown */ m.get_v_varia (11); /* Unknown */ m.get_v_varia (12); /* Unknown */ m.end_head (); break; case 15: m.end_fact (); break; } // switch return m.success; } // soccerPlayer:doPassing/12 exec() // soccerPlayer:doPassing/12 decls. public SymbolDescriptor data__20__0; public SymbolDescriptor op__dot__2; public SymbolDescriptor sl_sr__0; public SymbolDescriptor data__21__0; // end of soccerPlayer:doPassing/12 decls. public boolean init (DLP m) { data__20__0 = m.define_symbol ("player ~w is passing the ball to the teammate ~w.~n".intern(), 0); op__dot__2 = m.define_symbol (".".intern(), 2); sl_sr__0 = m.define_symbol ("[]".intern(), 0); data__21__0 = m.define_symbol ("player ~w is kicking the ball.~n".intern(), 0); return true; } // soccerPlayer:doPassing/12 init() } // soccerPlayer:doPassing/12 final class soccerPlayer_kickBalltoDirection_11 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: kickBalltoDirection(_G413, _G414, _G415, _G416, _G417, _G418, _G419, _G420, _G421, _G422, _G423) case 0: m.allocate (10); //m.success = m.get_y_value (7,1); /* Player */ m.get_y_value (5,2); /* Ball */ m.get_y_value (9,3); /* X */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_y_value (4,6); /* X1 */ m.get_y_value (3,7); /* Y1 */ m.get_y_value (2,8); /* Z1 */ m.get_x_varia (17,9); /* X2 */ m.get_v_varia (10); /* Unknown */ m.get_x_varia (19,11); /* Z2 */ m.end_head (); break; case 1: // goal: look_at_position(_G413, _G421, _G423) m.put_y_value (7,1); /* 'Player' */ m.put_x_value (17,2); /* 'X2' */ m.put_x_value (19,3); /* 'Z2' */ m.call (34) /*2*/; /* look_at_position_3 */ break; case 2: // goal: getRotation(_G413, _G439, _G440, _G441, _G442) m.put_y_value (7,1); /* 'Player' */ m.put_v_varia (2); /* 'Unknown' */ m.put_v_varia (3); /* 'Unknown' */ m.put_v_varia (4); /* 'Unknown' */ m.put_y_value (8,5); /* 'R' */ m.call (35) /*2*/; /* getRotation_5 */ break; case 3: // goal: getCorrectKickRotation(_G415, _G418, _G442, _G450) m.put_y_value (9,1); /* 'X' */ m.put_y_value (4,2); /* 'X1' */ m.put_y_value (8,3); /* 'R' */ m.put_y_value (1,4); /* 'R1' */ m.call (7) /*2*/; /* getCorrectKickRotation_4 */ break; case 4: // goal: is_eval(kickBallForceY+random*10, _G455) m.put_struct (op__mul__2,23); m.set_atom (random__0); m.set_float (10f); m.put_struct (op__add__2,1); m.set_z_value (11); /* kickBallForceY */ m.set_x_value (23); /* 'Xtmp' */ m.put_y_value (0,2); /* 'KickBallForceY' */ m.call (dlplib.is_eval_2); /*6*/ break; case 5: // goal: getSFTime(myTimeSensor, time, _G473) m.put_atom (myTimeSensor__0,1); m.put_atom (time__0,2); m.put_y_value (6,3); /* 'Time' */ m.call (31) /*2*/; /* getSFTime_3 */ break; case 6: // goal: setSFTime(_G413, set_gesture3, _G473) m.put_y_value (7,1); /* 'Player' */ m.put_atom (set_gesture3__0,2); m.put_y_value (6,3); /* 'Time' */ m.call (32) /*2*/; /* setSFTime_3 */ break; case 7: // goal: <-(this, ball, kickedwithStaticStartRF(_G414, translation, _G418, _G419, _G420, _G450, kickBallForce, _G455)) m.put_this (1); m.put_atom (ball__0,2); m.put_struct (kickedwithStaticStartRF__8,3); m.set_y_value (5); /* 'Ball' */ m.set_atom (translation__0); m.set_y_value (4); /* 'X1' */ m.set_y_value (3); /* 'Y1' */ m.set_y_value (2); /* 'Z1' */ m.set_y_value (1); /* 'R1' */ m.set_z_value (10); /* kickBallForce */ m.set_y_value (0); /* 'KickBallForceY' */ m.deallocate (); m.exec (dlplib.op_call_3); break; case 8: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:kickBalltoDirection/11 exec() // soccerPlayer:kickBalltoDirection/11 decls. public SymbolDescriptor op__add__2; public SymbolDescriptor op__mul__2; public SymbolDescriptor random__0; public SymbolDescriptor myTimeSensor__0; public SymbolDescriptor time__0; public SymbolDescriptor set_gesture3__0; public SymbolDescriptor this__0; public SymbolDescriptor ball__0; public SymbolDescriptor kickedwithStaticStartRF__8; public SymbolDescriptor translation__0; // end of soccerPlayer:kickBalltoDirection/11 decls. public boolean init (DLP m) { op__add__2 = m.define_symbol ("+".intern(), 2); op__mul__2 = m.define_symbol ("*".intern(), 2); random__0 = m.define_symbol ("random".intern(), 0); myTimeSensor__0 = m.define_symbol ("myTimeSensor".intern(), 0); time__0 = m.define_symbol ("time".intern(), 0); set_gesture3__0 = m.define_symbol ("set_gesture3".intern(), 0); this__0 = m.define_symbol ("this".intern(), 0); ball__0 = m.define_symbol ("ball".intern(), 0); kickedwithStaticStartRF__8 = m.define_symbol ("kickedwithStaticStartRF".intern(), 8); translation__0 = m.define_symbol ("translation".intern(), 0); return true; } // soccerPlayer:kickBalltoDirection/11 init() } // soccerPlayer:kickBalltoDirection/11 final class soccerPlayer_getCorrectKickRotation_4 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: getCorrectKickRotation(_G413, _G414, _G415, _G416) case 0: m.try_me_else (4); m.allocate (2); //m.success = m.get_x_varia (11,1); /* X */ m.get_x_varia (12,2); /* X1 */ m.get_y_value (1,3); /* R */ m.get_y_value (0,4); /* R1 */ m.end_head (); break; case 1: // goal: _G413=<_G414 m.put_x_value (11,1); /* 'X' */ m.put_x_value (12,2); /* 'X1' */ m.call (dlplib.op_cmp_le_2); /*6*/ break; case 2: // goal: is_eval(_G415-1.5708, _G416) m.put_struct (op__sub__2,1); m.set_y_value (1); /* 'R' */ m.set_float (1.5708f); m.put_y_value (0,2); /* 'R1' */ m.deallocate (); m.exec (dlplib.is_eval_2); break; case 3: m.end_rule (); break; // head: getCorrectKickRotation(_G3472, _G3473, _G3474, _G3475) case 4: m.trust_or_fail (); m.allocate (2); //m.success = m.get_x_varia (11,1); /* X */ m.get_x_varia (12,2); /* X1 */ m.get_y_value (1,3); /* R */ m.get_y_value (0,4); /* R1 */ m.end_head (); break; case 5: // goal: _G3472>_G3473 m.put_x_value (11,1); /* 'X' */ m.put_x_value (12,2); /* 'X1' */ m.call (dlplib.op_cmp_gt_2); /*6*/ break; case 6: // goal: is_eval(1.5708-_G3474, _G3475) m.put_struct (op__sub__2,1); m.set_float (1.5708f); m.set_y_value (1); /* 'R' */ m.put_y_value (0,2); /* 'R1' */ m.deallocate (); m.exec (dlplib.is_eval_2); break; case 7: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:getCorrectKickRotation/4 exec() // soccerPlayer:getCorrectKickRotation/4 decls. public SymbolDescriptor op__sub__2; // end of soccerPlayer:getCorrectKickRotation/4 decls. public boolean init (DLP m) { op__sub__2 = m.define_symbol ("-".intern(), 2); return true; } // soccerPlayer:getCorrectKickRotation/4 init() } // soccerPlayer:getCorrectKickRotation/4 final class soccerPlayer_getPositionInformation_12 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: getPositionInformation(_G413, _G414, _G415, _G416, _G417, _G418, _G419, _G420, _G421, _G422, _G423, _G424) case 0: m.allocate (10); //m.success = m.get_y_value (6,1); /* Player */ m.get_x_varia (15,2); /* Ball */ m.get_y_value (5,3); /* X */ m.get_y_value (4,4); /* Y */ m.get_y_value (3,5); /* Z */ m.get_y_value (9,6); /* X1 */ m.get_x_varia (16,7); /* Y1 */ m.get_y_value (8,8); /* Z1 */ m.get_y_value (7,9); /* Dist */ m.get_y_value (2,10); /* Xgoal */ m.get_y_value (1,11); /* Zgoal */ m.get_y_value (0,12); /* Dist1 */ m.end_head (); break; case 1: // goal: getPosition(_G414, _G418, _G419, _G420) m.put_x_value (15,1); /* 'Ball' */ m.put_y_value (9,2); /* 'X1' */ m.put_x_value (16,3); /* 'Y1' */ m.put_y_value (8,4); /* 'Z1' */ m.call (36) /*2*/; /* getPosition_4 */ break; case 2: // goal: getSFVec3f(_G413, position, _G415, _G416, _G417) m.put_y_value (6,1); /* 'Player' */ m.put_atom (position__0,2); m.put_y_value (5,3); /* 'X' */ m.put_y_value (4,4); /* 'Y' */ m.put_y_value (3,5); /* 'Z' */ m.call (37) /*2*/; /* getSFVec3f_5 */ break; case 3: // goal: distance2D(_G415, _G417, _G418, _G420, _G421) m.put_y_value (5,1); /* 'X' */ m.put_y_value (3,2); /* 'Z' */ m.put_y_value (9,3); /* 'X1' */ m.put_y_value (8,4); /* 'Z1' */ m.put_y_value (7,5); /* 'Dist' */ m.call (33) /*2*/; /* distance2D_5 */ break; case 4: // goal: distanceGoal(_G413, _G415, _G416, _G417, _G422, _G423, _G424) m.put_y_value (6,1); /* 'Player' */ m.put_y_value (5,2); /* 'X' */ m.put_y_value (4,3); /* 'Y' */ m.put_y_value (3,4); /* 'Z' */ m.put_y_value (2,5); /* 'Xgoal' */ m.put_y_value (1,6); /* 'Zgoal' */ m.put_y_value (0,7); /* 'Dist1' */ m.deallocate (); m.exec (23); /* distanceGoal_7 */ break; case 5: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:getPositionInformation/12 exec() // soccerPlayer:getPositionInformation/12 decls. public SymbolDescriptor position__0; // end of soccerPlayer:getPositionInformation/12 decls. public boolean init (DLP m) { position__0 = m.define_symbol ("position".intern(), 0); return true; } // soccerPlayer:getPositionInformation/12 init() } // soccerPlayer:getPositionInformation/12 final class soccerPlayer_run_to_position_8 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: run_to_position(_G413, _G414, _G415, _G416, _G417, _G418, _G419, _G420) case 0: m.allocate (8); //m.success = m.get_y_value (7,1); /* Player */ m.get_y_value (6,2); /* X */ m.get_y_value (5,3); /* Y */ m.get_y_value (4,4); /* Z */ m.get_y_value (3,5); /* X1 */ m.get_y_value (2,6); /* Y1 */ m.get_y_value (1,7); /* Z1 */ m.get_y_value (0,8); /* Dist */ m.end_head (); break; case 1: // goal: look_at_position(_G413, _G417, _G419) m.put_y_value (7,1); /* 'Player' */ m.put_y_value (3,2); /* 'X1' */ m.put_y_value (1,3); /* 'Z1' */ m.call (34) /*2*/; /* look_at_position_3 */ break; case 2: // goal: move_to_position(_G413, set_position, runstep, runSleepTime, _G414, _G415, _G416, _G417, _G418, _G419, _G420) m.put_y_value (7,1); /* 'Player' */ m.put_atom (set_position__0,2); m.put_z_value (1,3); /* runstep */ m.put_z_value (2,4); /* runSleepTime */ m.put_y_value (6,5); /* 'X' */ m.put_y_value (5,6); /* 'Y' */ m.put_y_value (4,7); /* 'Z' */ m.put_y_value (3,8); /* 'X1' */ m.put_y_value (2,9); /* 'Y1' */ m.put_y_value (1,10); /* 'Z1' */ m.put_y_value (0,11); /* 'Dist' */ m.deallocate (); m.exec (38); /* move_to_position_11 */ break; case 3: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:run_to_position/8 exec() // soccerPlayer:run_to_position/8 decls. public SymbolDescriptor set_position__0; // end of soccerPlayer:run_to_position/8 decls. public boolean init (DLP m) { set_position__0 = m.define_symbol ("set_position".intern(), 0); return true; } // soccerPlayer:run_to_position/8 init() } // soccerPlayer:run_to_position/8 final class soccerPlayer_run_and_trace_9 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: run_and_trace(_G413, _G414, _G415, _G416, _G417, kickableDistance, _G419, runstep, runSleepTime) case 0: m.try_me_else (19); m.allocate (13); //m.success = m.get_y_value (8,1); /* Player */ m.get_y_value (11,2); /* Ball */ m.get_x_varia (14,3); /* X */ m.get_y_value (7,4); /* Y */ m.get_y_value (12,5); /* Z */ m.get_z_value (5,6); /* kickableDistance */ m.get_y_value (1,7); /* Dist */ m.get_z_value (1,8); /* runstep */ m.get_z_value (2,9); /* runSleepTime */ m.cut_level (0); m.end_head (); break; case 1: // goal: assign_nlv_term(this, nreg, 14, _G415) m.put_this (1); m.put_nreg (2); m.put_int (14,3); m.put_x_value (14,4); /* 'X' */ m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 2: // goal: assign_nlv_term(this, nreg, 15, _G417) m.put_this (1); m.put_nreg (2); m.put_int (15,3); m.put_y_value (12,4); /* 'Z' */ m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 3: // goal: repeat m.call (dlplib.repeat_0); /*6*/ break; case 4: // goal: sleep(runSleepTime) m.put_z_value (2,1); /* runSleepTime */ m.call (dlplib.sleep_1); /*6*/ break; case 5: // goal: getPosition(_G414, _G450, _G451, _G452) m.put_y_value (11,1); /* 'Ball' */ m.put_y_value (4,2); /* 'X1' */ m.put_v_varia (3); /* 'Unknown' */ m.put_y_value (3,4); /* 'Z1' */ m.call (36) /*2*/; /* getPosition_4 */ break; case 6: // goal: look_at_position(_G413, _G450, _G452) m.put_y_value (8,1); /* 'Player' */ m.put_y_value (4,2); /* 'X1' */ m.put_y_value (3,3); /* 'Z1' */ m.call (34) /*2*/; /* look_at_position_3 */ break; case 7: // goal: getRotation(_G413, _G465, _G466, _G467, _G468) m.put_y_value (8,1); /* 'Player' */ m.put_v_varia (2); /* 'Unknown' */ m.put_v_varia (3); /* 'Unknown' */ m.put_v_varia (4); /* 'Unknown' */ m.put_y_value (10,5); /* 'R' */ m.call (35) /*2*/; /* getRotation_5 */ break; case 8: // goal: is_eval(_G468+1.5708, _G473) m.put_struct (op__add__2,1); m.set_y_value (10); /* 'R' */ m.set_float (1.5708f); m.put_y_value (9,2); /* 'R1' */ m.call (dlplib.is_eval_2); /*6*/ break; case 9: // goal: is_eval(xold-runstep*cos(_G473), _G486) m.put_struct (cos__1,19); m.set_y_value (9); /* 'R1' */ m.put_struct (op__mul__2,20); m.set_z_value (1); /* runstep */ m.set_x_value (19); /* 'Xtmp' */ m.put_struct (op__sub__2,1); m.set_z_value (14); /* xold */ m.set_x_value (20); /* 'Xtmp' */ m.put_y_value (6,2); /* 'Xnew' */ m.call (dlplib.is_eval_2); /*6*/ break; case 10: // goal: is_eval(zold+runstep*sin(_G473), _G500) m.put_struct (sin__1,21); m.set_y_value (9); /* 'R1' */ m.put_struct (op__mul__2,22); m.set_z_value (1); /* runstep */ m.set_x_value (21); /* 'Xtmp' */ m.put_struct (op__add__2,1); m.set_z_value (15); /* zold */ m.set_x_value (22); /* 'Xtmp' */ m.put_y_value (5,2); /* 'Znew' */ m.call (dlplib.is_eval_2); /*6*/ break; case 11: // goal: setSFVec3f(_G413, set_position, _G486, _G416, _G500) m.put_y_value (8,1); /* 'Player' */ m.put_atom (set_position__0,2); m.put_y_value (6,3); /* 'Xnew' */ m.put_y_value (7,4); /* 'Y' */ m.put_y_value (5,5); /* 'Znew' */ m.call (39) /*2*/; /* setSFVec3f_5 */ break; case 12: // goal: assign_nlv_term(this, nreg, 14, _G486) m.put_this (1); m.put_nreg (2); m.put_int (14,3); m.put_y_value (6,4); /* 'Xnew' */ m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 13: // goal: assign_nlv_term(this, nreg, 15, _G500) m.put_this (1); m.put_nreg (2); m.put_int (15,3); m.put_y_value (5,4); /* 'Znew' */ m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 14: // goal: distance2D(_G486, _G500, _G450, _G452, _G539) m.put_y_value (6,1); /* 'Xnew' */ m.put_y_value (5,2); /* 'Znew' */ m.put_y_value (4,3); /* 'X1' */ m.put_y_value (3,4); /* 'Z1' */ m.put_y_value (2,5); /* 'Distball' */ m.call (33) /*2*/; /* distance2D_5 */ break; case 15: // goal: assign_nlv_term(this, nreg, 13, _G539) m.put_this (1); m.put_nreg (2); m.put_int (13,3); m.put_y_value (2,4); /* 'Distball' */ m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 16: // goal: end_of_run_and_trace(balldistance, kickableDistance, _G419) m.put_z_value (13,1); /* balldistance */ m.put_z_value (5,2); /* kickableDistance */ m.put_y_value (1,3); /* 'Dist' */ m.call (11) /*2*/; /* end_of_run_and_trace_3 */ break; case 17: // goal: ! m.cut_tail (0); m.deallocate (); break; case 18: m.end_rule (); break; // head: run_and_trace(_G13963, _G13964, _G13965, _G13966, _G13967, _G13968, _G13969, _G13970, _G13971) case 19: m.trust_or_fail (); //m.success = m.get_v_varia (1); /* Unknown */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_v_varia (6); /* Unknown */ m.get_v_varia (7); /* Unknown */ m.get_v_varia (8); /* Unknown */ m.get_v_varia (9); /* Unknown */ m.end_head (); break; case 20: m.end_fact (); break; } // switch return m.success; } // soccerPlayer:run_and_trace/9 exec() // soccerPlayer:run_and_trace/9 decls. public SymbolDescriptor op__add__2; public SymbolDescriptor op__sub__2; public SymbolDescriptor op__mul__2; public SymbolDescriptor cos__1; public SymbolDescriptor sin__1; public SymbolDescriptor set_position__0; // end of soccerPlayer:run_and_trace/9 decls. public boolean init (DLP m) { op__add__2 = m.define_symbol ("+".intern(), 2); op__sub__2 = m.define_symbol ("-".intern(), 2); op__mul__2 = m.define_symbol ("*".intern(), 2); cos__1 = m.define_symbol ("cos".intern(), 1); sin__1 = m.define_symbol ("sin".intern(), 1); set_position__0 = m.define_symbol ("set_position".intern(), 0); return true; } // soccerPlayer:run_and_trace/9 init() } // soccerPlayer:run_and_trace/9 final class soccerPlayer_end_of_run_and_trace_3 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: end_of_run_and_trace(_G413, _G414, _G415) case 0: m.try_me_else (4); m.allocate (1); //m.success = m.get_x_varia (11,1); /* BallDist */ m.get_x_varia (12,2); /* KickDist */ m.get_v_varia (3); /* Unknown */ m.cut_level (0); m.end_head (); break; case 1: // goal: _G413=<_G414 m.put_x_value (11,1); /* 'BallDist' */ m.put_x_value (12,2); /* 'KickDist' */ m.call (dlplib.op_cmp_le_2); /*6*/ break; case 2: // goal: ! m.cut_tail (0); m.deallocate (); break; case 3: m.end_rule (); break; // head: end_of_run_and_trace(_G2945, _G2946, _G2947) case 4: m.trust_or_fail (); //m.success = m.get_x_varia (11,1); /* BallDist */ m.get_v_varia (2); /* Unknown */ m.get_x_varia (13,3); /* Dist */ m.end_head (); break; case 5: // goal: _G2945>_G2947 m.put_x_value (11,1); /* 'BallDist' */ m.put_x_value (13,2); /* 'Dist' */ m.exec (dlplib.op_cmp_gt_2); break; case 6: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:end_of_run_and_trace/3 exec() // soccerPlayer:end_of_run_and_trace/3 decls. // end of soccerPlayer:end_of_run_and_trace/3 decls. public boolean init (DLP m) { return true; } // soccerPlayer:end_of_run_and_trace/3 init() } // soccerPlayer:end_of_run_and_trace/3 final class soccerPlayer_nearest_3 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: nearest(_G413, _G414, _G415) case 0: m.allocate (6); //m.success = m.get_x_varia (11,1); /* Player */ m.get_y_value (1,2); /* D */ m.get_y_value (3,3); /* Pos */ m.end_head (); break; case 1: // goal: partner(_G413, _G424, _G425) m.put_x_value (11,1); /* 'Player' */ m.put_y_value (5,2); /* 'P1' */ m.put_y_value (4,3); /* 'P2' */ m.call (15) /*2*/; /* partner_3 */ break; case 2: // goal: nonvar(_G424) m.put_y_value (5,1); /* 'P1' */ m.call (dlplib.nonvar_1); /*6*/ break; case 3: // goal: nonvar(_G425) m.put_y_value (4,1); /* 'P2' */ m.call (dlplib.nonvar_1); /*6*/ break; case 4: // goal: getPlayerDistance(_G424, _G415, _G442) m.put_y_value (5,1); /* 'P1' */ m.put_y_value (3,2); /* 'Pos' */ m.put_y_value (2,3); /* 'D1' */ m.call (13) /*2*/; /* getPlayerDistance_3 */ break; case 5: // goal: getPlayerDistance(_G425, _G415, _G449) m.put_y_value (4,1); /* 'P2' */ m.put_y_value (3,2); /* 'Pos' */ m.put_y_value (0,3); /* 'D2' */ m.call (13) /*2*/; /* getPlayerDistance_3 */ break; case 6: // goal: _G414=<_G442 m.put_y_value (1,1); /* 'D' */ m.put_y_value (2,2); /* 'D1' */ m.call (dlplib.op_cmp_le_2); /*6*/ break; case 7: // goal: _G414=<_G449 m.put_y_value (1,1); /* 'D' */ m.put_y_value (0,2); /* 'D2' */ m.deallocate (); m.exec (dlplib.op_cmp_le_2); break; case 8: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:nearest/3 exec() // soccerPlayer:nearest/3 decls. // end of soccerPlayer:nearest/3 decls. public boolean init (DLP m) { return true; } // soccerPlayer:nearest/3 init() } // soccerPlayer:nearest/3 final class soccerPlayer_getPlayerDistance_3 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: getPlayerDistance(_G413, position(_G420, _G421, _G422), _G415) case 0: m.allocate (5); //m.success = m.get_x_varia (11,1); /* Player */ m.get_struct (position__3,2); m.uni_y_value (4); /* X */ m.uni_v_varia (); /* Unknown */ m.uni_y_value (3); /* Z */ m.get_y_value (0,3); /* D */ m.end_head (); break; case 1: // goal: getSFVec3f(_G413, position, _G429, _G430, _G431) m.put_x_value (11,1); /* 'Player' */ m.put_atom (position__0,2); m.put_y_value (2,3); /* 'X1' */ m.put_v_varia (4); /* 'Unknown' */ m.put_y_value (1,5); /* 'Z1' */ m.call (37) /*2*/; /* getSFVec3f_5 */ break; case 2: // goal: distance2D(_G420, _G422, _G429, _G431, _G415) m.put_y_value (4,1); /* 'X' */ m.put_y_value (3,2); /* 'Z' */ m.put_y_value (2,3); /* 'X1' */ m.put_y_value (1,4); /* 'Z1' */ m.put_y_value (0,5); /* 'D' */ m.deallocate (); m.exec (33); /* distance2D_5 */ break; case 3: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:getPlayerDistance/3 exec() // soccerPlayer:getPlayerDistance/3 decls. public SymbolDescriptor position__3; public SymbolDescriptor position__0; // end of soccerPlayer:getPlayerDistance/3 decls. public boolean init (DLP m) { position__3 = m.define_symbol ("position".intern(), 3); position__0 = m.define_symbol ("position".intern(), 0); return true; } // soccerPlayer:getPlayerDistance/3 init() } // soccerPlayer:getPlayerDistance/3 final class soccerPlayer_team_2 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: team(red, goalKeeper2) case 0: m.try_me_else (2); //m.success = m.get_atom (red__0,1); m.get_atom (goalKeeper2__0,2); m.cut_neck (); m.end_head (); break; case 1: m.end_fact (); break; // head: team(red, red2) case 2: m.retry_me_else (4); //m.success = m.get_atom (red__0,1); m.get_atom (red2__0,2); m.cut_neck (); m.end_head (); break; case 3: m.end_fact (); break; // head: team(red, red3) case 4: m.retry_me_else (6); //m.success = m.get_atom (red__0,1); m.get_atom (red3__0,2); m.cut_neck (); m.end_head (); break; case 5: m.end_fact (); break; // head: team(blue, goalKeeper1) case 6: m.retry_me_else (8); //m.success = m.get_atom (blue__0,1); m.get_atom (goalKeeper1__0,2); m.cut_neck (); m.end_head (); break; case 7: m.end_fact (); break; // head: team(blue, blue9) case 8: m.retry_me_else (10); //m.success = m.get_atom (blue__0,1); m.get_atom (blue9__0,2); m.cut_neck (); m.end_head (); break; case 9: m.end_fact (); break; // head: team(blue, blue8) case 10: m.retry_me_else (12); //m.success = m.get_atom (blue__0,1); m.get_atom (blue8__0,2); m.cut_neck (); m.end_head (); break; case 11: m.end_fact (); break; // head: team(blue, blue7) case 12: m.retry_me_else (14); //m.success = m.get_atom (blue__0,1); m.get_atom (blue7__0,2); m.cut_neck (); m.end_head (); break; case 13: m.end_fact (); break; // head: team(blue, blue11) case 14: m.retry_me_else (16); //m.success = m.get_atom (blue__0,1); m.get_atom (blue11__0,2); m.cut_neck (); m.end_head (); break; case 15: m.end_fact (); break; // head: team(red, red11) case 16: m.trust_or_fail (); //m.success = m.get_atom (red__0,1); m.get_atom (red11__0,2); m.cut_neck (); m.end_head (); break; case 17: m.end_fact (); break; } // switch return m.success; } // soccerPlayer:team/2 exec() // soccerPlayer:team/2 decls. public SymbolDescriptor red__0; public SymbolDescriptor goalKeeper2__0; public SymbolDescriptor red2__0; public SymbolDescriptor red3__0; public SymbolDescriptor blue__0; public SymbolDescriptor goalKeeper1__0; public SymbolDescriptor blue9__0; public SymbolDescriptor blue8__0; public SymbolDescriptor blue7__0; public SymbolDescriptor blue11__0; public SymbolDescriptor red11__0; // end of soccerPlayer:team/2 decls. public boolean init (DLP m) { red__0 = m.define_symbol ("red".intern(), 0); goalKeeper2__0 = m.define_symbol ("goalKeeper2".intern(), 0); red2__0 = m.define_symbol ("red2".intern(), 0); red3__0 = m.define_symbol ("red3".intern(), 0); blue__0 = m.define_symbol ("blue".intern(), 0); goalKeeper1__0 = m.define_symbol ("goalKeeper1".intern(), 0); blue9__0 = m.define_symbol ("blue9".intern(), 0); blue8__0 = m.define_symbol ("blue8".intern(), 0); blue7__0 = m.define_symbol ("blue7".intern(), 0); blue11__0 = m.define_symbol ("blue11".intern(), 0); red11__0 = m.define_symbol ("red11".intern(), 0); return true; } // soccerPlayer:team/2 init() } // soccerPlayer:team/2 final class soccerPlayer_partner_3 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: partner(red2, red3, red11) case 0: m.try_me_else (2); //m.success = m.get_atom (red2__0,1); m.get_atom (red3__0,2); m.get_atom (red11__0,3); m.cut_neck (); m.end_head (); break; case 1: m.end_fact (); break; // head: partner(red3, red2, red11) case 2: m.retry_me_else (4); //m.success = m.get_atom (red3__0,1); m.get_atom (red2__0,2); m.get_atom (red11__0,3); m.cut_neck (); m.end_head (); break; case 3: m.end_fact (); break; // head: partner(red11, red3, red2) case 4: m.retry_me_else (6); //m.success = m.get_atom (red11__0,1); m.get_atom (red3__0,2); m.get_atom (red2__0,3); m.cut_neck (); m.end_head (); break; case 5: m.end_fact (); break; // head: partner(blue9, blue8, blue11) case 6: m.retry_me_else (8); //m.success = m.get_atom (blue9__0,1); m.get_atom (blue8__0,2); m.get_atom (blue11__0,3); m.cut_neck (); m.end_head (); break; case 7: m.end_fact (); break; // head: partner(blue8, blue9, blue11) case 8: m.retry_me_else (10); //m.success = m.get_atom (blue8__0,1); m.get_atom (blue9__0,2); m.get_atom (blue11__0,3); m.cut_neck (); m.end_head (); break; case 9: m.end_fact (); break; // head: partner(blue11, blue8, blue9) case 10: m.retry_me_else (12); //m.success = m.get_atom (blue11__0,1); m.get_atom (blue8__0,2); m.get_atom (blue9__0,3); m.cut_neck (); m.end_head (); break; case 11: m.end_fact (); break; // head: partner(blue7, blue8, blue11) case 12: m.retry_me_else (14); //m.success = m.get_atom (blue7__0,1); m.get_atom (blue8__0,2); m.get_atom (blue11__0,3); m.cut_neck (); m.end_head (); break; case 13: m.end_fact (); break; // head: partner(_G13292, _G13293, _G13294) case 14: m.trust_or_fail (); //m.success = m.get_v_varia (1); /* Unknown */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.end_head (); break; case 15: m.end_fact (); break; } // switch return m.success; } // soccerPlayer:partner/3 exec() // soccerPlayer:partner/3 decls. public SymbolDescriptor red2__0; public SymbolDescriptor red3__0; public SymbolDescriptor red11__0; public SymbolDescriptor blue9__0; public SymbolDescriptor blue8__0; public SymbolDescriptor blue11__0; public SymbolDescriptor blue7__0; // end of soccerPlayer:partner/3 decls. public boolean init (DLP m) { red2__0 = m.define_symbol ("red2".intern(), 0); red3__0 = m.define_symbol ("red3".intern(), 0); red11__0 = m.define_symbol ("red11".intern(), 0); blue9__0 = m.define_symbol ("blue9".intern(), 0); blue8__0 = m.define_symbol ("blue8".intern(), 0); blue11__0 = m.define_symbol ("blue11".intern(), 0); blue7__0 = m.define_symbol ("blue7".intern(), 0); return true; } // soccerPlayer:partner/3 init() } // soccerPlayer:partner/3 final class soccerPlayer_playerRole_2 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: playerRole(red2, midfielder) case 0: m.try_me_else (2); //m.success = m.get_atom (red2__0,1); m.get_atom (midfielder__0,2); m.cut_neck (); m.end_head (); break; case 1: m.end_fact (); break; // head: playerRole(red3, forward) case 2: m.retry_me_else (4); //m.success = m.get_atom (red3__0,1); m.get_atom (forward__0,2); m.cut_neck (); m.end_head (); break; case 3: m.end_fact (); break; // head: playerRole(blue7, midfielder) case 4: m.retry_me_else (6); //m.success = m.get_atom (blue7__0,1); m.get_atom (midfielder__0,2); m.cut_neck (); m.end_head (); break; case 5: m.end_fact (); break; // head: playerRole(blue8, forward) case 6: m.retry_me_else (8); //m.success = m.get_atom (blue8__0,1); m.get_atom (forward__0,2); m.cut_neck (); m.end_head (); break; case 7: m.end_fact (); break; // head: playerRole(blue9, defender) case 8: m.retry_me_else (10); //m.success = m.get_atom (blue9__0,1); m.get_atom (defender__0,2); m.cut_neck (); m.end_head (); break; case 9: m.end_fact (); break; // head: playerRole(red11, defender) case 10: m.retry_me_else (12); //m.success = m.get_atom (red11__0,1); m.get_atom (defender__0,2); m.cut_neck (); m.end_head (); break; case 11: m.end_fact (); break; // head: playerRole(blue11, forward) case 12: m.trust_or_fail (); //m.success = m.get_atom (blue11__0,1); m.get_atom (forward__0,2); m.cut_neck (); m.end_head (); break; case 13: m.end_fact (); break; } // switch return m.success; } // soccerPlayer:playerRole/2 exec() // soccerPlayer:playerRole/2 decls. public SymbolDescriptor red2__0; public SymbolDescriptor midfielder__0; public SymbolDescriptor red3__0; public SymbolDescriptor forward__0; public SymbolDescriptor blue7__0; public SymbolDescriptor blue8__0; public SymbolDescriptor blue9__0; public SymbolDescriptor defender__0; public SymbolDescriptor red11__0; public SymbolDescriptor blue11__0; // end of soccerPlayer:playerRole/2 decls. public boolean init (DLP m) { red2__0 = m.define_symbol ("red2".intern(), 0); midfielder__0 = m.define_symbol ("midfielder".intern(), 0); red3__0 = m.define_symbol ("red3".intern(), 0); forward__0 = m.define_symbol ("forward".intern(), 0); blue7__0 = m.define_symbol ("blue7".intern(), 0); blue8__0 = m.define_symbol ("blue8".intern(), 0); blue9__0 = m.define_symbol ("blue9".intern(), 0); defender__0 = m.define_symbol ("defender".intern(), 0); red11__0 = m.define_symbol ("red11".intern(), 0); blue11__0 = m.define_symbol ("blue11".intern(), 0); return true; } // soccerPlayer:playerRole/2 init() } // soccerPlayer:playerRole/2 final class soccerPlayer_goalPosition_3 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: goalPosition(red, 49, -3) case 0: m.try_me_else (2); //m.success = m.get_atom (red__0,1); m.get_float (49f,2); m.get_float (-3f,3); m.cut_neck (); m.end_head (); break; case 1: m.end_fact (); break; // head: goalPosition(blue, -49, -3) case 2: m.trust_or_fail (); //m.success = m.get_atom (blue__0,1); m.get_float (-49f,2); m.get_float (-3f,3); m.cut_neck (); m.end_head (); break; case 3: m.end_fact (); break; } // switch return m.success; } // soccerPlayer:goalPosition/3 exec() // soccerPlayer:goalPosition/3 decls. public SymbolDescriptor red__0; public SymbolDescriptor blue__0; // end of soccerPlayer:goalPosition/3 decls. public boolean init (DLP m) { red__0 = m.define_symbol ("red".intern(), 0); blue__0 = m.define_symbol ("blue".intern(), 0); return true; } // soccerPlayer:goalPosition/3 init() } // soccerPlayer:goalPosition/3 final class soccerPlayer_fieldArea_4 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: fieldArea(red, midfielder, -25, 20) case 0: m.try_me_else (2); //m.success = m.get_atom (red__0,1); m.get_atom (midfielder__0,2); m.get_float (-25f,3); m.get_float (20f,4); m.cut_neck (); m.end_head (); break; case 1: m.end_fact (); break; // head: fieldArea(blue, midfielder, -20, 25) case 2: m.retry_me_else (4); //m.success = m.get_atom (blue__0,1); m.get_atom (midfielder__0,2); m.get_float (-20f,3); m.get_float (25f,4); m.cut_neck (); m.end_head (); break; case 3: m.end_fact (); break; // head: fieldArea(red, defender, -50, -25) case 4: m.retry_me_else (6); //m.success = m.get_atom (red__0,1); m.get_atom (defender__0,2); m.get_float (-50f,3); m.get_float (-25f,4); m.cut_neck (); m.end_head (); break; case 5: m.end_fact (); break; // head: fieldArea(blue, defender, 25, 50) case 6: m.retry_me_else (8); //m.success = m.get_atom (blue__0,1); m.get_atom (defender__0,2); m.get_float (25f,3); m.get_float (50f,4); m.cut_neck (); m.end_head (); break; case 7: m.end_fact (); break; // head: fieldArea(blue, forward, -50, 20) case 8: m.retry_me_else (10); //m.success = m.get_atom (blue__0,1); m.get_atom (forward__0,2); m.get_float (-50f,3); m.get_float (20f,4); m.cut_neck (); m.end_head (); break; case 9: m.end_fact (); break; // head: fieldArea(red, forward, 20, 50) case 10: m.trust_or_fail (); //m.success = m.get_atom (red__0,1); m.get_atom (forward__0,2); m.get_float (20f,3); m.get_float (50f,4); m.cut_neck (); m.end_head (); break; case 11: m.end_fact (); break; } // switch return m.success; } // soccerPlayer:fieldArea/4 exec() // soccerPlayer:fieldArea/4 decls. public SymbolDescriptor red__0; public SymbolDescriptor midfielder__0; public SymbolDescriptor blue__0; public SymbolDescriptor defender__0; public SymbolDescriptor forward__0; // end of soccerPlayer:fieldArea/4 decls. public boolean init (DLP m) { red__0 = m.define_symbol ("red".intern(), 0); midfielder__0 = m.define_symbol ("midfielder".intern(), 0); blue__0 = m.define_symbol ("blue".intern(), 0); defender__0 = m.define_symbol ("defender".intern(), 0); forward__0 = m.define_symbol ("forward".intern(), 0); return true; } // soccerPlayer:fieldArea/4 init() } // soccerPlayer:fieldArea/4 final class soccerPlayer_stadiumExit_3 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: stadiumExit(0, 0, -50) case 0: //m.success = m.get_float (0f,1); m.get_float (0f,2); m.get_float (-50f,3); m.cut_neck (); m.end_head (); break; case 1: m.end_fact (); break; } // switch return m.success; } // soccerPlayer:stadiumExit/3 exec() // soccerPlayer:stadiumExit/3 decls. // end of soccerPlayer:stadiumExit/3 decls. public boolean init (DLP m) { return true; } // soccerPlayer:stadiumExit/3 init() } // soccerPlayer:stadiumExit/3 final class soccerPlayer_quitGame_1 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: quitGame(_G413) case 0: m.allocate (8); //m.success = m.get_y_value (0,1); /* Player */ m.end_head (); break; case 1: // goal: format('~w is gone.~n', [_G413]) m.put_atom (data__22__0,1); m.put_list (2); m.set_y_value (0); /* 'Player' */ m.set_nil (); m.call (dlplib.format_2); /*6*/ break; case 2: // goal: getSFVec3f(_G413, position, _G432, _G433, _G434) m.put_y_value (0,1); /* 'Player' */ m.put_atom (position__0,2); m.put_y_value (7,3); /* 'X' */ m.put_y_value (6,4); /* 'Y' */ m.put_y_value (5,5); /* 'Z' */ m.call (37) /*2*/; /* getSFVec3f_5 */ break; case 3: // goal: stadiumExit(_G439, _G440, _G441) m.put_y_value (4,1); /* 'X1' */ m.put_y_value (3,2); /* 'Y1' */ m.put_y_value (2,3); /* 'Z1' */ m.call (19) /*2*/; /* stadiumExit_3 */ break; case 4: // goal: distance2D(_G432, _G434, _G439, _G441, _G450) m.put_y_value (7,1); /* 'X' */ m.put_y_value (5,2); /* 'Z' */ m.put_y_value (4,3); /* 'X1' */ m.put_y_value (2,4); /* 'Z1' */ m.put_y_value (1,5); /* 'Dist' */ m.call (33) /*2*/; /* distance2D_5 */ break; case 5: // goal: run_to_position(_G413, _G432, _G433, _G434, _G439, _G440, _G441, _G450) m.put_y_value (0,1); /* 'Player' */ m.put_y_value (7,2); /* 'X' */ m.put_y_value (6,3); /* 'Y' */ m.put_y_value (5,4); /* 'Z' */ m.put_y_value (4,5); /* 'X1' */ m.put_y_value (3,6); /* 'Y1' */ m.put_y_value (2,7); /* 'Z1' */ m.put_y_value (1,8); /* 'Dist' */ m.call (9) /*2*/; /* run_to_position_8 */ break; case 6: // goal: setSFInt32(_G413, whichChoice, -1) m.put_y_value (0,1); /* 'Player' */ m.put_atom (whichChoice__0,2); m.put_int (-1,3); m.deallocate (); m.exec (28); /* setSFInt32_3 */ break; case 7: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:quitGame/1 exec() // soccerPlayer:quitGame/1 decls. public SymbolDescriptor data__22__0; public SymbolDescriptor op__dot__2; public SymbolDescriptor sl_sr__0; public SymbolDescriptor position__0; public SymbolDescriptor whichChoice__0; // end of soccerPlayer:quitGame/1 decls. public boolean init (DLP m) { data__22__0 = m.define_symbol ("~w is gone.~n".intern(), 0); op__dot__2 = m.define_symbol (".".intern(), 2); sl_sr__0 = m.define_symbol ("[]".intern(), 0); position__0 = m.define_symbol ("position".intern(), 0); whichChoice__0 = m.define_symbol ("whichChoice".intern(), 0); return true; } // soccerPlayer:quitGame/1 init() } // soccerPlayer:quitGame/1 final class soccerPlayer_teammate_3 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: teammate(_G413, _G414, _G415) case 0: m.allocate (3); //m.success = m.get_y_value (1,1); /* Player1 */ m.get_y_value (0,2); /* Player2 */ m.get_y_value (2,3); /* Team */ m.end_head (); break; case 1: // goal: team(_G415, _G413) m.put_y_value (2,1); /* 'Team' */ m.put_y_value (1,2); /* 'Player1' */ m.call (14) /*2*/; /* team_2 */ break; case 2: // goal: team(_G415, _G414) m.put_y_value (2,1); /* 'Team' */ m.put_y_value (0,2); /* 'Player2' */ m.call (14) /*2*/; /* team_2 */ break; case 3: // goal: _G413\==_G414 m.put_y_value (1,1); /* 'Player1' */ m.put_y_value (0,2); /* 'Player2' */ m.deallocate (); m.exec (dlplib.op_at_cmp_ne_2); break; case 4: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:teammate/3 exec() // soccerPlayer:teammate/3 decls. // end of soccerPlayer:teammate/3 decls. public boolean init (DLP m) { return true; } // soccerPlayer:teammate/3 init() } // soccerPlayer:teammate/3 final class soccerPlayer_teammateRole_4 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: teammateRole(_G413, _G414, _G415, _G416) case 0: m.allocate (3); //m.success = m.get_y_value (2,1); /* Player */ m.get_x_varia (11,2); /* Team */ m.get_y_value (0,3); /* Role */ m.get_y_value (1,4); /* Mate */ m.end_head (); break; case 1: // goal: team(_G414, _G416) m.put_x_value (11,1); /* 'Team' */ m.put_y_value (1,2); /* 'Mate' */ m.call (14) /*2*/; /* team_2 */ break; case 2: // goal: _G413\==_G416 m.put_y_value (2,1); /* 'Player' */ m.put_y_value (1,2); /* 'Mate' */ m.call (dlplib.op_at_cmp_ne_2); /*6*/ break; case 3: // goal: playerRole(_G416, _G415) m.put_y_value (1,1); /* 'Mate' */ m.put_y_value (0,2); /* 'Role' */ m.deallocate (); m.exec (16); /* playerRole_2 */ break; case 4: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:teammateRole/4 exec() // soccerPlayer:teammateRole/4 decls. // end of soccerPlayer:teammateRole/4 decls. public boolean init (DLP m) { return true; } // soccerPlayer:teammateRole/4 init() } // soccerPlayer:teammateRole/4 final class soccerPlayer_distanceGoal_7 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: distanceGoal(_G413, _G414, _G415, _G416, _G417, _G418, _G419) case 0: m.allocate (7); //m.success = m.get_x_varia (13,1); /* Player */ m.get_y_value (4,2); /* X */ m.get_v_varia (3); /* Unknown */ m.get_y_value (3,4); /* Z */ m.get_y_value (2,5); /* X1 */ m.get_y_value (1,6); /* Z1 */ m.get_y_value (0,7); /* Dist */ m.end_head (); break; case 1: // goal: team(_G427, _G413) m.put_y_value (6,1); /* 'Team' */ m.put_x_value (13,2); /* 'Player' */ m.call (14) /*2*/; /* team_2 */ break; case 2: // goal: goalPosition(_G427, _G417, _G435) m.put_y_value (6,1); /* 'Team' */ m.put_y_value (2,2); /* 'X1' */ m.put_y_value (5,3); /* 'Z2' */ m.call (17) /*2*/; /* goalPosition_3 */ break; case 3: // goal: assign_var_expr(_G418, _G435+random*7) m.put_struct (op__mul__2,15); m.set_atom (random__0); m.set_float (7f); m.put_y_value (1,1); /* 'Z1' */ m.put_struct (op__add__2,2); m.set_y_value (5); /* 'Z2' */ m.set_x_value (15); /* 'Xtmp' */ m.call (dlplib.assign_var_expr_2); /*6*/ break; case 4: // goal: distance2D(_G414, _G416, _G417, _G418, _G419) m.put_y_value (4,1); /* 'X' */ m.put_y_value (3,2); /* 'Z' */ m.put_y_value (2,3); /* 'X1' */ m.put_y_value (1,4); /* 'Z1' */ m.put_y_value (0,5); /* 'Dist' */ m.deallocate (); m.exec (33); /* distance2D_5 */ break; case 5: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:distanceGoal/7 exec() // soccerPlayer:distanceGoal/7 decls. public SymbolDescriptor op__add__2; public SymbolDescriptor op__mul__2; public SymbolDescriptor random__0; // end of soccerPlayer:distanceGoal/7 decls. public boolean init (DLP m) { op__add__2 = m.define_symbol ("+".intern(), 2); op__mul__2 = m.define_symbol ("*".intern(), 2); random__0 = m.define_symbol ("random".intern(), 0); return true; } // soccerPlayer:distanceGoal/7 init() } // soccerPlayer:distanceGoal/7 final class soccerPlayer_kick_ball_to_position_8 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: kick_ball_to_position(_G413, _G414, _G415, _G416, _G417, _G418, _G419, _G420) case 0: //m.success = m.get_x_varia (13,1); /* Ball */ m.get_x_varia (14,2); /* X */ m.get_x_varia (15,3); /* Y */ m.get_x_varia (16,4); /* Z */ m.get_x_varia (17,5); /* X1 */ m.get_x_varia (18,6); /* Y1 */ m.get_x_varia (19,7); /* Z1 */ m.get_x_varia (20,8); /* Dist */ m.end_head (); break; case 1: // goal: move_to_position(_G413, translation, ballstep, ballSleepTime, _G414, _G415, _G416, _G417, _G418, _G419, _G420) m.put_x_value (13,1); /* 'Ball' */ m.put_atom (translation__0,2); m.put_z_value (3,3); /* ballstep */ m.put_z_value (4,4); /* ballSleepTime */ m.put_x_value (14,5); /* 'X' */ m.put_x_value (15,6); /* 'Y' */ m.put_x_value (16,7); /* 'Z' */ m.put_x_value (17,8); /* 'X1' */ m.put_x_value (18,9); /* 'Y1' */ m.put_x_value (19,10); /* 'Z1' */ m.put_x_value (20,11); /* 'Dist' */ m.exec (38); /* move_to_position_11 */ break; case 2: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:kick_ball_to_position/8 exec() // soccerPlayer:kick_ball_to_position/8 decls. public SymbolDescriptor translation__0; // end of soccerPlayer:kick_ball_to_position/8 decls. public boolean init (DLP m) { translation__0 = m.define_symbol ("translation".intern(), 0); return true; } // soccerPlayer:kick_ball_to_position/8 init() } // soccerPlayer:kick_ball_to_position/8 final class soccerPlayer_findCoTeammate_9 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: findCoTeammate(_G413, _G414, _G415, _G416, _G417, _G418, _G419, _G420, _G421) case 0: m.try_me_else (9); m.allocate (12); //m.success = m.get_y_value (10,1); /* Player */ m.get_y_value (9,2); /* X */ m.get_y_value (8,3); /* Y */ m.get_y_value (7,4); /* Z */ m.get_y_value (5,5); /* Teammate */ m.get_y_value (4,6); /* X1 */ m.get_y_value (3,7); /* Y1 */ m.get_y_value (2,8); /* Z1 */ m.get_y_value (1,9); /* Dist */ m.cut_level (0); m.end_head (); break; case 1: // goal: playerRole(_G413, _G430) m.put_y_value (10,1); /* 'Player' */ m.put_y_value (11,2); /* 'Role' */ m.call (16) /*2*/; /* playerRole_2 */ break; case 2: // goal: roleOrder(_G430, _G436, attack) m.put_y_value (11,1); /* 'Role' */ m.put_y_value (6,2); /* 'TeammateRole' */ m.put_atom (attack__0,3); m.call (26) /*2*/; /* roleOrder_3 */ break; case 3: // goal: findRoleTeammate(_G413, _G414, _G415, _G416, _G436, _G417, _G418, _G419, _G420, _G421) m.put_y_value (10,1); /* 'Player' */ m.put_y_value (9,2); /* 'X' */ m.put_y_value (8,3); /* 'Y' */ m.put_y_value (7,4); /* 'Z' */ m.put_y_value (6,5); /* 'TeammateRole' */ m.put_y_value (5,6); /* 'Teammate' */ m.put_y_value (4,7); /* 'X1' */ m.put_y_value (3,8); /* 'Y1' */ m.put_y_value (2,9); /* 'Z1' */ m.put_y_value (1,10); /* 'Dist' */ m.call (27) /*2*/; /* findRoleTeammate_10 */ break; case 4: // goal: nonvar(_G421) m.put_y_value (1,1); /* 'Dist' */ m.call (dlplib.nonvar_1); /*6*/ break; case 5: // goal: _G421=passableDistanceMin m.put_y_value (1,1); /* 'Dist' */ m.put_z_value (9,2); /* passableDistanceMin */ m.call (dlplib.op_cmp_gt_2); /*6*/ break; case 7: // goal: ! m.cut_tail (0); m.deallocate (); break; case 8: m.end_rule (); break; // head: findCoTeammate(_G7031, _G7032, _G7033, _G7034, _G7035, _G7036, _G7037, _G7038, _G7039) case 9: m.trust_or_fail (); //m.success = m.get_v_varia (1); /* Unknown */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_v_varia (6); /* Unknown */ m.get_v_varia (7); /* Unknown */ m.get_v_varia (8); /* Unknown */ m.get_v_varia (9); /* Unknown */ m.end_head (); break; case 10: m.end_fact (); break; } // switch return m.success; } // soccerPlayer:findCoTeammate/9 exec() // soccerPlayer:findCoTeammate/9 decls. public SymbolDescriptor attack__0; // end of soccerPlayer:findCoTeammate/9 decls. public boolean init (DLP m) { attack__0 = m.define_symbol ("attack".intern(), 0); return true; } // soccerPlayer:findCoTeammate/9 init() } // soccerPlayer:findCoTeammate/9 final class soccerPlayer_roleOrder_3 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: roleOrder(midfielder, forward, attack) case 0: m.try_me_else (2); //m.success = m.get_atom (midfielder__0,1); m.get_atom (forward__0,2); m.get_atom (attack__0,3); m.cut_neck (); m.end_head (); break; case 1: m.end_fact (); break; // head: roleOrder(defender, midfielder, attack) case 2: m.retry_me_else (4); //m.success = m.get_atom (defender__0,1); m.get_atom (midfielder__0,2); m.get_atom (attack__0,3); m.cut_neck (); m.end_head (); break; case 3: m.end_fact (); break; // head: roleOrder(forward, forward, attack) case 4: m.retry_me_else (6); //m.success = m.get_atom (forward__0,1); m.get_atom (forward__0,2); m.get_atom (attack__0,3); m.cut_neck (); m.end_head (); break; case 5: m.end_fact (); break; // head: roleOrder(midfielder, midfielder, attack) case 6: m.retry_me_else (8); //m.success = m.get_atom (midfielder__0,1); m.get_atom (midfielder__0,2); m.get_atom (attack__0,3); m.cut_neck (); m.end_head (); break; case 7: m.end_fact (); break; // head: roleOrder(defender, defender, attack) case 8: m.trust_or_fail (); //m.success = m.get_atom (defender__0,1); m.get_atom (defender__0,2); m.get_atom (attack__0,3); m.cut_neck (); m.end_head (); break; case 9: m.end_fact (); break; } // switch return m.success; } // soccerPlayer:roleOrder/3 exec() // soccerPlayer:roleOrder/3 decls. public SymbolDescriptor midfielder__0; public SymbolDescriptor forward__0; public SymbolDescriptor attack__0; public SymbolDescriptor defender__0; // end of soccerPlayer:roleOrder/3 decls. public boolean init (DLP m) { midfielder__0 = m.define_symbol ("midfielder".intern(), 0); forward__0 = m.define_symbol ("forward".intern(), 0); attack__0 = m.define_symbol ("attack".intern(), 0); defender__0 = m.define_symbol ("defender".intern(), 0); return true; } // soccerPlayer:roleOrder/3 init() } // soccerPlayer:roleOrder/3 final class soccerPlayer_findRoleTeammate_10 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: findRoleTeammate(_G413, _G414, _G415, _G416, _G417, _G418, _G419, _G420, _G421, _G422) case 0: m.try_me_else (8); m.allocate (11); //m.success = m.get_y_value (10,1); /* Player */ m.get_y_value (5,2); /* X */ m.get_v_varia (3); /* Unknown */ m.get_y_value (4,4); /* Z */ m.get_y_value (8,5); /* Role */ m.get_y_value (7,6); /* Mate */ m.get_y_value (3,7); /* X1 */ m.get_y_value (6,8); /* Y1 */ m.get_y_value (2,9); /* Z1 */ m.get_y_value (1,10); /* Dist */ m.cut_level (0); m.end_head (); break; case 1: // goal: team(_G430, _G413) m.put_y_value (9,1); /* 'Team' */ m.put_y_value (10,2); /* 'Player' */ m.call (14) /*2*/; /* team_2 */ break; case 2: // goal: teammateRole(_G413, _G430, _G417, _G418) m.put_y_value (10,1); /* 'Player' */ m.put_y_value (9,2); /* 'Team' */ m.put_y_value (8,3); /* 'Role' */ m.put_y_value (7,4); /* 'Mate' */ m.call (22) /*2*/; /* teammateRole_4 */ break; case 3: // goal: nonvar(_G418) m.put_y_value (7,1); /* 'Mate' */ m.call (dlplib.nonvar_1); /*6*/ break; case 4: // goal: getSFVec3f(_G418, position, _G419, _G420, _G421) m.put_y_value (7,1); /* 'Mate' */ m.put_atom (position__0,2); m.put_y_value (3,3); /* 'X1' */ m.put_y_value (6,4); /* 'Y1' */ m.put_y_value (2,5); /* 'Z1' */ m.call (37) /*2*/; /* getSFVec3f_5 */ break; case 5: // goal: distance2D(_G414, _G416, _G419, _G421, _G422) m.put_y_value (5,1); /* 'X' */ m.put_y_value (4,2); /* 'Z' */ m.put_y_value (3,3); /* 'X1' */ m.put_y_value (2,4); /* 'Z1' */ m.put_y_value (1,5); /* 'Dist' */ m.call (33) /*2*/; /* distance2D_5 */ break; case 6: // goal: ! m.cut_tail (0); m.deallocate (); break; case 7: m.end_rule (); break; // head: findRoleTeammate(_G6647, _G6648, _G6649, _G6650, _G6651, _G6652, _G6653, _G6654, _G6655, _G6656) case 8: m.trust_or_fail (); //m.success = m.get_v_varia (1); /* Unknown */ m.get_v_varia (2); /* Unknown */ m.get_v_varia (3); /* Unknown */ m.get_v_varia (4); /* Unknown */ m.get_v_varia (5); /* Unknown */ m.get_v_varia (6); /* Unknown */ m.get_v_varia (7); /* Unknown */ m.get_v_varia (8); /* Unknown */ m.get_v_varia (9); /* Unknown */ m.get_v_varia (10); /* Unknown */ m.end_head (); break; case 9: m.end_fact (); break; } // switch return m.success; } // soccerPlayer:findRoleTeammate/10 exec() // soccerPlayer:findRoleTeammate/10 decls. public SymbolDescriptor position__0; // end of soccerPlayer:findRoleTeammate/10 decls. public boolean init (DLP m) { position__0 = m.define_symbol ("position".intern(), 0); return true; } // soccerPlayer:findRoleTeammate/10 init() } // soccerPlayer:findRoleTeammate/10 final class soccerPlayer_init_vars_0 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: init_vars case 0: m.allocate (0); //m.success = m.end_head (); break; case 1: // goal: assign_nlv_term(this, nreg, 0, [goalKeeper2, red2, red3, goalKeeper1, blue9, blue8, blue7]) m.put_list (9); m.set_atom (blue7__0); m.set_nil (); m.put_list (10); m.set_atom (blue8__0); m.set_x_value (9); /* 'Xtmp' */ m.put_list (11); m.set_atom (blue9__0); m.set_x_value (10); /* 'Xtmp' */ m.put_list (12); m.set_atom (goalKeeper1__0); m.set_x_value (11); /* 'Xtmp' */ m.put_list (13); m.set_atom (red3__0); m.set_x_value (12); /* 'Xtmp' */ m.put_list (14); m.set_atom (red2__0); m.set_x_value (13); /* 'Xtmp' */ m.put_this (1); m.put_nreg (2); m.put_int (0,3); m.put_list (4); m.set_atom (goalKeeper2__0); m.set_x_value (14); /* 'Xtmp' */ m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 2: // goal: assign_nlv_term(this, nreg, 1, 1) m.put_this (1); m.put_nreg (2); m.put_int (1,3); m.put_float (1f,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 3: // goal: assign_nlv_term(this, nreg, 2, 500) m.put_this (1); m.put_nreg (2); m.put_int (2,3); m.put_int (500,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 4: // goal: assign_nlv_term(this, nreg, 3, 1.5) m.put_this (1); m.put_nreg (2); m.put_int (3,3); m.put_float (1.5f,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 5: // goal: assign_nlv_term(this, nreg, 4, 250) m.put_this (1); m.put_nreg (2); m.put_int (4,3); m.put_int (250,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 6: // goal: assign_nlv_term(this, nreg, 5, 1.5) m.put_this (1); m.put_nreg (2); m.put_int (5,3); m.put_float (1.5f,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 7: // goal: assign_nlv_term(this, nreg, 6, 40) m.put_this (1); m.put_nreg (2); m.put_int (6,3); m.put_float (40f,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 8: // goal: assign_nlv_term(this, nreg, 7, 30) m.put_this (1); m.put_nreg (2); m.put_int (7,3); m.put_float (30f,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 9: // goal: assign_nlv_term(this, nreg, 8, 40) m.put_this (1); m.put_nreg (2); m.put_int (8,3); m.put_float (40f,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 10: // goal: assign_nlv_term(this, nreg, 9, 3) m.put_this (1); m.put_nreg (2); m.put_int (9,3); m.put_float (3f,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 11: // goal: assign_nlv_term(this, nreg, 10, 10) m.put_this (1); m.put_nreg (2); m.put_int (10,3); m.put_float (10f,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 12: // goal: assign_nlv_term(this, nreg, 11, 6) m.put_this (1); m.put_nreg (2); m.put_int (11,3); m.put_float (6f,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 13: // goal: assign_nlv_term(this, nreg, 12, no_init) m.put_this (1); m.put_nreg (2); m.put_int (12,3); m.put_atom (no_init__0,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 14: // goal: assign_nlv_term(this, nreg, 13, no_init) m.put_this (1); m.put_nreg (2); m.put_int (13,3); m.put_atom (no_init__0,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 15: // goal: assign_nlv_term(this, nreg, 14, no_init) m.put_this (1); m.put_nreg (2); m.put_int (14,3); m.put_atom (no_init__0,4); m.call (dlplib.assign_nlv_term_4); /*6*/ break; case 16: // goal: assign_nlv_term(this, nreg, 15, no_init) m.put_this (1); m.put_nreg (2); m.put_int (15,3); m.put_atom (no_init__0,4); m.deallocate (); m.exec (dlplib.assign_nlv_term_4); break; case 17: m.end_rule (); break; } // switch return m.success; } // soccerPlayer:init_vars/0 exec() // soccerPlayer:init_vars/0 decls. public SymbolDescriptor op__dot__2; public SymbolDescriptor goalKeeper2__0; public SymbolDescriptor red2__0; public SymbolDescriptor red3__0; public SymbolDescriptor goalKeeper1__0; public SymbolDescriptor blue9__0; public SymbolDescriptor blue8__0; public SymbolDescriptor blue7__0; public SymbolDescriptor sl_sr__0; public SymbolDescriptor no_init__0; // end of soccerPlayer:init_vars/0 decls. public boolean init (DLP m) { op__dot__2 = m.define_symbol (".".intern(), 2); goalKeeper2__0 = m.define_symbol ("goalKeeper2".intern(), 0); red2__0 = m.define_symbol ("red2".intern(), 0); red3__0 = m.define_symbol ("red3".intern(), 0); goalKeeper1__0 = m.define_symbol ("goalKeeper1".intern(), 0); blue9__0 = m.define_symbol ("blue9".intern(), 0); blue8__0 = m.define_symbol ("blue8".intern(), 0); blue7__0 = m.define_symbol ("blue7".intern(), 0); sl_sr__0 = m.define_symbol ("[]".intern(), 0); no_init__0 = m.define_symbol ("no_init".intern(), 0); return true; } // soccerPlayer:init_vars/0 init() } // soccerPlayer:init_vars/0 class soccerPlayer extends Code { public static ObjectDescriptor object; public static ObjectDescriptor _common_process; public static MethodDescriptor soccerPlayer_2; public static MethodDescriptor activity_2; public static MethodDescriptor findHowtoReact_13; public static MethodDescriptor getFieldAreaInformation_5; public static MethodDescriptor doAction_13; public static MethodDescriptor doPassing_12; public static MethodDescriptor kickBalltoDirection_11; public static MethodDescriptor getCorrectKickRotation_4; public static MethodDescriptor getPositionInformation_12; public static MethodDescriptor run_to_position_8; public static MethodDescriptor run_and_trace_9; public static MethodDescriptor end_of_run_and_trace_3; public static MethodDescriptor nearest_3; public static MethodDescriptor getPlayerDistance_3; public static MethodDescriptor team_2; public static MethodDescriptor partner_3; public static MethodDescriptor playerRole_2; public static MethodDescriptor goalPosition_3; public static MethodDescriptor fieldArea_4; public static MethodDescriptor stadiumExit_3; public static MethodDescriptor quitGame_1; public static MethodDescriptor teammate_3; public static MethodDescriptor teammateRole_4; public static MethodDescriptor distanceGoal_7; public static MethodDescriptor kick_ball_to_position_8; public static MethodDescriptor findCoTeammate_9; public static MethodDescriptor roleOrder_3; public static MethodDescriptor findRoleTeammate_10; public static MethodDescriptor setSFInt32_3; public static MethodDescriptor setDescription_1; public static MethodDescriptor look_at_ball_2; public static MethodDescriptor getSFTime_3; public static MethodDescriptor setSFTime_3; public static MethodDescriptor distance2D_5; public static MethodDescriptor look_at_position_3; public static MethodDescriptor getRotation_5; public static MethodDescriptor getPosition_4; public static MethodDescriptor getSFVec3f_5; public static MethodDescriptor move_to_position_11; public static MethodDescriptor setSFVec3f_5; public boolean init (DLP m) { object = m.define_object ("soccerPlayer".intern(), 1, 40, 16); _common_process = m.header_object (object, "common_process".intern(), 0); soccerPlayer_2 = m.define_method (object, 0, "soccerPlayer".intern(), 2); activity_2 = m.define_method (object, 1, "activity".intern(), 2); findHowtoReact_13 = m.define_method (object, 2, "findHowtoReact".intern(), 13); getFieldAreaInformation_5 = m.define_method (object, 3, "getFieldAreaInformation".intern(), 5); doAction_13 = m.define_method (object, 4, "doAction".intern(), 13); doPassing_12 = m.define_method (object, 5, "doPassing".intern(), 12); kickBalltoDirection_11 = m.define_method (object, 6, "kickBalltoDirection".intern(), 11); getCorrectKickRotation_4 = m.define_method (object, 7, "getCorrectKickRotation".intern(), 4); getPositionInformation_12 = m.define_method (object, 8, "getPositionInformation".intern(), 12); run_to_position_8 = m.define_method (object, 9, "run_to_position".intern(), 8); run_and_trace_9 = m.define_method (object, 10, "run_and_trace".intern(), 9); end_of_run_and_trace_3 = m.define_method (object, 11, "end_of_run_and_trace".intern(), 3); nearest_3 = m.define_method (object, 12, "nearest".intern(), 3); getPlayerDistance_3 = m.define_method (object, 13, "getPlayerDistance".intern(), 3); team_2 = m.define_method (object, 14, "team".intern(), 2); partner_3 = m.define_method (object, 15, "partner".intern(), 3); playerRole_2 = m.define_method (object, 16, "playerRole".intern(), 2); goalPosition_3 = m.define_method (object, 17, "goalPosition".intern(), 3); fieldArea_4 = m.define_method (object, 18, "fieldArea".intern(), 4); stadiumExit_3 = m.define_method (object, 19, "stadiumExit".intern(), 3); quitGame_1 = m.define_method (object, 20, "quitGame".intern(), 1); teammate_3 = m.define_method (object, 21, "teammate".intern(), 3); teammateRole_4 = m.define_method (object, 22, "teammateRole".intern(), 4); distanceGoal_7 = m.define_method (object, 23, "distanceGoal".intern(), 7); kick_ball_to_position_8 = m.define_method (object, 24, "kick_ball_to_position".intern(), 8); findCoTeammate_9 = m.define_method (object, 25, "findCoTeammate".intern(), 9); roleOrder_3 = m.define_method (object, 26, "roleOrder".intern(), 3); findRoleTeammate_10 = m.define_method (object, 27, "findRoleTeammate".intern(), 10); setSFInt32_3 = m.extern_method (object, 28, "setSFInt32".intern(), 3); setDescription_1 = m.extern_method (object, 29, "setDescription".intern(), 1); look_at_ball_2 = m.extern_method (object, 30, "look_at_ball".intern(), 2); getSFTime_3 = m.extern_method (object, 31, "getSFTime".intern(), 3); setSFTime_3 = m.extern_method (object, 32, "setSFTime".intern(), 3); distance2D_5 = m.extern_method (object, 33, "distance2D".intern(), 5); look_at_position_3 = m.extern_method (object, 34, "look_at_position".intern(), 3); getRotation_5 = m.extern_method (object, 35, "getRotation".intern(), 5); getPosition_4 = m.extern_method (object, 36, "getPosition".intern(), 4); getSFVec3f_5 = m.extern_method (object, 37, "getSFVec3f".intern(), 5); move_to_position_11 = m.extern_method (object, 38, "move_to_position".intern(), 11); setSFVec3f_5 = m.extern_method (object, 39, "setSFVec3f".intern(), 5); m.define_nonlog (object, "allplayers".intern(), 0); m.define_nonlog (object, "runstep".intern(), 1); m.define_nonlog (object, "runSleepTime".intern(), 2); m.define_nonlog (object, "ballstep".intern(), 3); m.define_nonlog (object, "ballSleepTime".intern(), 4); m.define_nonlog (object, "kickableDistance".intern(), 5); m.define_nonlog (object, "runableDistance".intern(), 6); m.define_nonlog (object, "kickableGoalDistance".intern(), 7); m.define_nonlog (object, "passableDistanceMax".intern(), 8); m.define_nonlog (object, "passableDistanceMin".intern(), 9); m.define_nonlog (object, "kickBallForce".intern(), 10); m.define_nonlog (object, "kickBallForceY".intern(), 11); m.define_nonlog (object, "steps".intern(), 12); m.define_nonlog (object, "balldistance".intern(), 13); m.define_nonlog (object, "xold".intern(), 14); m.define_nonlog (object, "zold".intern(), 15); return true; } // soccerPlayer init() } // class soccerPlayer // end of unit soccerPlayer code. // begin of unit soccerPlayerUser code. final class soccerPlayerUser_soccerPlayerUser_2 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: soccerPlayerUser(_G413, _G414) case 0: m.allocate (2); //m.success = m.get_y_value (1,1); /* Name */ m.get_y_value (0,2); /* Clock */ m.end_head (); break; case 1: // goal: format('The user ~w thread active.~n', [_G413]) m.put_atom (data__23__0,1); m.put_list (2); m.set_y_value (1); /* 'Name' */ m.set_nil (); m.call (dlplib.format_2); /*6*/ break; case 2: // goal: activity(_G413, _G414) m.put_y_value (1,1); /* 'Name' */ m.put_y_value (0,2); /* 'Clock' */ m.deallocate (); m.exec (1); /* activity_2 */ break; case 3: m.end_rule (); break; } // switch return m.success; } // soccerPlayerUser:soccerPlayerUser/2 exec() // soccerPlayerUser:soccerPlayerUser/2 decls. public SymbolDescriptor data__23__0; public SymbolDescriptor op__dot__2; public SymbolDescriptor sl_sr__0; // end of soccerPlayerUser:soccerPlayerUser/2 decls. public boolean init (DLP m) { data__23__0 = m.define_symbol ("The user ~w thread active.~n".intern(), 0); op__dot__2 = m.define_symbol (".".intern(), 2); sl_sr__0 = m.define_symbol ("[]".intern(), 0); return true; } // soccerPlayerUser:soccerPlayerUser/2 init() } // soccerPlayerUser:soccerPlayerUser/2 final class soccerPlayerUser_activity_2 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: activity(_G413, _G414) case 0: m.allocate (4); //m.success = m.get_y_value (2,1); /* Name */ m.get_y_value (3,2); /* Clock */ m.cut_level (0); m.end_head (); break; case 1: // goal: repeat m.call (dlplib.repeat_0); /*6*/ break; case 2: // goal: sleep(1000) m.put_int (1000,1); m.call (dlplib.sleep_1); /*6*/ break; case 3: // goal: <-(this, _G414, get_time1(_G433)) m.put_this (1); m.put_y_value (3,2); /* 'Clock' */ m.put_struct (get_time1__1,3); m.set_y_value (1); /* 'TimeLeft' */ m.call (dlplib.op_call_3); /*6*/ break; case 4: // goal: near_ball_then_kick(_G413, ball) m.put_y_value (2,1); /* 'Name' */ m.put_atom (ball__0,2); m.call (2) /*2*/; /* near_ball_then_kick_2 */ break; case 5: // goal: _G433<1 m.put_y_value (1,1); /* 'TimeLeft' */ m.put_int (1,2); m.call (dlplib.op_cmp_lt_2); /*6*/ break; case 6: // goal: ! m.cut_tail (0); m.deallocate (); break; case 7: m.end_rule (); break; } // switch return m.success; } // soccerPlayerUser:activity/2 exec() // soccerPlayerUser:activity/2 decls. public SymbolDescriptor this__0; public SymbolDescriptor get_time1__1; public SymbolDescriptor ball__0; // end of soccerPlayerUser:activity/2 decls. public boolean init (DLP m) { this__0 = m.define_symbol ("this".intern(), 0); get_time1__1 = m.define_symbol ("get_time1".intern(), 1); ball__0 = m.define_symbol ("ball".intern(), 0); return true; } // soccerPlayerUser:activity/2 init() } // soccerPlayerUser:activity/2 final class soccerPlayerUser_near_ball_then_kick_2 extends Code { public boolean exec (DLP m) { switch (m.PSreg) { // head: near_ball_then_kick(_G413, _G414) case 0: m.try_me_else (13); m.allocate (10); //m.success = m.get_y_value (6,1); /* Agent */ m.get_y_value (0,2); /* Ball */ m.end_head (); break; case 1: // goal: getViewpointPositionEx(_G413, _G423, _G424, _G425) m.put_y_value (6,1); /* 'Agent' */ m.put_y_value (9,2); /* 'X' */ m.put_v_varia (3); /* 'Unknown' */ m.put_y_value (8,4); /* 'Z' */ m.call (3) /*2*/; /* getViewpointPositionEx_4 */ break; case 2: // goal: getPosition(_G414, _G431, _G432, _G433) m.put_y_value (0,1); /* 'Ball' */ m.put_y_value (4,2); /* 'X1' */ m.put_y_value (3,3); /* 'Y1' */ m.put_y_value (2,4); /* 'Z1' */ m.call (4) /*2*/; /* getPosition_4 */ break; case 3: // goal: _G423<_G431 m.put_y_value (9,1); /* 'X' */ m.put_y_value (4,2); /* 'X1' */ m.call (dlplib.op_cmp_lt_2); /*6*/ break; case 4: // goal: distance2D(_G423, _G425, _G431, _G433, _G448) m.put_y_value (9,1); /* 'X' */ m.put_y_value (8,2); /* 'Z' */ m.put_y_value (4,3); /* 'X1' */ m.put_y_value (2,4); /* 'Z1' */ m.put_y_value (7,5); /* 'Dist' */ m.call (5) /*2*/; /* distance2D_5 */ break; case 5: // goal: _G448=_G11651 m.put_y_value (9,1); /* 'X' */ m.put_y_value (4,2); /* 'X1' */ m.call (dlplib.op_cmp_ge_2); /*6*/ break; case 17: // goal: distance2D(_G11643, _G11645, _G11651, _G11653, _G11668) m.put_y_value (9,1); /* 'X' */ m.put_y_value (8,2); /* 'Z' */ m.put_y_value (4,3); /* 'X1' */ m.put_y_value (2,4); /* 'Z1' */ m.put_y_value (7,5); /* 'Dist' */ m.call (5) /*2*/; /* distance2D_5 */ break; case 18: // goal: _G11668