Snake/src/Core/SnakeProject/iworld.cpp

29 lines
349 B
C++
Raw Normal View History

2021-06-06 15:53:49 +03:00
#include "iworld.h"
#include "itemworld.h"
IWorld::IWorld() {
}
IWorld::~IWorld() {
deinit();
}
bool IWorld::init() {
}
void IWorld::deinit() {
delete _snake;
for (const auto& item : qAsConst(items)) {
delete item;
}
items.clear();
spead = 0;
currentLong = 0;
_hdrMap = "";
delete _worldRules;
}