simulationcontrol.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 SlotSetJammingStyle(QWebSocket *pSender, QJsonObject obj);
  41. void SlotGetESMParams(QWebSocket *pSender, QJsonObject obj);
  42. };
  43. #endif // SIMULATIONCONTROL_H