mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-21 05:45:10 +00:00
21 lines
505 B
C++
21 lines
505 B
C++
//
|
|
// Created by Zoe Roux on 5/24/21.
|
|
//
|
|
|
|
#include "Component/Movable/MovableComponent.hpp"
|
|
#include "Component/GridCentered/GridCenteredComponent.hpp"
|
|
#include "GridCenteredSystem.hpp"
|
|
|
|
namespace BBM
|
|
{
|
|
GridCenteredSystem::GridCenteredSystem(WAL::Wal &wal)
|
|
: System(wal)
|
|
{}
|
|
|
|
void GridCenteredSystem::onFixedUpdate(WAL::Entity &entity)
|
|
{
|
|
auto &grid = entity.getComponent<GridCenteredComponent>();
|
|
auto &movement = entity.getComponent<MovableComponent>();
|
|
// movement.addForce(grid.force * )
|
|
}
|
|
} |