Moving components and systems out of the ecs

This commit is contained in:
Zoe Roux
2021-05-24 15:23:20 +02:00
103 changed files with 7248 additions and 64 deletions

View File

@@ -0,0 +1,22 @@
//
// Created by Zoe Roux on 5/17/21.
//
#include "MovableComponent.hpp"
namespace Bomberman
{
MovableComponent::MovableComponent(WAL::Entity &entity)
: Component(entity)
{}
WAL::Component *MovableComponent::clone(WAL::Entity &entity) const
{
return new MovableComponent(entity);
}
void MovableComponent::addForce(Vector3f force)
{
this->_acceleration += force;
}
}