finish mandatory part of the lab

This commit is contained in:
2023-12-26 22:09:42 +01:00
parent 2418aafa97
commit 17ba18a200
3 changed files with 41 additions and 7 deletions

5
app.h
View File

@@ -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();
};