mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-04-28 02:34:44 +00:00
43 lines
1018 B
C++
43 lines
1018 B
C++
//#
|
|
//# Copyright (C) 2021-2021 QuasarApp.
|
|
//# Distributed under the GPLv3 software license, see the accompanying
|
|
//# Everyone is permitted to copy and distribute verbatim copies
|
|
//# of this license document, but changing it is not allowed.
|
|
//#
|
|
|
|
#ifndef WORLD_H
|
|
#define WORLD_H
|
|
|
|
#include "Crawl/iworld.h"
|
|
|
|
namespace TestLvl {
|
|
|
|
|
|
class World : public CRAWL::IWorld {
|
|
|
|
// IWorld interface
|
|
public:
|
|
|
|
World();
|
|
|
|
CRAWL::WorldRule *initWorldRules() override;
|
|
QString initHdrBackGround() const override;
|
|
QString description() const override;
|
|
QString imagePreview() const override;
|
|
QString name() const override;
|
|
int costToUnlock() const override;
|
|
CRAWL::IControl *initUserInterface() const override;
|
|
void initPlayerControl(CRAWL::IControl *control) override;
|
|
CRAWL::PlayableObject *initPlayer() const override;
|
|
CRAWL::IAI *initBackGroundAI() const override;
|
|
|
|
private slots:
|
|
void handleXViewChanged(double dx);
|
|
void handleYViewChanged(double dy);
|
|
|
|
};
|
|
|
|
|
|
}
|
|
#endif // WORLD_H
|