You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
|
|
|
|
#ifndef CSCI_MAP_CONTROLLER_H
|
|
|
|
|
#define CSCI_MAP_CONTROLLER_H
|
|
|
|
|
|
|
|
|
|
#include "../entity/map_entity.h"
|
|
|
|
|
#include "../include/controller/base_controller.h"
|
|
|
|
|
/// 仿真场景控制
|
|
|
|
|
class MapController: public BaseController<MapController> {
|
|
|
|
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 加载地图场景
|
|
|
|
|
* @param int mapId 场景id
|
|
|
|
|
* @return 执行结果 成功:bool,失败:false
|
|
|
|
|
*/
|
|
|
|
|
bool loadMap(long mapId);
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
|
|
void route(const QString& key, const QString& message);
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //CSCI_MAP_CONTROLLER_H
|