mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-05-01 12:09:48 +00:00
31 lines
707 B
C
31 lines
707 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 LEVEL_H
|
||
|
#define LEVEL_H
|
||
|
|
||
|
class IWorld;
|
||
|
|
||
|
/**
|
||
|
* @brief The ILevel class This interface make the world instance object.
|
||
|
* All levels libraries should be override this interface.
|
||
|
*/
|
||
|
class ILevel
|
||
|
{
|
||
|
public:
|
||
|
ILevel() = default;
|
||
|
virtual ~ILevel() = default;
|
||
|
|
||
|
/**
|
||
|
* @brief world This method should be return pointer to the level world.
|
||
|
* @return pointer to the level world.
|
||
|
*/
|
||
|
virtual IWorld* world() = 0;
|
||
|
};
|
||
|
|
||
|
#endif // LEVEL_H
|