📄 types.h
字号:
/* * Copyright 2002-2004, Mersad Team, Allame Helli High School (NODET). * * This program is free software, you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. * * Created by: Ahmad Boorghany * Released on Friday 1 April 2005 by Mersad RoboCup Team. * For more information please read README file.*/#ifndef __TYPES_H#define __TYPES_H#ifndef NULL# define NULL 0#endif // NULL#include <iostream>// structuresstruct Point{ float x; float y; Point(float x = 0.0, float y = 0.0): x(x), y(y) {} float getDistance(const Point &point);};std::ostream &operator<<(std::ostream &stream, const Point &point);// enumeratorsenum TeamId{ TID_TEAMMATE = 0, TID_OPPONENT = 1, TID_UNKNOWN};enum ViewModeQuality{ VMQ_LOW, VMQ_HIGH};enum ViewModeWidth{ VMW_NARROW, VMW_NORMAL, VMW_WIDE};enum DecideType{ DT_NONE, DT_MOVE, DT_PASS, DT_CATCH, DT_SHOOT, DT_CLEAR, DT_BLOCK, DT_DRIBBLE, DT_TACKLE, DT_SRPDRIBBLE, DT_OFFENSE, DT_DEFENSE, DT_INTERCEPT, DT_DRIBBLE_INTERCEPT, DT_GOALIE_INTERCEPT, DT_GOALIE_POSITIONING, DT_LOOK_FOR_BALL, DT_NON_PLAY_ON_BACK_BALL, DT_NON_PLAY_ON_GOTO_KICK, DT_NON_PLAY_ON_BEFORE_KICK_OFF, DT_GOALIE_CATCH_OFFENSE, DT_HOLD_BALL};enum Side{ SI_LEFT, SI_RIGHT};enum PlayMode{ PM_TIME_UP_WITHOUT_A_TEAM, PM_TIME_UP, PM_BEFORE_KICK_OFF, PM_PLAY_ON, PM_KICK_OFF, PM_KICK_OFF_OPP, PM_FREE_KICK, PM_FREE_KICK_OPP, PM_KICK_IN, PM_KICK_IN_OPP, PM_OFFSIDE, PM_OFFSIDE_OPP, PM_GOAL, PM_GOAL_OPP, PM_GOAL_KICK, PM_GOAL_KICK_OPP, PM_CORNER_KICK, PM_CORNER_KICK_OPP, PM_FREE_KICK_FAULT, PM_FREE_KICK_FAULT_OPP, PM_CATCH_FAULT, PM_CATCH_FAULT_OPP, PM_BACK_PASS, PM_BACK_PASS_OPP, PM_PENALTY_SETUP, PM_PENALTY_SETUP_OPP, PM_PENALTY_READY, PM_PENALTY_READY_OPP,};enum VirtualPlayMode{ VPM_NONE, VPM_DROP_BALL, VPM_HALF_TIME, VPM_TIME_EXTENDED, VPM_PENALTY_DRAW, VPM_GOALIE_CATCH_BALL, VPM_GOALIE_CATCH_BALL_OPP, VPM_GOAL_KICK_TAKEN, VPM_FOUL, VPM_FOUL_OPP, VPM_PENALTY_ON_FIELD, VPM_PENALTY_ON_FIELD_OPP, VPM_PENALTY_MISS, VPM_PENALTY_MISS_OPP, VPM_PENALTY_SCORE, VPM_PENALTY_SCORE_OPP, VPM_PENALTY_WINNER, VPM_PENALTY_WINNER_OPP, VPM_PENALTY_FOUL, VPM_PENALTY_FOUL_OPP, VPM_PENALTY_TAKEN, VPM_PENALTY_TAKEN_OPP, VPM_INDIRECT_FREE_KICK, VPM_INDIRECT_FREE_KICK_OPP};enum BallStatus{ BS_NONE, BS_KICKABLE_TMM, BS_KICKABLE_OPP, BS_KICKABLE_BODY, BS_KICKABLE_TMM_OPP, BS_KICKABLE_BODY_TMM, BS_KICKABLE_BODY_OPP, BS_FREE_BALL, BS_FREE_BALL_TMM, BS_FREE_BALL_OPP, BS_FREE_BALL_BODY, BS_FREE_BALL_TMM_OPP, BS_FREE_BALL_BODY_TMM, BS_FREE_BALL_BODY_OPP};enum TriAnswer{ TA_YES, TA_NO, TA_DONT_KHOW};std::ostream &operator<<(std::ostream &stream, const BallStatus &var);#endif // __TYPES_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -