aboutsummaryrefslogtreecommitdiff
path: root/src/crcombat.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/crcombat.hh')
-rw-r--r--src/crcombat.hh43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/crcombat.hh b/src/crcombat.hh
new file mode 100644
index 0000000..ce75002
--- /dev/null
+++ b/src/crcombat.hh
@@ -0,0 +1,43 @@
+#ifndef TIBIA_CRCOMBAT_HH_
+#define TIBIA_CRCOMBAT_HH_ 1
+
+struct TCreature;
+
+struct TCombatEntry{
+ uint32 ID;
+ uint32 Damage;
+ int TimeStamp;
+};
+
+struct TCombat{
+ // REGULAR FUNCTIONS
+ // =========================================================================
+ TCombat(void);
+ void CheckCombatValues(void);
+
+ // DATA
+ // =========================================================================
+ TCreature *Master;
+ uint32 EarliestAttackTime;
+ uint32 EarliestDefendTime;
+ uint32 LastDefendTime;
+ uint32 LatestAttackTime;
+ uint32 AttackMode;
+ uint32 ChaseMode;
+ uint32 SecureMode;
+ uint32 AttackDest;
+ bool Following;
+ Object Shield;
+ Object Close;
+ Object Missile;
+ Object Throw;
+ Object Wand;
+ Object Ammo;
+ bool Fist;
+ uint32 CombatDamage;
+ int ActCombatEntry;
+ TCombatEntry CombatList[20];
+ int LearningPoints;
+};
+
+#endif //TIBIA_CRCOMBAT_HH_