diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-05-31 02:25:31 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-05-31 02:25:31 -0300 |
| commit | d7c11b271633ee1f5b58d2b679b50cf95b2826e0 (patch) | |
| tree | c08832dff011660dcc2af748b82d5ab0adf82d97 /src/crcombat.hh | |
| parent | 08780dad536eb5d0544eb2ea70e5443dc237976f (diff) | |
| download | game-d7c11b271633ee1f5b58d2b679b50cf95b2826e0.tar.gz game-d7c11b271633ee1f5b58d2b679b50cf95b2826e0.zip | |
done with `crcombat.cc`
Diffstat (limited to 'src/crcombat.hh')
| -rw-r--r-- | src/crcombat.hh | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/crcombat.hh b/src/crcombat.hh index bd22584..b5db3c3 100644 --- a/src/crcombat.hh +++ b/src/crcombat.hh @@ -6,7 +6,7 @@ struct TCreature; struct TCombatEntry{ uint32 ID; uint32 Damage; - int TimeStamp; + uint32 TimeStamp; }; struct TCombat{ @@ -16,17 +16,29 @@ struct TCombat{ void GetWeapon(void); void GetAmmo(void); void CheckCombatValues(void); - int GetDistance(void); - void GetAttackValue(int *Attack, uint16 *SkillNr); + void GetAttackValue(int *Value, int *SkillNr); + void GetDefendValue(int *Value, int *SkillNr); + int GetAttackDamage(void); int GetDefendDamage(void); + int GetArmorStrength(void); + int GetDistance(void); + void ActivateLearning(void); + void SetAttackMode(uint8 AttackMode); + void SetChaseMode(uint8 ChaseMode); + void SetSecureMode(uint8 SecureMode); void SetAttackDest(uint32 TargetID, bool Follow); void CanToDoAttack(void); - void Attack(void); void StopAttack(int Delay); void DelayAttack(int Milliseconds); + void Attack(void); void CloseAttack(TCreature *Target); void DistanceAttack(TCreature *Target); void WandAttack(TCreature *Target); + void AddDamageToCombatList(uint32 Attacker, uint32 Damage); + uint32 GetDamageByCreature(uint32 CreatureID); + uint32 GetMostDangerousAttacker(void); + void DistributeExperiencePoints(uint32 Exp); + // DATA // ========================================================================= |
