mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-01 17:55:48 +00:00
adding CPPLINT.cfg
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
|
||||
# Don't search for additional CPPLINT.cfg in parent directories.
|
||||
set noparent
|
||||
# Use 'ART_' as the cpp header guard prefix (e.g. #ifndef ART_PATH_TO_FILE_H_).
|
||||
root=.
|
||||
# Limit line length.
|
||||
linelength=120
|
||||
# Ignore the following categories of errors, as specified by the filter:
|
||||
# (the filter settings are concatenated together)
|
||||
filter=-build/c++11
|
||||
filter=-whitespace/tab
|
||||
filter=-whitespace/braces
|
||||
filter=-legal/copyright
|
||||
filter=-runtime/indentation_namespace
|
||||
filter=-whitespace/ending_newline
|
||||
#filter=-readability/function,-readability/streams,-readability/todo
|
||||
#filter=-runtime/printf,-runtime/references,-runtime/sizeof,-runtime/threadsafe_fn
|
||||
# TODO: this should be re-enabled.
|
||||
|
||||
exclude_files=cmake-build-debug/*
|
||||
exclude_files=build/*
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
** EPITECH PROJECT, 2021
|
||||
** Bomberman
|
||||
** File description:
|
||||
** Image
|
||||
*/
|
||||
|
||||
#ifndef IMAGE_HPP_
|
||||
#define IMAGE_HPP_
|
||||
|
||||
#include <raylib.h>
|
||||
#include <string>
|
||||
#include "Canvas.hpp"
|
||||
#include "Texture.hpp"
|
||||
#include "IRessource.hpp"
|
||||
|
||||
namespace RAY
|
||||
{
|
||||
namespace Drawables {
|
||||
class ADrawable2D;
|
||||
}
|
||||
class IRessource;
|
||||
//! @brief Object representation of a framebuffer
|
||||
class Image: public Canvas, public IRessource {
|
||||
public:
|
||||
//! @brief Create an image, loading a file
|
||||
//! @param filename: path to file to load
|
||||
explicit Image(const std::string &filename);
|
||||
|
||||
//! @brief Create an image, using data from a texure
|
||||
//! @param texture: texture to extract data from
|
||||
explicit Image(Texture &texture);
|
||||
|
||||
//! @brief A default copy constructor
|
||||
Image(const Image &image) = default;
|
||||
|
||||
//! @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() 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 unload ressources
|
||||
bool unload() override;
|
||||
|
||||
//! @brief get image
|
||||
operator ::Image() const;
|
||||
operator ::Image *();
|
||||
|
||||
//! @brief draw drawable
|
||||
void draw(Drawables::ADrawable2D &);
|
||||
|
||||
private:
|
||||
//! @brief Image, really, that's just it...
|
||||
::Image _image;
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* !IMAGE_HPP_ */
|
||||
@@ -22,11 +22,11 @@ namespace WAL
|
||||
|
||||
void Component::onStart()
|
||||
{
|
||||
//TODO handle events here
|
||||
// TODO handle events here
|
||||
}
|
||||
|
||||
void Component::onStop()
|
||||
{
|
||||
//TODO handle events here
|
||||
// TODO handle events here
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ namespace WAL
|
||||
{
|
||||
//! @brief The entity class, used to prevent circular dependencies.
|
||||
class Entity;
|
||||
|
||||
|
||||
//! @brief Represent a single component of WAL.
|
||||
class Component
|
||||
{
|
||||
|
||||
@@ -7,7 +7,19 @@
|
||||
|
||||
|
||||
#include <iostream>
|
||||
<<<<<<< Updated upstream
|
||||
#include <Wal.hpp>
|
||||
=======
|
||||
#include <cmath>
|
||||
#include "Window.hpp"
|
||||
#include "Drawables/2D/Text.hpp"
|
||||
#include "Drawables/2D/Circle.hpp"
|
||||
#include "Controllers/Keyboard.hpp"
|
||||
#include "Camera/Camera3D.hpp"
|
||||
#include "Drawables/3D/Grid.hpp"
|
||||
#include "Drawables/3D/Cube.hpp"
|
||||
#include "Wal.hpp"
|
||||
>>>>>>> Stashed changes
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user