Horizon Official Technical Documentation
Horizon::Zone::CombatRegistry::CombatOperation Class Referenceabstract

#include <Combat.hpp>

+ Inheritance diagram for Horizon::Zone::CombatRegistry::CombatOperation:
+ Collaboration diagram for Horizon::Zone::CombatRegistry::CombatOperation:

Public Types

enum  combat_operation_type {
  COMBAT_OPERATION_ATTRIBUTE , COMBAT_OPERATION_APPEARANCE , COMBAT_OPERATION_STATUS , COMBAT_OPERATION_SKILL_EXECUTION ,
  COMBAT_OPERATION_MELEE_EXECUTION , COMBAT_OPERATION_SKILL_RESULT , COMBAT_OPERATION_MELEE_RESULT , COMBAT_OPERATION_MAX
}
 

Public Member Functions

 CombatOperation ()=delete
 
 CombatOperation (const CombatOperation &right)=delete
 
 CombatOperation (CombatOperation &&right)=delete
 
 CombatOperation (CombatOperand *operand, int operation_type, int operation_sub_type, CombatOperationValue *value)
 
 CombatOperation (CombatOperand *operand, int operation_type, int operation_sub_type)
 
virtual ~CombatOperation ()
 
virtual CombatOperandget_operand () const
 
int get_operation_type () const
 
int get_operation_sub_type () const
 
virtual CombatOperationValueget_operation_value () const
 
int get_priority ()
 
void set_priority (int priority)
 
virtual void execute () const =0
 
void operator= (const CombatOperation &operation)=delete
 

Protected Attributes

CombatOperand_operand {nullptr}
 
int _operation_type { 0 }
 
int _operation_sub_type { 0 }
 
CombatOperationValue_operation_value {nullptr}
 
int _priority { 0 }
 

Member Enumeration Documentation

◆ combat_operation_type

Enumerator
COMBAT_OPERATION_ATTRIBUTE 
COMBAT_OPERATION_APPEARANCE 
COMBAT_OPERATION_STATUS 
COMBAT_OPERATION_SKILL_EXECUTION 
COMBAT_OPERATION_MELEE_EXECUTION 
COMBAT_OPERATION_SKILL_RESULT 
COMBAT_OPERATION_MELEE_RESULT 
COMBAT_OPERATION_MAX 

Constructor & Destructor Documentation

◆ CombatOperation() [1/5]

Horizon::Zone::CombatRegistry::CombatOperation::CombatOperation ( )
delete

◆ CombatOperation() [2/5]

Horizon::Zone::CombatRegistry::CombatOperation::CombatOperation ( const CombatOperation right)
delete

◆ CombatOperation() [3/5]

Horizon::Zone::CombatRegistry::CombatOperation::CombatOperation ( CombatOperation &&  right)
delete

◆ CombatOperation() [4/5]

Horizon::Zone::CombatRegistry::CombatOperation::CombatOperation ( CombatOperand operand,
int  operation_type,
int  operation_sub_type,
CombatOperationValue value 
)
inlineexplicit
304 : _operand(operand), _operation_type(operation_type), _operation_sub_type(operation_sub_type), _operation_value(value) { }
int _operation_type
Definition: Combat.hpp:331
CombatOperand * _operand
Definition: Combat.hpp:330
CombatOperationValue * _operation_value
Definition: Combat.hpp:333
int _operation_sub_type
Definition: Combat.hpp:332

◆ CombatOperation() [5/5]

Horizon::Zone::CombatRegistry::CombatOperation::CombatOperation ( CombatOperand operand,
int  operation_type,
int  operation_sub_type 
)
inlineexplicit
307 : _operand(operand), _operation_type(operation_type), _operation_sub_type(operation_sub_type) { }

◆ ~CombatOperation()

virtual Horizon::Zone::CombatRegistry::CombatOperation::~CombatOperation ( )
inlinevirtual
310 {
311 if (_operand != nullptr)
312 delete _operand;
313 if (_operation_value != nullptr)
314 delete _operation_value;
315 }

References _operand, and _operation_value.

Member Function Documentation

◆ execute()

◆ get_operand()

virtual CombatOperand * Horizon::Zone::CombatRegistry::CombatOperation::get_operand ( ) const
inlinevirtual
317{ return _operand; }

References _operand.

Referenced by Horizon::Zone::CombatComponent::sync_data_types().

+ Here is the caller graph for this function:

◆ get_operation_sub_type()

int Horizon::Zone::CombatRegistry::CombatOperation::get_operation_sub_type ( ) const
inline
319{ return _operation_sub_type; }

References _operation_sub_type.

Referenced by Horizon::Zone::CombatComponent::sync_data_types().

+ Here is the caller graph for this function:

◆ get_operation_type()

int Horizon::Zone::CombatRegistry::CombatOperation::get_operation_type ( ) const
inline
318{ return _operation_type; }

References _operation_type.

Referenced by Horizon::Zone::CombatComponent::sync_data_types().

+ Here is the caller graph for this function:

◆ get_operation_value()

virtual CombatOperationValue * Horizon::Zone::CombatRegistry::CombatOperation::get_operation_value ( ) const
inlinevirtual
320{ return _operation_value; }

References _operation_value.

Referenced by Horizon::Zone::CombatComponent::sync_data_types().

+ Here is the caller graph for this function:

◆ get_priority()

int Horizon::Zone::CombatRegistry::CombatOperation::get_priority ( )
inline
322{ return _priority; }
int _priority
Definition: Combat.hpp:334

References _priority.

Referenced by Horizon::Zone::CombatRegistry::CompareCombatOperation::operator()().

+ Here is the caller graph for this function:

◆ operator=()

void Horizon::Zone::CombatRegistry::CombatOperation::operator= ( const CombatOperation operation)
delete

◆ set_priority()

void Horizon::Zone::CombatRegistry::CombatOperation::set_priority ( int  priority)
inline
323{ _priority = priority; }

References _priority.

Member Data Documentation

◆ _operand

CombatOperand* Horizon::Zone::CombatRegistry::CombatOperation::_operand {nullptr}
protected

Referenced by get_operand(), and ~CombatOperation().

◆ _operation_sub_type

int Horizon::Zone::CombatRegistry::CombatOperation::_operation_sub_type { 0 }
protected

Referenced by get_operation_sub_type().

◆ _operation_type

int Horizon::Zone::CombatRegistry::CombatOperation::_operation_type { 0 }
protected

Referenced by get_operation_type().

◆ _operation_value

CombatOperationValue* Horizon::Zone::CombatRegistry::CombatOperation::_operation_value {nullptr}
protected

◆ _priority

int Horizon::Zone::CombatRegistry::CombatOperation::_priority { 0 }
protected

Referenced by get_priority(), and set_priority().


The documentation for this class was generated from the following file: