mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-05-02 12:39:43 +00:00
24 lines
373 B
C
24 lines
373 B
C
|
#ifndef WORLD_H
|
||
|
#define WORLD_H
|
||
|
|
||
|
#define SPEEDWORLD 10
|
||
|
|
||
|
#include <QVector>
|
||
|
#include "itemworld.h"
|
||
|
#include "baseclass.h"
|
||
|
|
||
|
class World : BaseClass
|
||
|
{
|
||
|
private:
|
||
|
QVector<ItemWorld*> items;
|
||
|
double speed;
|
||
|
QString background;
|
||
|
public:
|
||
|
World();
|
||
|
~World() override;
|
||
|
void render() override;
|
||
|
const QVector<ItemWorld*>& getItems() const;
|
||
|
};
|
||
|
|
||
|
#endif // WORLD_H
|