mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 21:35:12 +00:00
31 lines
690 B
C++
31 lines
690 B
C++
//
|
|
// Created by Tom Augier on 2021-05-20.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "Component/Component.hpp"
|
|
#include "Entity/Entity.hpp"
|
|
|
|
namespace BBM
|
|
{
|
|
class GravityComponent : public WAL::Component
|
|
{
|
|
public:
|
|
|
|
//! @inherit
|
|
WAL::Component *clone(WAL::Entity &entity) const override;
|
|
|
|
//! @brief Constructor
|
|
GravityComponent(WAL::Entity &entity);
|
|
|
|
//! @brief A Gravity component can't be instantiated, it should be derived.
|
|
GravityComponent(const GravityComponent &) = default;
|
|
|
|
//! @brief default destructor
|
|
~GravityComponent() override = default;
|
|
|
|
//! @brief A Gravity component can't be assigned
|
|
GravityComponent &operator=(const GravityComponent &) = delete;
|
|
};
|
|
} |