finish mandatory part of the lab
This commit is contained in:
5
app.h
5
app.h
@@ -4,6 +4,7 @@
|
||||
#include <QObject>
|
||||
#include "interface/iStompObserver.h"
|
||||
#include "stomp.h"
|
||||
#include <QVector2D>
|
||||
|
||||
class App : public QObject, public interface::iStompObserver {
|
||||
public:
|
||||
@@ -26,6 +27,7 @@ private:
|
||||
int x;
|
||||
int y;
|
||||
int pts;
|
||||
QVector2D relativePts;
|
||||
} Gem;
|
||||
|
||||
typedef struct {
|
||||
@@ -37,7 +39,10 @@ private:
|
||||
QVector<Gem> gems_;
|
||||
Vehicle myVehicle_;
|
||||
void addGem(int x, int y, int pts);
|
||||
void printGem();
|
||||
void fillField(QString body);
|
||||
QVector2D computeRelativePts(Gem g);
|
||||
void computeMove();
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user