-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMap_Level_4.h
More file actions
43 lines (39 loc) · 1.21 KB
/
Copy pathMap_Level_4.h
File metadata and controls
43 lines (39 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef MAP_LEVEL_4_H
#define MAP_LEVEL_4_H
#include<QWidget>
#include<QPainter>
#include <QCoreApplication>
#include <QGraphicsScene>
#include <QGraphicsItem>
#include <QGraphicsPixmapItem>
#include <QTimer>
#include <QObject>
#include "Level_Map_Impl.h" // 引入实现类
#include "Steve.h"//引入人物类
#include "Enderman.h"
class Map_Level_4: public QObject, public Level_Map_Impl
{
Q_OBJECT
public:
Map_Level_4();
~Map_Level_4();
bool isRoad(int x, int y) const override;
void checkMagmaDamage(int x, int y);
bool isLadder(int x, int y) const override;
bool isTransmit(int x, int y) const override;
bool isTransmitBack(int x, int y) const override;
bool isInteractive(int x, int y) const override;
bool isTrigger(int x, int y) const override;
void removeTrigger(int x, int y) override;
void setTrigger(int x, int y) override;
void updateBlock(int x, int y, int newBlockType){}
QGraphicsScene* getScene() const override { return level_4_Scene; }
public:
QGraphicsScene* level_4_Scene;
Steve m_Steve;
Enderman m_Enderman;
private:
QString filePath;
vector<vector<int>> map_4;
};
#endif // MAP_LEVEL_4_H