diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2017-07-23 10:47:10 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2017-07-23 10:47:10 -0400 |
commit | 9e540db7d6492168cadcafddbf145ffdd7b21981 (patch) | |
tree | 8019a7a67e66a5ec87ad7872278e8ee92431251a /src/systems/movement.cpp | |
parent | 215e5ee6ce089c3e0d5be28fd816bc7031b6acab (diff) |
source cleanup; beginning of custom attacks
Diffstat (limited to 'src/systems/movement.cpp')
-rw-r--r-- | src/systems/movement.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/systems/movement.cpp b/src/systems/movement.cpp index 00baa40..7ff9966 100644 --- a/src/systems/movement.cpp +++ b/src/systems/movement.cpp @@ -46,9 +46,8 @@ void MovementSystem::update(entityx::EntityManager &en, entityx::EventManager &e auto ppos = PlayerSystem::getPosition(); if (ppos.x > position.x && ppos.x < position.x + entity.component<Solid>()->width) { if (entity.has_component<Aggro>()) { - auto dim = entity.component<Solid>(); - ev.emit<AttackEvent>(vec2(position.x + dim->width, position.y + dim->height), - AttackType::ShortSlash, false); + //auto dim = entity.component<Solid>(); + //ev.emit<AttackEvent>(vec2(position.x + dim->width, position.y + dim->height), ATTACKKKKKK, false); /*auto& h = entity.component<Health>()->health; if (h > 0) { fight = true; |