Files
autopilot/drone_controller/az_action_point.h
T
Tuomas Järvinen 45c19baa45 Changed directory structure and renamed applications
- autopilot -> drone_controller
- rtsp_ai_player -> ai_controller
- added top level qmake project file
- updated documentation
- moved small demo applications from tmp/ to misc/
2024-10-19 14:44:34 +02:00

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;
};