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

WFIGHTMN's second object's data: the screen, the technique tables of the last enemy and the event states. More...

Include dependency graph for wfightmn_2.c:

Go to the source code of this file.

Variables

RECT WFIGHTMN_screen = {0, 0, 320 , 240 }
 The screen its layers cover.
 
EffectLook WFIGHTMN_effectVisuals []
 A technique's look (its scriptEffect and scriptSound) by its effect, for WFIGHTMN_bringLastEnemy; the list ends at the first -1, so the USA version's three entries after it are never read.
 
ElementLook WFIGHTMN_elementVisuals []
 A technique's look (its scriptEffect, scriptSound and scriptStage) by its element, for WFIGHTMN_bringLastEnemy when WFIGHTMN_effectVisuals gives none.
 
void(* WFIGHTMN_states [])(BattleMenu *task, BattleMenuChildren *children)
 The battle menu's states, by its substate.
 
ScriptLook WFIGHTMN_actionEffects []
 WFIGHTMN_startTech's effects (BattleScript.effect and sound) by the first of FIGHTSTG_action.effects[2..12] that is set: the kinds of WFIGHTMN_effectVisuals.
 

Detailed Description

WFIGHTMN's second object's data: the screen, the technique tables of the last enemy and the event states.

Definition in file wfightmn_2.c.

Variable Documentation

◆ WFIGHTMN_screen

RECT WFIGHTMN_screen = {0, 0, 320 , 240 }

The screen its layers cover.

Definition at line 6 of file wfightmn_2.c.

Referenced by WFIGHTMN_createLayers().

◆ WFIGHTMN_effectVisuals

EffectLook WFIGHTMN_effectVisuals[]
Initial value:
= {
{ 2 , 19, 26 },
{ 3 , 20, 26 },
{ 4 , 21, 27 },
{ 5 , 22, 50 },
{ 6 , 26, 50 },
{ 8 , 28, 39 },
{ -1, 37, 49 },
}

A technique's look (its scriptEffect and scriptSound) by its effect, for WFIGHTMN_bringLastEnemy; the list ends at the first -1, so the USA version's three entries after it are never read.

Definition at line 24 of file wfightmn_2.c.

Referenced by WFIGHTMN_bringLastEnemy().

◆ WFIGHTMN_elementVisuals

ElementLook WFIGHTMN_elementVisuals[]
Initial value:
= {
{ 2, 5, 64, 34 },
{ 3, 9, 45, 37 },
{ 4, 11, 44, 40 },
{ 5, 14, 29, 43 },
{ 6, 16, 44, 46 },
{ 7, 65, 64, 49 },
{ 8, 7, 64, 52 },
{ -1, 0, 0, 0 },
}

A technique's look (its scriptEffect, scriptSound and scriptStage) by its element, for WFIGHTMN_bringLastEnemy when WFIGHTMN_effectVisuals gives none.

Definition at line 37 of file wfightmn_2.c.

Referenced by WFIGHTMN_bringLastEnemy().

◆ WFIGHTMN_states

void(* WFIGHTMN_states[])(BattleMenu *task, BattleMenuChildren *children) ( BattleMenu *  task,
BattleMenuChildren *  children 
)
Initial value:
= {
((void *)0) , ((void *)0) , ((void *)0) , WFIGHTMN_runCommand,
}
void WFIGHTMN_endSpecial(BattleMenu *task, BattleMenuChildren *children)
The end of the partner's special state (EVENT_SPECIAL_END): clears it and shows message 0x59.
Definition menu.c:1150
void WFIGHTMN_blast(BattleMenu *task, BattleMenuChildren *children)
Digivolves the current partner for the battle, to the Digimon its level reaches (DigimonData....
Definition menu.c:865
void WFIGHTMN_clearField(BattleMenu *task, BattleMenuChildren *children)
EVENT_CLEAR_FIELD: shows message 0x6A and ends the element boost (FIGHTSTG_battle....
Definition menu.c:681
void WFIGHTMN_recover(BattleMenu *task, BattleMenuChildren *children)
A fighter's recovery (EVENT_RECOVERY): unless its HP is full, plays technique 0xBD on it when it is t...
Definition menu.c:637
void WFIGHTMN_runCommand(BattleMenu *task, BattleMenuChildren *children)
The player's turn (EVENT_PLAYER_TURN): drops the partner's queued technique and running away,...
Definition menu.c:233
void WFIGHTMN_tag(BattleMenu *task, BattleMenuChildren *children)
Swaps the partner on the field for the one picked (children->commands): message 0x38,...
Definition menu.c:350
void WFIGHTMN_runAway(BattleMenu *task, BattleMenuChildren *children)
Asks FIGHTSTG (FIGHTSTG_battleFuncs.testRunAway) whether the current action's actor gets away; if so ...
Definition menu.c:569
void WFIGHTMN_bringLastEnemy(BattleMenu *task, BattleMenuChildren *children)
The enemy's third fighter comes in (BATTLE_KIND_FINAL_LAST), takes the first's place,...
Definition menu.c:1230
void WFIGHTMN_restoreEnemy(BattleMenu *task, BattleMenuChildren *children)
The end of the enemy's weakness (EVENT_WEAKNESS_END): its lowered stats come back and it takes its tu...
Definition menu.c:1315
void WFIGHTMN_digivolve(BattleMenu *task, BattleMenuChildren *children)
The state that changes the current partner's Digimon to the one picked (commands->digimon),...
Definition menu.c:320
void WFIGHTMN_pairTech(BattleMenu *task, BattleMenuChildren *children)
State 6, the pair technique (the player turn's action 6): the outgoing and incoming partners do comma...
Definition menu.c:428
void WFIGHTMN_digidevolve(BattleMenu *task, BattleMenuChildren *children)
EVENT_DIGIDEVOLVE: the partner goes back to its own form, its blast and its queued technique are drop...
Definition menu.c:1166
void WFIGHTMN_endBlast(BattleMenu *task, BattleMenuChildren *children)
Turns the current partner back into the Digimon it was (prevId)
Definition menu.c:933
void WFIGHTMN_endRestriction(BattleMenu *task, BattleMenuChildren *children)
Clears the restriction that the current action ends (FIGHTER_NO_SWITCH or FIGHTER_NO_DIGIVOLVE) from ...
Definition menu.c:839
void WFIGHTMN_knockOut(BattleMenu *task, BattleMenuChildren *children)
EVENT_KNOCK_OUT (substate 0x15), a fighter's fall: case 0 takes its event off the queue,...
Definition menu.c:1064
void WFIGHTMN_runConfusedCommand(BattleMenu *task, BattleMenuChildren *children)
A confused partner's turn (FIGHTER_CONFUSED): the player's turn at step 3, where only an attack does ...
Definition menu.c:816
void WFIGHTMN_endBattle(BattleMenu *task, BattleMenuChildren *children)
After a won battle, picks the enemy whose item the player may get; saves the partners' HP and MP,...
Definition menu.c:456
void WFIGHTMN_endAutoRecover(BattleMenu *task, BattleMenuChildren *children)
Removes the current action's EVENT_RECOVERY event, unless the partner it is for has WFIGHTMN_RECOVERY...
Definition menu.c:606
void WFIGHTMN_endBoost(BattleMenu *task, BattleMenuChildren *children)
Clears the boost (BattleFighter.boosts) that the current action ends.
Definition menu.c:790
void WFIGHTMN_takeDamage(BattleMenu *task, BattleMenuChildren *children)
Carries out the current action's damage (FIGHTSTG_battleFuncs.getDamage) on its unit.
Definition menu.c:692
void WFIGHTMN_cureStatus(BattleMenu *task, BattleMenuChildren *children)
States 13-15: end the current action's unit's paralysis, confusion or sleep.
Definition menu.c:754
void WFIGHTMN_showWon(BattleMenu *task, BattleMenuChildren *children)
Shows the won message (from WFIGHTMN_knockOut) for its time, then closes it.
Definition menu.c:1204

The battle menu's states, by its substate.

Definition at line 47 of file wfightmn_2.c.

Referenced by WFIGHTMN_runTurn().

◆ WFIGHTMN_actionEffects

ScriptLook WFIGHTMN_actionEffects[]
Initial value:
= {
{19, 26}, {20, 26}, {21, 27}, {22, 50}, {26, 50}, {0, 0},
{28, 39}, {0, 0}, {46, 30}, {0, 59}, {31, 58},
}

WFIGHTMN_startTech's effects (BattleScript.effect and sound) by the first of FIGHTSTG_action.effects[2..12] that is set: the kinds of WFIGHTMN_effectVisuals.

WFIGHTMN_startTech's effects.

Definition at line 58 of file wfightmn_2.c.

Referenced by choosePartnerScript().