mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 21:33:37 +00:00
30 lines
752 B
C++
30 lines
752 B
C++
#pragma once
|
|
#include "CombatTracker.h"
|
|
|
|
class DamageSource;
|
|
|
|
class CombatEntry {
|
|
private:
|
|
DamageSource* source;
|
|
int time;
|
|
float damage;
|
|
float health;
|
|
CombatTracker::eLOCATION
|
|
location; // 4J: Location is now an enum, not a std::string
|
|
float fallDistance;
|
|
|
|
public:
|
|
CombatEntry(DamageSource* source, int time, float health, float damage,
|
|
CombatTracker::eLOCATION nextLocation, float fallDistance);
|
|
~CombatEntry();
|
|
|
|
DamageSource* getSource();
|
|
int getTime();
|
|
float getDamage();
|
|
float getHealthBeforeDamage();
|
|
float getHealthAfterDamage();
|
|
bool isCombatRelated();
|
|
CombatTracker::eLOCATION getLocation();
|
|
std::wstring getAttackerName();
|
|
float getFallDistance();
|
|
}; |