mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-05-01 12:09:48 +00:00
29 lines
349 B
C++
29 lines
349 B
C++
|
#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;
|
||
|
}
|