42 lines
664 B
C++
42 lines
664 B
C++
#ifndef FORM_H
|
|
#define FORM_H
|
|
|
|
#include <QWidget>
|
|
#include "adcore.h"
|
|
#include "ad_graphics.h"
|
|
|
|
namespace Ui {
|
|
class Form;
|
|
}
|
|
|
|
class Form : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Form(QWidget *parent = 0);
|
|
~Form();
|
|
|
|
private slots:
|
|
void on_pbNextWave_clicked();
|
|
void towerBuild(int index);
|
|
void add_tow(QPoint pnt);
|
|
//void del_tow(QPoint pnt);
|
|
void cancel();
|
|
void towerSelected(QPoint id);
|
|
void alienSelected(int id);
|
|
|
|
private:
|
|
void timerEvent(QTimerEvent *);
|
|
|
|
Ui::Form *ui;
|
|
int buildTowerId;
|
|
AD_Core core;
|
|
AD_Graphics * graphics;
|
|
QPoint cur_tow;
|
|
int cur_al;
|
|
//QList <QPushButton *> towerButtons;
|
|
};
|
|
|
|
#endif // FORM_H
|