simulationcontrol.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef SIMULATIONCONTROL_H
  2. #define SIMULATIONCONTROL_H
  3. #include <QObject>
  4. #include <QJsonObject>
  5. #include <QJsonArray>
  6. #include <QJsonValue>
  7. #include "platform.h"
  8. #include "external/radar.h"
  9. #include "external/jamming.h"
  10. #include "QtWebSockets/QWebSocket"
  11. class SimulationControl : public QObject
  12. {
  13. Q_OBJECT
  14. public:
  15. std::vector<Platform *> allyplane;
  16. std::vector<Platform *> allymissile;
  17. std::map<int, Jamming *> allyJammingSim;
  18. std::vector<std::vector<Platform *>> ally;
  19. std::vector<Platform *> enemyradar;
  20. std::map<int, Radar *> enemyThaadRadarSim;
  21. std::vector<Platform *> enemysat;
  22. std::vector<std::vector<Platform *>> enemy;
  23. explicit SimulationControl(QObject *parent = nullptr);
  24. signals:
  25. void SigReturnData(QWebSocket *pSender, QJsonObject *obj);
  26. public slots:
  27. void SlotGetInit(QWebSocket *pSender, QJsonObject obj);
  28. void SlotGetLeadPost(QWebSocket *pSender, QJsonObject obj);
  29. void SlotGetTaskPlan(QWebSocket *pSender, QJsonObject obj);
  30. void SlotGetGlobalMap(QWebSocket *pSender, QJsonObject obj);
  31. void SlotGetPlatformTable(QWebSocket *pSender, QJsonObject obj);
  32. void SlotGetInstanceTable(QWebSocket *pSender, QJsonObject obj);
  33. void SlotGetRadarInstances(QWebSocket *pSender, QJsonObject obj);
  34. void SlotGetRadarParams(QWebSocket *pSender, QJsonObject obj);
  35. void SlotGetThaadInstances(QWebSocket *pSender, QJsonObject obj);
  36. void SlotGetThaadParams(QWebSocket *pSender, QJsonObject obj);
  37. void SlotSetThaadStyle(QWebSocket *pSender, QJsonObject obj);
  38. void SlotGetJammingInstances(QWebSocket *pSender, QJsonObject obj);
  39. void SlotGetJammingParams(QWebSocket *pSender, QJsonObject obj);
  40. void SlotGetESMParams(QWebSocket *pSender, QJsonObject obj);
  41. };
  42. #endif // SIMULATIONCONTROL_H