Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
enemy_attack.c File Reference

FIGHTSTG's enemy attacks, which WFIGHTMN starts for the enemy's turns. More...

Include dependency graph for enemy_attack.c:

Go to the source code of this file.

Functions

static void announceEnemyTech (EnemyAttack *task, BattleChild *children, BattleTableEntry *entry)
 Queues the enemy's next turn and says the technique it uses (the weakened enemy's own one, or ends the attack while its weakness lasts), noting whether the player's fighter was asleep.
 
static void damagePlayer (EnemyAttack *task, BattleChild *children)
 Shows the technique's damage and takes it from the player's active fighter's HP (the European version's instant knockout takes it all).
 
static void wakePlayerUp (EnemyAttack *task, BattleChild *children, BattleFighter *fighter)
 Wakes the player's sleeping FIGHTER up and says so, ending its sleep's event.
 
static void showOtherAttackResult (EnemyAttack *task, BattleChild *children)
 The other attack's result: its damage (queueing the player's knockout at 0 HP unless the attack was started without, else charging the enemy's gauge) or its miss message.
 
void FIGHTSTG_updateEnemyAttack (EnemyAttack *task, BattleChild *children)
 An attack on the player's active fighter (FIGHTSTG_startEnemyAttack): state 1 is the enemy's technique, 2 another attack, each with its messages, motion and damage.
 
EnemyAttack * FIGHTSTG_startEnemyAttack (s32 kind, s32 noKnockout)
 Starts an attack on the player's active fighter (FIGHTSTG_updateEnemyAttack): kind 0 for the enemy's technique, 1 for another attack.
 

Detailed Description

FIGHTSTG's enemy attacks, which WFIGHTMN starts for the enemy's turns.

Definition in file enemy_attack.c.

Function Documentation

◆ announceEnemyTech()

static void announceEnemyTech ( EnemyAttack *  task,
BattleChild *  children,
BattleTableEntry *  entry 
)
inlinestatic

Queues the enemy's next turn and says the technique it uses (the weakened enemy's own one, or ends the attack while its weakness lasts), noting whether the player's fighter was asleep.

< the end of the enemy's weakness (BATTLE_KIND_FINAL_LAST)

< can't act or run away; a hit may wake it up

Definition at line 8 of file enemy_attack.c.

Referenced by FIGHTSTG_updateEnemyAttack().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ damagePlayer()

static void damagePlayer ( EnemyAttack *  task,
BattleChild *  children 
)
inlinestatic

Shows the technique's damage and takes it from the player's active fighter's HP (the European version's instant knockout takes it all).

Definition at line 37 of file enemy_attack.c.

Referenced by FIGHTSTG_updateEnemyAttack().

Here is the caller graph for this function:

◆ wakePlayerUp()

static void wakePlayerUp ( EnemyAttack *  task,
BattleChild *  children,
BattleFighter *  fighter 
)
inlinestatic

Wakes the player's sleeping FIGHTER up and says so, ending its sleep's event.

< can't act or run away; a hit may wake it up

< 10-12: the end of FIGHTER_PARALYZED, FIGHTER_CONFUSED or FIGHTER_ASLEEP

Definition at line 69 of file enemy_attack.c.

Referenced by FIGHTSTG_updateEnemyAttack().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showOtherAttackResult()

static void showOtherAttackResult ( EnemyAttack *  task,
BattleChild *  children 
)
inlinestatic

The other attack's result: its damage (queueing the player's knockout at 0 HP unless the attack was started without, else charging the enemy's gauge) or its miss message.

Definition at line 87 of file enemy_attack.c.

Referenced by FIGHTSTG_updateEnemyAttack().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_updateEnemyAttack()

void FIGHTSTG_updateEnemyAttack ( EnemyAttack *  task,
BattleChild *  children 
)

An attack on the player's active fighter (FIGHTSTG_startEnemyAttack): state 1 is the enemy's technique, 2 another attack, each with its messages, motion and damage.

The match depends on each case advancing substate itself and on a fighter variable of its own in each case.

< can't act or run away; a hit may wake it up

Definition at line 115 of file enemy_attack.c.

Referenced by FIGHTSTG_startEnemyAttack().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_startEnemyAttack()

EnemyAttack * FIGHTSTG_startEnemyAttack ( s32  kind,
s32  noKnockout 
)

Starts an attack on the player's active fighter (FIGHTSTG_updateEnemyAttack): kind 0 for the enemy's technique, 1 for another attack.

Definition at line 234 of file enemy_attack.c.

Referenced by FIGHTSTG_updateFirstTech(), FIGHTSTG_updateItem(), FIGHTSTG_updateTechAction(), and WFIGHTMN_runTurn().

Here is the call graph for this function:
Here is the caller graph for this function: