aboutsummaryrefslogtreecommitdiff
path: root/src/crcombat.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-05-30 20:12:36 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-05-30 20:12:36 -0300
commit08780dad536eb5d0544eb2ea70e5443dc237976f (patch)
tree673a57b538ca9016d5b386ff32c3bd67c2190c2f /src/crcombat.hh
parentdff5e62f6ebb1b06c234b9144458788893b6ca86 (diff)
downloadgame-08780dad536eb5d0544eb2ea70e5443dc237976f.tar.gz
game-08780dad536eb5d0544eb2ea70e5443dc237976f.zip
more work on `crcombat.cc`
Diffstat (limited to 'src/crcombat.hh')
-rw-r--r--src/crcombat.hh17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/crcombat.hh b/src/crcombat.hh
index f015252..bd22584 100644
--- a/src/crcombat.hh
+++ b/src/crcombat.hh
@@ -16,12 +16,17 @@ struct TCombat{
void GetWeapon(void);
void GetAmmo(void);
void CheckCombatValues(void);
- int GetDistance(void); // TODO
+ int GetDistance(void);
+ void GetAttackValue(int *Attack, uint16 *SkillNr);
+ int GetDefendDamage(void);
+ void SetAttackDest(uint32 TargetID, bool Follow);
+ void CanToDoAttack(void);
void Attack(void);
void StopAttack(int Delay);
void DelayAttack(int Milliseconds);
- void CloseAttack(TCreature *Target); // TODO
- void RangeAttack(TCreature *Target); // TODO
+ void CloseAttack(TCreature *Target);
+ void DistanceAttack(TCreature *Target);
+ void WandAttack(TCreature *Target);
// DATA
// =========================================================================
@@ -30,9 +35,9 @@ struct TCombat{
uint32 EarliestDefendTime;
uint32 LastDefendTime;
uint32 LatestAttackTime;
- uint32 AttackMode;
- uint32 ChaseMode;
- uint32 SecureMode;
+ uint8 AttackMode;
+ uint8 ChaseMode;
+ uint8 SecureMode;
uint32 AttackDest;
bool Following;
Object Shield;