📄 type.h
字号:
/*球场,足球,机器人的数据结构*/
typedef struct
{
int color;
float position[4];
}FootballPitch;
typedef struct
{
int color;
float ball_x;
float ball_y;
float init_speed;
float radius;
float direction_angle;
float friction_factor;
}Football;
typedef struct
{
int number;
char team;
float sidelength;
int color;
float position_x;
float position_y;
float small_speed;
float big_speed;
float forward_speed;
float direction; /*the smallest angle from the robot to the ball*/
float decline; /*the angle that robot changes every time*/
float reverse_radius;
float reverse_factor;
float direction_indicator; /*the angle that the robot faces to*/
float shoot_angle;
}Robot;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -