Métodos públicos | |
| Weapon (item_info_t item_info, weapon_info_t weapon_info, SpecialAbility *special, uint32_t stack=0) | |
| Weapon (const Weapon &other, SpecialAbility *special) | |
| int | deal_damage () |
| Devuelve un valor en el rango de daño del arma. Más... | |
| std::vector< map_log_t > | use_ability (Player *thrower, Entity *target, position_t source, position_t dest) |
| Usar la habiliadad especial del arma. Más... | |
| float | get_attack_speed () |
| Devuelve el valor de la velocidad de ataque del arma. Más... | |
| nlohmann::json | get_data () const override |
Métodos públicos heredados desde Item | |
| Item (item_info_t item_info, uint32_t stack=0) | |
| virtual nlohmann::json | get_persist_data () const |
| void | set_stack (uint32_t stack) |
| uint32_t | get_stack () const |
| ItemId | get_id () const |
| uint32_t | get_sprite_id () const |
| item_type_t | get_type () const |
| long int | stack_difference (uint32_t other_stack) |
| void | increase_stack (uint32_t stack) |
| void | decrease_stack (uint32_t stack) |
| uint32_t | get_gold_value () const |
| int Weapon::deal_damage | ( | ) |
Devuelve un valor en el rango de daño del arma.
El cálculo de daño para un arma es un valor aleatorio entre el mínimo y máximo daño posible por la misma.
| float Weapon::get_attack_speed | ( | ) |
Devuelve el valor de la velocidad de ataque del arma.
| std::vector< map_log_t > Weapon::use_ability | ( | Player * | thrower, |
| Entity * | target, | ||
| position_t | source, | ||
| position_t | dest | ||
| ) |