mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-05 02:49:57 +00:00
fix indentation, now using tabs
This commit is contained in:
@@ -15,49 +15,49 @@
|
||||
|
||||
namespace RAY
|
||||
{
|
||||
namespace Drawables {
|
||||
class ADrawable2D;
|
||||
}
|
||||
class IRessource;
|
||||
class Image: public Canvas, public IRessource {
|
||||
public:
|
||||
//! @brief Create an image, loading a file
|
||||
//! @param filename: path to file to load
|
||||
Image(const std::string &filename);
|
||||
namespace Drawables {
|
||||
class ADrawable2D;
|
||||
}
|
||||
class IRessource;
|
||||
class Image: public Canvas, public IRessource {
|
||||
public:
|
||||
//! @brief Create an image, loading a file
|
||||
//! @param filename: path to file to load
|
||||
Image(const std::string &filename);
|
||||
|
||||
//! @brief A default copy constructor
|
||||
Image(const Image &image) = default;
|
||||
//! @brief A default copy constructor
|
||||
Image(const Image &image) = default;
|
||||
|
||||
//! @brief A default constructor, no ressources loaded
|
||||
Image();
|
||||
//! @brief A default constructor, no ressources loaded
|
||||
Image();
|
||||
|
||||
//! @brief An image is assignable
|
||||
Image &operator=(const Image &image) = default;
|
||||
|
||||
//! @brief Image destructor, will unload ressources
|
||||
~Image();
|
||||
//! @brief An image is assignable
|
||||
Image &operator=(const Image &image) = default;
|
||||
|
||||
//! @brief Image destructor, will unload ressources
|
||||
~Image();
|
||||
|
||||
//! @brief load ressources from file
|
||||
//! @param filename: path of input
|
||||
bool load(const std::string &filename) override;
|
||||
//! @brief load ressources from file
|
||||
//! @param filename: path of input
|
||||
bool load(const std::string &filename) override;
|
||||
|
||||
//! @brief export to file
|
||||
//! @param outputPath: path of output
|
||||
bool exportTo(const std::string &outputPath);
|
||||
//! @brief export to file
|
||||
//! @param outputPath: path of output
|
||||
bool exportTo(const std::string &outputPath);
|
||||
|
||||
//! @brief unload ressources
|
||||
bool unload() override;
|
||||
//! @brief unload ressources
|
||||
bool unload() override;
|
||||
|
||||
//! @brief get image
|
||||
::Image &getImage(void);
|
||||
//! @brief get image
|
||||
::Image &getImage(void);
|
||||
|
||||
//! @brief draw drawable
|
||||
void draw(Drawables::ADrawable2D &);
|
||||
//! @brief draw drawable
|
||||
void draw(Drawables::ADrawable2D &);
|
||||
|
||||
private:
|
||||
//! @brief Image, really, that's just it...
|
||||
::Image _image;
|
||||
};
|
||||
private:
|
||||
//! @brief Image, really, that's just it...
|
||||
::Image _image;
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* !IMAGE_HPP_ */
|
||||
|
||||
Reference in New Issue
Block a user