Files
meteorbot-old/bot/external/Botcraft/Examples/5_MobHitterExample/include/MobHitterTasks.hpp
T

17 lines
554 B
C++
Raw Normal View History

2024-04-30 22:07:50 -06:00
#pragma once
#include <string>
#include "botcraft/AI/BehaviourClient.hpp"
#include "botcraft/AI/Status.hpp"
/// @brief Hit all nearby monster, respecting the invulnerability cooldown of 0.5s
/// @param c The client performing the action
/// @return Always return Success
Botcraft::Status HitCloseHostiles(Botcraft::BehaviourClient& c);
/// @brief Remove entries in Entities.LastTimeHit if last seen > 10s
/// @param c The client performing the action
/// @return Always return Success
Botcraft::Status CleanLastTimeHit(Botcraft::BehaviourClient& c);