aboutsummaryrefslogtreecommitdiff
path: root/src/crcombat.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/crcombat.cc')
-rw-r--r--src/crcombat.cc31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/crcombat.cc b/src/crcombat.cc
new file mode 100644
index 0000000..6b0df86
--- /dev/null
+++ b/src/crcombat.cc
@@ -0,0 +1,31 @@
+#include "creature.hh"
+
+TCombat::TCombat(void){
+ this->Master = NULL;
+ this->EarliestAttackTime = 0;
+ this->EarliestDefendTime = 0;
+ this->LastDefendTime = 0;
+ this->LatestAttackTime = 0;
+ this->AttackMode = 2;
+ this->ChaseMode = 0;
+ this->SecureMode = 1;
+ this->AttackDest = 0;
+ this->Following;
+ this->Shield = NONE;
+ this->Close = NONE;
+ this->Missile = NONE;
+ this->Throw = NONE;
+ this->Wand = NONE;
+ this->Ammo = NONE;
+ this->Fist = false;
+ this->CombatDamage = 0;
+ this->ActCombatEntry = 0;
+ for(int i = 0; i < NARRAY(this->CombatList); i += 1){
+ this->CombatList[i].ID = 0;
+ this->CombatList[i].Damage = 0;
+ this->CombatList[i].TimeStamp = 0;
+ }
+ this->LearningPoints = 0;
+}
+
+// TODO(fusion): Probably better to figure out how Object work.