2020-08-14 15:24:12 +00:00
|
|
|
#include "../../src/Battling/History/HistoryElements/AttackUseHistory.hpp"
|
|
|
|
#include "../../src/Battling/History/HistoryHolder.hpp"
|
|
|
|
#include "../Core.hpp"
|
|
|
|
using namespace CreatureLib::Battling;
|
|
|
|
|
2022-04-02 10:33:26 +00:00
|
|
|
export_func const HistoryElement* CreatureLib_HistoryHandler_GetTopElement(const HistoryHolder* p) {
|
2021-10-23 14:57:58 +00:00
|
|
|
return p->GetTopElement().GetValue();
|
2020-08-14 15:24:12 +00:00
|
|
|
}
|
2022-04-02 10:33:26 +00:00
|
|
|
export_func const HistoryElement* CreatureLib_HistoryHandler_GetLastUsedAttack(const HistoryHolder* p) {
|
2021-10-23 14:57:58 +00:00
|
|
|
return p->GetLastUsedAttack().GetValue();
|
2020-08-14 15:24:12 +00:00
|
|
|
}
|
|
|
|
|
2022-04-02 10:33:26 +00:00
|
|
|
export_func const HistoryElement* CreatureLib_HistoryHandler_GetLastDamageOnTarget(const HistoryHolder* p,
|
|
|
|
const Creature* c) {
|
2021-10-23 15:08:54 +00:00
|
|
|
return p->GetLastDamageOnTarget(c).GetValue();
|
|
|
|
}
|
|
|
|
|
2022-04-02 10:33:26 +00:00
|
|
|
export_func HistoryElementKind CreatureLib_HistoryElement_GetKind(const HistoryElement* p) { return p->GetKind(); }
|
|
|
|
export_func const HistoryElement* CreatureLib_HistoryElement_GetPrevious(const HistoryElement* p) {
|
2021-10-23 14:57:58 +00:00
|
|
|
return p->GetPrevious().GetValue();
|
2020-08-14 15:24:12 +00:00
|
|
|
}
|
|
|
|
|
2022-04-02 10:33:26 +00:00
|
|
|
export_func const ExecutingAttack* CreatureLib_AttackUseHistory_GetAttack(const AttackUseHistory* p) {
|
2020-08-14 15:24:12 +00:00
|
|
|
return p->GetAttack().GetRaw();
|
|
|
|
}
|