take care of other player
This commit is contained in:
4
app.h
4
app.h
@@ -32,6 +32,8 @@ protected:
|
||||
|
||||
typedef struct {
|
||||
Vector2D coordinate;
|
||||
int relativeDistanceToMe;
|
||||
int relativeDistanceToOtherPlayer;
|
||||
int pts;
|
||||
} Gem;
|
||||
|
||||
@@ -43,9 +45,11 @@ protected:
|
||||
|
||||
QVector<Gem> gems_;
|
||||
Vector2D myVehicle_;
|
||||
QVector<Vector2D> otherVehicles_;
|
||||
void addGem(int x, int y, int pts);
|
||||
void fillField(QString body);
|
||||
Vector2D computeRelativePts(Gem g);
|
||||
void computeRelativeDistance(Gem* g);
|
||||
void computeMove();
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user