types.h

来自「2009 ROBOCUP 仿真2DSERVER 源码」· C头文件 代码 · 共 580 行 · 第 1/2 页

H
580
字号
    Int32 x;    Int32 y;    Int32 deltax;    Int32 deltay;};struct player_t {    Int16 mode;    Int16 type;    Int32 x;    Int32 y;    Int32 deltax;    Int32 deltay;    Int32 body_angle;    Int32 head_angle;    Int32 view_width;    Int16 view_quality;    Int32 stamina;    Int32 effort;    Int32 recovery;    Int16 kick_count;    Int16 dash_count;    Int16 turn_count;    Int16 say_count;    Int16 tneck_count;    Int16 catch_count;    Int16 move_count;    Int16 chg_view_count;};struct showinfo_t2 {    char		pmode;    team_t	team[2];    ball_t	ball;    player_t	pos[MAX_PLAYER * 2];    Int16		time;};struct short_showinfo_t2 {    ball_t ball;    player_t pos[MAX_PLAYER * 2];    Int16 time;};struct player_type_t {    Int16 id;    Int32 player_speed_max;    Int32 stamina_inc_max;    Int32 player_decay;    Int32 inertia_moment;    Int32 dash_power_rate;    Int32 player_size;    Int32 kickable_margin;    Int32 kick_rand;    Int32 extra_stamina;    Int32 effort_max;    Int32 effort_min;    // spare variables which are to be used for paramenter added in the future    Int32 sparelong1;    Int32 sparelong2;    Int32 sparelong3;    Int32 sparelong4;    Int32 sparelong5;    Int32 sparelong6;    Int32 sparelong7;    Int32 sparelong8;    Int32 sparelong9;    Int32 sparelong10;};struct server_params_t {    Int32 gwidth;					/* goal width */    Int32 inertia_moment;			/* intertia moment for turn */    Int32 psize;					/* player size */    Int32 pdecay;					/* player decay */    Int32 prand;					/* player rand */    Int32 pweight;					/* player weight */    Int32 pspeed_max;				/* player speed max */    // th 6.3.00    Int32 paccel_max;				/* player acceleration max */    //    Int32 stamina_max;				/* player stamina max */    Int32 stamina_inc;				/* player stamina inc */    Int32 recover_init;			/* player recovery init */    Int32 recover_dthr;			/* player recovery decriment threshold */    Int32 recover_min;				/* player recovery min */    Int32 recover_dec;				/* player recovery decriment */    Int32 effort_init;				/* player dash effort init */    Int32 effort_dthr;				/* player dash effort decriment threshold */    Int32 effort_min;				/* player dash effrot min */    Int32 effort_dec;				/* player dash effort decriment */    Int32 effort_ithr;				/* player dash effort incriment threshold */    Int32 effort_inc;				/* player dash effort incriment */    // pfr 8/14/00: for RC2000 evaluation    Int32 kick_rand;                                /* noise added directly to kicks */    Int16 team_actuator_noise;                        /* flag whether to use team specific actuator noise */    Int32 prand_factor_l;                           /* factor to multiple prand for left team */    Int32 prand_factor_r;                           /* factor to multiple prand for right team */    Int32 kick_rand_factor_l;                       /* factor to multiple kick_rand for left team */    Int32 kick_rand_factor_r;                       /* factor to multiple kick_rand for right team */    Int32 bsize;					/* ball size */    Int32 bdecay;					/* ball decay */    Int32 brand;					/* ball rand */    Int32 bweight;					/* ball weight */    Int32 bspeed_max;				/* ball speed max */    // th 6.3.00    Int32 baccel_max;				/* ball acceleration max */    //    Int32 dprate;					/* dash power rate */    Int32 kprate;					/* kick power rate */    Int32 kmargin;					/* kickable margin */    Int32 ctlradius;				/* control radius */    Int32 ctlradius_width;			/* (control radius) - (plyaer size) */    Int32 maxp;					/* max power */    Int32 minp;					/* min power */    Int32 maxm;					/* max moment */    Int32 minm;					/* min moment */    Int32 maxnm;					/* max neck moment */    Int32 minnm;					/* min neck moment */    Int32 maxn;					/* max neck angle */    Int32 minn;					/* min neck angle */    Int32 visangle;				/* visible angle */    Int32 visdist;					/* visible distance */    Int32 windir;					/* wind direction */    Int32 winforce;				/* wind force */    Int32 winang;					/* wind angle for rand */    Int32 winrand;					/* wind force for force */    Int32 kickable_area;			/* kickable_area */    Int32 catch_area_l;			/* goalie catchable area length */    Int32 catch_area_w;			/* goalie catchable area width */    Int32 catch_prob;				/* goalie catchable possibility */    Int16   goalie_max_moves;                 /* goalie max moves after a catch */    Int32 ckmargin;				/* corner kick margin */    Int32 offside_area;			/* offside active area size */    Int16 win_no;					/* wind factor is none */    Int16 win_random;				/* wind factor is random */    Int16 say_cnt_max;				/* max count of coach SAY */    Int16 SayCoachMsgSize;				/* max length of coach SAY */    Int16 clang_win_size;    Int16 clang_define_win;    Int16 clang_meta_win;    Int16 clang_advice_win;    Int16 clang_info_win;    Int16 clang_mess_delay;    Int16 clang_mess_per_cycle;    Int16 half_time;					/* half time */    Int16 sim_st;					/* simulator step interval msec */    Int16 send_st;					/* udp send step interval msec */    Int16 recv_st;					/* udp recv step interval msec */    Int16 sb_step;					/* sense_body interval step msec */    Int16 lcm_st;		                        /* lcm of all the above steps msec */    Int16 M_say_msg_size;				/* string size of say message */    Int16 M_hear_max;					/* player hear_capacity_max */    Int16 M_hear_inc;					/* player hear_capacity_inc */    Int16 M_hear_decay;				/* player hear_capacity_decay */    Int16 cban_cycle;				/* goalie catch ban cycle */    Int16 slow_down_factor;                          /* factor to slow down simulator and send intervals */    Int16 useoffside;				/* flag for using off side rule */    Int16 kickoffoffside;			/* flag for permit kick off offside */    Int32 offside_kick_margin;		/* offside kick margin */    Int32 audio_dist;				/* audio cut off distance */    Int32 dist_qstep;				/* quantize step of distance */    Int32 land_qstep;				/* quantize step of distance for landmark */    Int32 dir_qstep;				/* quantize step of direction */    Int32 dist_qstep_l;			/* team right quantize step of distance */    Int32 dist_qstep_r;			/* team left quantize step of distance */    Int32 land_qstep_l;			/* team right quantize step of distance for landmark */    Int32 land_qstep_r;			/* team left quantize step of distance for landmark */    Int32 dir_qstep_l;				/* team left quantize step of direction */    Int32 dir_qstep_r;				/* team right quantize step of direction */    Int16 CoachMode;				/* coach mode */    Int16 CwRMode;					/* coach with referee mode */    Int16 old_hear;					/* old format for hear command (coach) */    Int16 sv_st;					/* online coach's look interval step */    // spare variables which are to be used for paramenter added in the future    Int32 slowness_on_top_for_left_team;    Int32 slowness_on_top_for_right_team;    Int32 ka_length;                    /* keepaway region length */    Int32 ka_width;                     /* keepaway region width */    // 11.0.0    Int32 ball_stuck_area; // automatic drop ball threshold while play_on    // 12.0.0    Int32 max_tackle_power;    Int32 max_back_tackle_power;    Int32 tackle_dist;    Int32 tackle_back_dist;    Int32 tackle_width;    Int16 start_goal_l;    Int16 start_goal_r;    Int16 fullstate_l;    Int16 fullstate_r;    Int16 drop_time;    Int16 synch_mode;    Int16 synch_offset;    Int16 synch_micro_sleep;    Int16 point_to_ban;    Int16 point_to_duration;    //Int16 kaway; /* keepaway mode on/off */ /* No room in struct */    // no room in struct    //  Int16 pen_before_setup_wait;    //  Int16 pen_setup_wait;    //  Int16 pen_ready_wait;    //  Int16 pen_taken_wait;    //  Int16 pen_nr_kicks;    //  Int16 pen_max_extra_kicks;    //  Int32 pen_dist_x;    //  Int16 pen_random_winner;    //  Int32 pen_max_goalie_dist_x;    //  Int16 pen_allow_mult_kicks;};struct player_params_t {    Int16 player_types;    Int16 subs_max;    Int16 pt_max;    Int32 player_speed_max_delta_min;    Int32 player_speed_max_delta_max;    Int32 stamina_inc_max_delta_factor;    Int32 player_decay_delta_min;    Int32 player_decay_delta_max;    Int32 inertia_moment_delta_factor;    Int32 dash_power_rate_delta_min;    Int32 dash_power_rate_delta_max;    Int32 player_size_delta_factor;    Int32 kickable_margin_delta_min;    Int32 kickable_margin_delta_max;    Int32 kick_rand_delta_factor;    Int32 extra_stamina_delta_min;    Int32 extra_stamina_delta_max;    Int32 effort_max_delta_factor;    Int32 effort_min_delta_factor;    Int32 random_seed;    Int32 new_dash_power_rate_delta_min;    Int32 new_dash_power_rate_delta_max;    Int32 new_stamina_inc_max_delta_factor;    //Int32 sparelong1;  replaced by seed    //Int32 sparelong2;  replaced by new_dash_power_rate_delta_min    //Int32 sparelong3;  replaced by new_dash_power_rate_delta_max    //Int32 sparelong4;  replaced by new_stamina_inc_max_delta_factor    Int32 sparelong5;    Int32 sparelong6;    Int32 sparelong7;    Int32 sparelong8;    Int32 sparelong9;    Int32 sparelong10;    Int16 allow_mult_default_type;    Int16 spareshort2;    Int16 spareshort3;    Int16 spareshort4;    Int16 spareshort5;    Int16 spareshort6;    Int16 spareshort7;    Int16 spareshort8;    Int16 spareshort9;    Int16 spareshort10;};struct dispinfo_t2 {    Int16 mode;    union {        showinfo_t2 		show;        msginfo_t 		msg;        player_type_t		ptinfo;        server_params_t		sparams;        player_params_t		pparams;    } body;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?