mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-05-18 12:29:47 +00:00
15 lines
300 B
C++
15 lines
300 B
C++
#include "guiobjectfactory.h"
|
|
#include "box.h"
|
|
#include "utils.h"
|
|
|
|
GuiObjectFactory::GuiObjectFactory() {}
|
|
|
|
ItemWorld *GuiObjectFactory::generate(const QString &name) {
|
|
ItemWorld *obj = nullptr;
|
|
if (name == "Box") {
|
|
obj = new Box(-Global::deviceSize.x(), 0);
|
|
}
|
|
|
|
return obj;
|
|
}
|