Segmentation fault
This commit is contained in:
24
app.h
24
app.h
@@ -7,12 +7,12 @@
|
||||
|
||||
class App : public QObject, public interface::iStompObserver {
|
||||
public:
|
||||
App();
|
||||
App(Stomp* st);
|
||||
~App() = default;
|
||||
|
||||
// iStompObserver interface
|
||||
private:
|
||||
void connectConfirmation(bool success, int version);
|
||||
void connectConfirmation(bool success, QString version);
|
||||
void sendConfirmation(bool success);
|
||||
void subscribeConfirmation(bool success);
|
||||
void receiveIndication(int id, QString destination, QString body);
|
||||
@@ -20,7 +20,25 @@ private:
|
||||
void disconnectIndication();
|
||||
|
||||
private:
|
||||
Stomp st;
|
||||
Stomp* st_;
|
||||
|
||||
typedef struct {
|
||||
int x;
|
||||
int y;
|
||||
int pts;
|
||||
} Gem;
|
||||
|
||||
typedef struct {
|
||||
int x;
|
||||
int y;
|
||||
bool me;
|
||||
} Vehicle;
|
||||
|
||||
QVector<Gem> gems_;
|
||||
Vehicle myVehicle_;
|
||||
void addGem(int x, int y, int pts);
|
||||
void fillField(QString body);
|
||||
|
||||
};
|
||||
|
||||
#endif // APP_H
|
||||
|
||||
Reference in New Issue
Block a user