You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
833 B
36 lines
833 B
#ifndef FE_MAIN_H
|
|
#define FE_MAIN_H
|
|
|
|
#include "common/main.h"
|
|
#include "common/factory.h"
|
|
#include "board.h"
|
|
#include "ai.h"
|
|
#include "field.h"
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
class FEFactory : public CommonFactory
|
|
{
|
|
public:
|
|
FEFactory();
|
|
|
|
protected:
|
|
virtual BaseBoard *createBoard(bool graphic, TQWidget *tqparent)
|
|
{ return new FEBoard(graphic, tqparent); }
|
|
virtual BaseField *createField(TQWidget *tqparent)
|
|
{ return new FEField(tqparent); }
|
|
virtual BaseInterface *createInterface(TQWidget *tqparent);
|
|
virtual AI *createAI() { return new FEAI; }
|
|
};
|
|
|
|
//-----------------------------------------------------------------------------
|
|
class FEMainWindow : public MainWindow
|
|
{
|
|
Q_OBJECT
|
|
TQ_OBJECT
|
|
public:
|
|
FEMainWindow() { init(); }
|
|
};
|
|
|
|
#endif
|