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.
29 lines
543 B
29 lines
543 B
15 years ago
|
#include "factory.h"
|
||
|
|
||
|
#include "ai.h"
|
||
|
#include "settings.h"
|
||
|
|
||
|
|
||
|
CommonFactory::CommonFactory(const MainData &md, const BaseBoardInfo &bbi,
|
||
|
const CommonBoardInfo &ci)
|
||
|
: BaseFactory(md, bbi), cbi(ci)
|
||
|
{}
|
||
|
|
||
|
QWidget *CommonFactory::createAppearanceConfig()
|
||
|
{
|
||
|
return new AppearanceConfig;
|
||
|
}
|
||
|
|
||
|
QWidget *CommonFactory::createGameConfig()
|
||
|
{
|
||
|
return new GameConfig;
|
||
|
}
|
||
|
|
||
|
QWidget *CommonFactory::createAIConfig()
|
||
|
{
|
||
|
AI *ai = createAI();
|
||
|
QWidget *cw = new AIConfig(ai->elements());
|
||
|
delete ai;
|
||
|
return cw;
|
||
|
}
|