From 44a797db717a30f7314d490d1642c8ae3784bb92 Mon Sep 17 00:00:00 2001 From: NotAdam Date: Sat, 9 Feb 2019 23:16:35 +1100 Subject: [PATCH] cleanup cost subtraction code, won't be done inside action object --- src/world/Action/Action.cpp | 22 ---------------------- src/world/Action/Action.h | 1 - 2 files changed, 23 deletions(-) diff --git a/src/world/Action/Action.cpp b/src/world/Action/Action.cpp index e8e22681..85a7d6ca 100644 --- a/src/world/Action/Action.cpp +++ b/src/world/Action/Action.cpp @@ -47,28 +47,6 @@ uint32_t Sapphire::Action::Action::getId() const return m_id; } -void Sapphire::Action::Action::subtractCostFromCaster() -{ - if( !m_pSource->isPlayer() ) - return; - - auto player = m_pSource->getAsPlayer(); - - switch( m_costType ) - { - case Common::ActionCostType::MagicPoints: - { - - break; - } - case Common::ActionCostType::TacticsPoints: - { - - break; - } - } -} - void Sapphire::Action::Action::setPos( Sapphire::Common::FFXIVARR_POSITION3 pos ) { m_pos = pos; diff --git a/src/world/Action/Action.h b/src/world/Action/Action.h index 389c6c6b..9fe5eaad 100644 --- a/src/world/Action/Action.h +++ b/src/world/Action/Action.h @@ -86,7 +86,6 @@ namespace Sapphire::Action void calculateActionCost(); void calculateMPCost( uint8_t costArrayIndex ); - void subtractCostFromCaster(); /*! * @brief Some actions are capable of both healing and dealing damage. This identifies them.