?? type.h
字號(hào):
/*球場(chǎng),足球,機(jī)器人的數(shù)據(jù)結(jié)構(gòu)*/
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;
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;
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -