feat(radar state): initial scaffolding

This commit is contained in:
MarcoJayUsai
2025-03-18 14:42:46 +01:00
parent 16e77087f5
commit ee15106be1
8 changed files with 244 additions and 133 deletions

View File

@@ -7,6 +7,7 @@ namespace DataIndex {
startOfData = 0,
category,
alive,
radarState,
human,
controlled,
coalition,

View File

@@ -112,10 +112,12 @@ public:
virtual void setRacetrackLength(double newValue) { updateValue(racetrackLength, newValue, DataIndex::racetrackLength); }
virtual void setRacetrackAnchor(Coords newValue) { updateValue(racetrackAnchor, newValue, DataIndex::racetrackAnchor); }
virtual void setRacetrackBearing(double newValue) { updateValue(racetrackBearing, newValue, DataIndex::racetrackBearing); }
virtual void setRadarState(string newValue) { updateValue(radarState, newValue, DataIndex::radarState); }
/********** Getters **********/
virtual string getCategory() { return category; };
virtual bool getAlive() { return alive; }
virtual string getRadarState() { return radarState; }
virtual bool getHuman() { return human; }
virtual bool getControlled() { return controlled; }
virtual unsigned char getCoalition() { return coalition; }
@@ -178,6 +180,7 @@ protected:
string callsign = "";
string groupName = "";
unsigned char state = State::NONE;
string radarState = "";
string task = "";
bool hasTask = false;
Coords position = Coords(NULL);