summaryrefslogtreecommitdiffstats
path: root/kfouleggs/main.h
blob: 12aca31f7a10458962093adbbd1dcb3ae23d20e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#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