mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-21 22:05:10 +00:00
Merge branch 'develop' into renderer
# Conflicts: # CMakeLists.txt # lib/wal/CMakeLists.txt # sources/Component/Movable/MovableComponent.cpp # sources/Component/Position/PositionComponent.cpp # sources/Component/Position/PositionComponent.hpp # sources/System/Movable/MovableSystem.cpp # sources/System/Movable/MovableSystem.hpp # sources/main.cpp
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
//
|
||||
// Created by Zoe Roux on 5/17/21.
|
||||
//
|
||||
|
||||
#include "MovableComponent.hpp"
|
||||
#include "Entity/Entity.hpp"
|
||||
|
||||
namespace BBM
|
||||
{
|
||||
MovableComponent::MovableComponent(WAL::Entity &entity)
|
||||
: Component(entity)
|
||||
{}
|
||||
|
||||
WAL::Component *MovableComponent::clone(WAL::Entity &entity) const
|
||||
{
|
||||
return new MovableComponent(entity);
|
||||
}
|
||||
|
||||
void MovableComponent::addForce(WAL::Vector3f force)
|
||||
{
|
||||
this->_acceleration += force;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user