#include "irrlichttypes.h"
#include "itemgroup.h"
#include "util/enum_string.h"
#include <SColor.h>
#include <string>
#include <iostream>
#include <vector>
#include <map>
#include <optional>
Go to the source code of this file.
|
| DigParams | getDigParams (const ItemGroupList &groups, const ToolCapabilities *tp, const u16 initial_wear=0) |
| HitParams | getHitParams (const ItemGroupList &armor_groups, const ToolCapabilities &tp, float time_from_last_punch, u16 initial_wear=0) |
| HitParams | getHitParams (const ItemGroupList &armor_groups, const ToolCapabilities &tp) |
| PunchDamageResult | getPunchDamage (const ItemGroupList &armor_groups, const ToolCapabilities &toolcap, const ItemStack *punchitem, float time_from_last_punch, u16 initial_wear=0) |
| u32 | calculateResultWear (const u32 uses, const u16 initial_wear) |
| f32 | getToolRange (const ItemStack &wielded_item, const ItemStack &hand_item, const IItemDefManager *itemdef_manager) |
◆ DamageGroup
◆ ToolGCMap
◆ calculateResultWear()
| u32 calculateResultWear |
( |
const u32 | uses, |
|
|
const u16 | initial_wear ) |
◆ getDigParams()
References DigParams::DigParams(), calculateResultWear(), getDigParams(), ToolGroupCap::getTime(), ToolCapabilities::groupcaps, ToolGroupCap::maxlevel, U16_MAX, and ToolGroupCap::uses.
Referenced by getDigParams(), Server::handleCommand_Interact(), Game::handleDigging(), and ModApiUtil::l_get_dig_params().
◆ getHitParams() [1/2]
◆ getHitParams() [2/2]
References calculateResultWear(), ToolCapabilities::damageGroups, ToolCapabilities::full_punch_interval, getHitParams(), ToolCapabilities::punch_attack_uses, rangelim(), and U16_MAX.
Referenced by getHitParams(), getHitParams(), getPunchDamage(), ModApiUtil::l_get_hit_params(), and PlayerSAO::punch().
◆ getPunchDamage()
References PunchDamageResult::damage, PunchDamageResult::did_punch, getHitParams(), getPunchDamage(), HitParams::hp, ItemStack::name, HitParams::wear, ItemStack::wear, and PunchDamageResult::wear.
Referenced by GenericCAO::directReportPunch(), getPunchDamage(), and LuaEntitySAO::punch().
◆ getToolRange()