mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 21:46:33 +00:00
45c19baa45
- autopilot -> drone_controller - rtsp_ai_player -> ai_controller - added top level qmake project file - updated documentation - moved small demo applications from tmp/ to misc/
45 lines
972 B
C++
45 lines
972 B
C++
#pragma once
|
|
|
|
#include "az_coordinate.h"
|
|
|
|
enum AzActionPointType {
|
|
AZ_ACTION_POINT_TYPE_NONE = 0,
|
|
AZ_ACTION_POINT_TYPE_WAYPOINT = 1,
|
|
AZ_ACTION_POINT_TYPE_SEARCH = 2,
|
|
AZ_ACTION_POINT_TYPE_RETURN = 3
|
|
};
|
|
|
|
enum AzActionSpecific {
|
|
AZ_ACTION_SPECIFIC_NONE = 1 << 0,
|
|
AZ_ACTION_SPECIFIC_TANK = 1 << 1,
|
|
AZ_ACTION_SPECIFIC_ARTILLERY = 1 << 2,
|
|
};
|
|
|
|
class AzActionPoint
|
|
{
|
|
public:
|
|
AzActionPoint(const AzCoordinate &point, int height, AzActionPointType actionPointType, uint actionSpesific);
|
|
|
|
AzCoordinate getPoint(void) const;
|
|
|
|
int getHeight(void) const;
|
|
|
|
AzActionPointType getType(void) const;
|
|
|
|
string getTypeStr(void) const;
|
|
|
|
bool isTank(void) const;
|
|
|
|
bool isArtillery(void) const;
|
|
|
|
string getActionSpecificStr(void) const;
|
|
|
|
friend ostream &operator<<(ostream &os, const AzActionPoint &obj);
|
|
|
|
private:
|
|
AzCoordinate mPoint;
|
|
int mHeight;
|
|
AzActionPointType mType;
|
|
uint mActionSpesific;
|
|
};
|