?? basicdash.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: Meisam Vosoughpour, Mohammad Salehe * Released on Friday 1 April 2005 by Mersad RoboCup Team. * For more information please read README file.*/#ifndef __BASIC_DASH_H#define __BASIC_DASH_H#include <BasicAction.h>#include <WorldModel.h>#include <Types.h>#include <Config.h>#ifndef NULL# define NULL 0#endif // NULLclass DashDribbleGotoBall: public BasicAction{protected: Command *command; public: DashDribbleGotoBall(const Ball &ball, const Body &body); virtual Command *getCommand();};class DashNormalGotoPoint: public BasicAction{protected: Command *command; CommandType mode; public: DashNormalGotoPoint(const Point &target, float distance, const Body &body, float maxDashPower = 100); DashNormalGotoPoint(const Point &target, float distance, const Body &body, float idealBodyDir, float maxDashPower); CommandType getMode(); virtual Command *getCommand();};class ExactGotoPoint: public BasicAction{protected: Command *command; CommandType mode;public: ExactGotoPoint::ExactGotoPoint(Point targetPoint, float deltaDistance, const Body &body, bool negDashFlag = false); void setDashPower(const Body &body, Point targetPoint, float defaultDashPower, float &dashPower); CommandType getMode(); virtual Command *getCommand();};class PreciseGotoPoint: public BasicAction{protected: Command *command; CommandType mode;public: PreciseGotoPoint::PreciseGotoPoint(Point targetPoint, float deltaDistance, const Body &body, bool negDashFlag = false, float minTurnAngle = 20); void setDashPower(const Body &body, Point targetPoint, float defaultDashPower, float &dashPower); CommandType getMode(); virtual Command *getCommand();};/*class DashFarNormalGotoPoint: BasicAction{protected: Point target; float distance; Body *body; GotoPointMode mode;public: DashFarNormalGotoPoint(const Point &target, float distance, Body *body, GotoPointMode mode); virtual Command *getCommand();};*//*class DashClear: BasicAction{protected: Ball *ball; Body *body; bool isOpp;public: DashClear(Ball *ball, Body *body, bool isOpp); virtual Command *getCommand();};*/class FreeKickGotoPoint: public BasicAction{protected: Command *command; int status; public: FreeKickGotoPoint(const Point &point, float standDirection,float collisionDistance, const Body &body); // Return Value = 0:arrived; 1:not arrived int getStatus() const; virtual Command *getCommand();};class ForbiddenAreaGotoPoint: public BasicAction{protected: Command *command; int status; bool forbiddenSourceFlag; bool forbiddenTargetFlag; int realTargetPlace; Point realTargetPoint; bool clockwiseFlag; bool goAroundFlag; public: ForbiddenAreaGotoPoint(const Point &point, float rectX1, float rectY1, float rectY2, const Body &body); ForbiddenAreaGotoPoint(const Point &point, Point &rectNW, Point &rectSE, const Body &body); ForbiddenAreaGotoPoint(const Point &point, Point circleCenter, float circleRadius, const Body &body, bool forbiddenX = false); virtual Command *getCommand(); bool isForbiddenSource() const; bool isForbiddenTarget() const; int getRealTargetPlace() const; Point getRealTargetPoint() const; bool isClockwise() const; bool isGoAround() const; // Return Value = 0:arrived; 1:not arrived int getStatus() const; };#endif // __BASIC_DASH_H
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -