mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 13:25:10 +00:00
28 lines
785 B
C++
28 lines
785 B
C++
//
|
|
// Created by Zoe Roux on 5/27/21.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <Component/Component.hpp>
|
|
|
|
namespace BBM
|
|
{
|
|
//! @brief A class allowing one to place the camera in the scene.
|
|
//! @warning Only one CameraComponent is allowed on the scene. Using more than one result in undefined behaviors.
|
|
class CameraComponent : public WAL::Component
|
|
{
|
|
public:
|
|
//! @inherit
|
|
Component *clone(WAL::Entity &entity) const override;
|
|
|
|
//! @brief Ctor
|
|
explicit CameraComponent(WAL::Entity &);
|
|
//! @brief A camera component is copy constructable.
|
|
CameraComponent(const CameraComponent &) = default;
|
|
//! @brief Default destructor.
|
|
~CameraComponent() override = default;
|
|
//! @brief A camera component can't be assigned.
|
|
CameraComponent &operator=(const CameraComponent &) = delete;
|
|
};
|
|
} |