Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
BattleStatus Struct Reference

Detailed Description

Definition at line 856 of file common_structs.h.

#include "common_structs.h"

Data Fields

s32 flags1
 
s32 flags2
 
union { 
 
s32 varTable [16]
 
f32 varTableF [16]
 
void * varTablePtr [16]
 
};  
 
s8 curSubmenu
 
s8 unk_49
 
s8 curPartnerSubmenu
 
s8 unk_4B
 
s8 lastPlayerMenuSelection [16]
 
s8 lastPartnerMenuSelection [16]
 
s16 cancelTargetMenuSubstate
 
s16 acceptTargetMenuSubstate
 
s16 enabledMenusFlags
 
char unk_72 [2]
 
s32 enabledStarPowersFlags
 
s8 totalStarPoints
 
s8 pendingStarPoints
 
s8 incrementStarPointDelay
 
u8 damageTaken
 
s8 changePartnerAllowed
 
s8 menuStatus [4]
 -1 = automatically pick the first move, 0 = disabled, 1 = enabled
 
s8 actionSuccess
 
char unk_82
 
s8 actionCommandMode
 
s8 actionQuality
 
s8 unk_85
 
s8 actionResult
 
s8 blockResult
 
s8 itemUsesLeft
 
s8 hpDrainCount
 
s8 nextMerleeSpellType
 
s8 hustleTurns
 
s8 stateFreezeCount
 
s8 endBattleFadeOutRate
 
s8 initialEnemyCount
 
char unk_8F [1]
 
s16 unk_90
 
s8 reflectFlags
 
s8 unk_93
 
s8 unk_94
 
s8 waitForState
 
s8 hammerCharge
 
s8 jumpCharge
 
char unk_98
 
u8 rushFlags
 
s8 outtaSightActive
 
s8 turboChargeTurnsLeft
 
u8 turboChargeAmount
 
s8 waterBlockTurnsLeft
 
u8 waterBlockAmount
 
char unk_9F
 
struct EffectInstancewaterBlockEffect
 
s8 cloudNineTurnsLeft
 
s8 cloudNineDodgeChance
 
char unk_A6 [2]
 
struct EffectInstancecloudNineEffect
 
s8 merleeAttackBoost
 
s8 merleeDefenseBoost
 
s8 hammerLossTurns
 
s8 jumpLossTurns
 
s8 itemLossTurns
 
char unk_B1 [3]
 
void(* preUpdateCallback )(void)
 
void(* initBattleCallback )(void)
 
struct EvtcontrolScript
 
s32 controlScriptID
 
struct EvtcamMovementScript
 
s32 camMovementScriptID
 
Vec3f camLookatObjPos
 
struct ActorplayerActor
 
struct ActorpartnerActor
 
struct ActorenemyActors [24]
 
s16 enemyIDs [24]
 
s8 nextEnemyIndex
 
s8 numEnemyActors
 
s16 activeEnemyActorID
 
struct ActorcurTurnEnemy
 
s8 moveCategory
 0 = jump, 1 = hammer, 5 = partner, ...
 
char unk_179
 
s16 moveArgument
 
s16 selectedMoveID
 
s16 curAttackDamage
 
s16 lastAttackDamage
 
char unk_182 [2]
 
s32 curTargetListFlags
 
s32 curAttackElement
 
s32 curAttackEventSuppression
 
s32 curAttackStatus
 
u8 statusChance
 
s8 statusDuration
 
char unk_196
 
s8 sampleTargetHomeIndex
 
s8 powerBounceCounter
 
s8 wasStatusInflicted
 
u8 curDamageSource
 
char unk_19B [5]
 
s16 curTargetID
 
s8 curTargetPart
 
char unk_1A3
 
s16 curTargetID2
 
s8 curTargetPart2
 
s8 battlePhase
 
s16 attackerActorID
 
s16 unk_1AA
 
s8 unk_1AC
 
char unk_1AD
 
s16 submenuIcons [24]
 
u8 submenuMoves [24]
 
s8 submenuStatus [24]
 
u8 submenuMoveCount
 
char unk_20F
 
s32 curButtonsDown
 
s32 curButtonsPressed
 
s32 curButtonsHeld
 
s32 stickX
 
s32 stickY
 
s32 inputBitmask
 
s32 stickAngle
 
s32 stickMagnitude
 
s32 holdInputBuffer [64]
 
s32 pushInputBuffer [64]
 
s8 holdInputBufferPos
 
s8 inputBufferPos
 
s8 darknessMode
 
u8 unk_433
 
s32 * actionCmdDifficultyTable
 
struct StagecurStage
 
struct EffectInstancebuffEffect
 
u8 tattleFlags [28]
 
char unk_45C [4]
 

Field Documentation

◆ flags1

s32 BattleStatus::flags1

Definition at line 857 of file common_structs.h.

Referenced by action_command_free(), action_command_init_status(), action_command_update(), adjust_action_command_difficulty(), appendGfx_npc_actor(), appendGfx_player_actor(), btl_draw_enemy_health_bars(), btl_main_menu_draw(), btl_render_actors(), btl_state_draw_end_battle(), btl_state_draw_select_target(), btl_state_update_9(), btl_state_update_begin_partner_turn(), btl_state_update_begin_player_turn(), btl_state_update_begin_turn(), btl_state_update_change_partner(), btl_state_update_defeat(), btl_state_update_end_battle(), btl_state_update_end_demo_battle(), btl_state_update_end_partner_turn(), btl_state_update_end_player_turn(), btl_state_update_end_turn(), btl_state_update_enemy_move(), btl_state_update_enemy_striking_first(), btl_state_update_first_strike(), btl_state_update_next_enemy(), btl_state_update_normal_start(), btl_state_update_partner_menu(), btl_state_update_partner_move(), btl_state_update_partner_striking_first(), btl_state_update_peach_menu(), btl_state_update_player_menu(), btl_state_update_player_move(), btl_state_update_prepare_menu(), btl_state_update_run_away(), btl_state_update_select_target(), btl_state_update_switch_to_partner(), btl_state_update_switch_to_player(), btl_state_update_twink_menu(), btl_state_update_victory(), btl_update(), btl_update_message_popup(), btl_update_starpoints_display(), calc_enemy_damage_target(), calc_item_damage_enemy(), calc_partner_damage_enemy(), calc_player_damage_enemy(), check_block_input(), count_power_plus(), dispatch_damage_event_actor(), dispatch_damage_event_partner(), dispatch_damage_event_player(), initialize_battle(), load_partner_actor(), remove_player_buffs(), show_immune_bonk(), update(), and update_nonplayer_actor_shadows().

◆ flags2

s32 BattleStatus::flags2

Definition at line 858 of file common_structs.h.

Referenced by appendGfx_npc_actor(), appendGfx_player_actor(), btl_init_menu_boots(), btl_init_menu_hammer(), btl_init_menu_partner(), btl_main_menu_draw(), btl_menu_show_switch_to_peach(), btl_menu_show_switch_to_twink(), btl_merlee_on_first_strike(), btl_merlee_on_start_turn(), btl_restore_world_cameras(), btl_set_player_idle_anims(), btl_set_state(), btl_state_draw_select_target(), btl_state_update_9(), btl_state_update_begin_partner_turn(), btl_state_update_begin_player_turn(), btl_state_update_begin_turn(), btl_state_update_celebration(), btl_state_update_change_partner(), btl_state_update_defeat(), btl_state_update_end_battle(), btl_state_update_end_demo_battle(), btl_state_update_end_partner_turn(), btl_state_update_end_player_turn(), btl_state_update_end_training_battle(), btl_state_update_end_turn(), btl_state_update_enemy_move(), btl_state_update_enemy_striking_first(), btl_state_update_first_strike(), btl_state_update_next_enemy(), btl_state_update_normal_start(), btl_state_update_partner_move(), btl_state_update_partner_striking_first(), btl_state_update_player_menu(), btl_state_update_player_move(), btl_state_update_run_away(), btl_state_update_select_target(), btl_state_update_victory(), btl_update_starpoints_display(), calc_enemy_damage_target(), calc_player_damage_enemy(), can_switch_to_partner(), can_switch_to_player(), create_target_list(), get_player_anim_for_status(), initialize_battle(), load_partner_actor(), load_player_actor(), player_team_is_ability_active(), and render_with_player_debuff_palettes().

◆ [union]

union { ... } BattleStatus

◆ curSubmenu

◆ unk_49

s8 BattleStatus::unk_49

◆ curPartnerSubmenu

s8 BattleStatus::curPartnerSubmenu

◆ unk_4B

s8 BattleStatus::unk_4B

◆ lastPlayerMenuSelection

s8 BattleStatus::lastPlayerMenuSelection[16]

◆ lastPartnerMenuSelection

s8 BattleStatus::lastPartnerMenuSelection[16]

◆ cancelTargetMenuSubstate

◆ acceptTargetMenuSubstate

◆ enabledMenusFlags

◆ unk_72

char BattleStatus::unk_72[2]

Definition at line 873 of file common_structs.h.

◆ enabledStarPowersFlags

s32 BattleStatus::enabledStarPowersFlags

◆ totalStarPoints

◆ pendingStarPoints

s8 BattleStatus::pendingStarPoints

◆ incrementStarPointDelay

s8 BattleStatus::incrementStarPointDelay

◆ damageTaken

◆ changePartnerAllowed

s8 BattleStatus::changePartnerAllowed

◆ menuStatus

s8 BattleStatus::menuStatus[4]

-1 = automatically pick the first move, 0 = disabled, 1 = enabled

Definition at line 880 of file common_structs.h.

Referenced by btl_init_menu_boots(), btl_init_menu_hammer(), btl_init_menu_items(), btl_init_menu_partner(), btl_state_update_partner_menu(), and btl_state_update_player_menu().

◆ actionSuccess

s8 BattleStatus::actionSuccess

◆ unk_82

char BattleStatus::unk_82

Definition at line 882 of file common_structs.h.

Referenced by btl_state_update_normal_start().

◆ actionCommandMode

s8 BattleStatus::actionCommandMode

◆ actionQuality

s8 BattleStatus::actionQuality

Definition at line 884 of file common_structs.h.

Referenced by draw(), and update().

◆ unk_85

s8 BattleStatus::unk_85

Definition at line 885 of file common_structs.h.

Referenced by update().

◆ actionResult

◆ blockResult

◆ itemUsesLeft

◆ hpDrainCount

s8 BattleStatus::hpDrainCount

◆ nextMerleeSpellType

◆ hustleTurns

◆ stateFreezeCount

◆ endBattleFadeOutRate

s8 BattleStatus::endBattleFadeOutRate

Definition at line 893 of file common_structs.h.

Referenced by btl_state_update_end_battle(), and btl_state_update_normal_start().

◆ initialEnemyCount

s8 BattleStatus::initialEnemyCount

Definition at line 894 of file common_structs.h.

Referenced by btl_state_update_normal_start().

◆ unk_8F

char BattleStatus::unk_8F[1]

Definition at line 895 of file common_structs.h.

◆ unk_90

s16 BattleStatus::unk_90

Definition at line 896 of file common_structs.h.

Referenced by btl_state_update_normal_start(), btl_update(), and show_immune_bonk().

◆ reflectFlags

s8 BattleStatus::reflectFlags

Definition at line 897 of file common_structs.h.

Referenced by btl_render_actors(), and btl_state_update_normal_start().

◆ unk_93

s8 BattleStatus::unk_93

◆ unk_94

◆ waitForState

s8 BattleStatus::waitForState

◆ hammerCharge

◆ jumpCharge

◆ unk_98

char BattleStatus::unk_98

Definition at line 903 of file common_structs.h.

Referenced by btl_state_update_normal_start(), and calc_player_damage_enemy().

◆ rushFlags

◆ outtaSightActive

◆ turboChargeTurnsLeft

◆ turboChargeAmount

u8 BattleStatus::turboChargeAmount

Definition at line 907 of file common_structs.h.

Referenced by btl_state_update_normal_start().

◆ waterBlockTurnsLeft

◆ waterBlockAmount

u8 BattleStatus::waterBlockAmount

Definition at line 909 of file common_structs.h.

Referenced by btl_state_update_normal_start().

◆ unk_9F

char BattleStatus::unk_9F

Definition at line 910 of file common_structs.h.

◆ waterBlockEffect

struct EffectInstance* BattleStatus::waterBlockEffect

◆ cloudNineTurnsLeft

◆ cloudNineDodgeChance

s8 BattleStatus::cloudNineDodgeChance

Definition at line 913 of file common_structs.h.

Referenced by btl_state_update_normal_start(), and calc_enemy_test_target().

◆ unk_A6

char BattleStatus::unk_A6[2]

Definition at line 914 of file common_structs.h.

◆ cloudNineEffect

◆ merleeAttackBoost

s8 BattleStatus::merleeAttackBoost

◆ merleeDefenseBoost

s8 BattleStatus::merleeDefenseBoost

◆ hammerLossTurns

s8 BattleStatus::hammerLossTurns

◆ jumpLossTurns

s8 BattleStatus::jumpLossTurns

◆ itemLossTurns

s8 BattleStatus::itemLossTurns

◆ unk_B1

char BattleStatus::unk_B1[3]

Definition at line 921 of file common_structs.h.

◆ preUpdateCallback

void(* BattleStatus::preUpdateCallback) (void)

Definition at line 922 of file common_structs.h.

Referenced by btl_state_update_normal_start(), and btl_update().

◆ initBattleCallback

void(* BattleStatus::initBattleCallback) (void)

Definition at line 923 of file common_structs.h.

Referenced by btl_render_actors(), and btl_state_update_normal_start().

◆ controlScript

◆ controlScriptID

◆ camMovementScript

struct Evt* BattleStatus::camMovementScript

◆ camMovementScriptID

s32 BattleStatus::camMovementScriptID

Definition at line 927 of file common_structs.h.

Referenced by btl_cam_use_preset_impl(), and btl_state_update_normal_start().

◆ camLookatObjPos

Vec3f BattleStatus::camLookatObjPos

Definition at line 928 of file common_structs.h.

Referenced by update_camera_no_interp().

◆ playerActor

struct Actor* BattleStatus::playerActor

Definition at line 929 of file common_structs.h.

Referenced by appendGfx_player_actor(), appendGfx_player_actor_reflection(), btl_init_menu_boots(), btl_init_menu_hammer(), btl_init_menu_items(), btl_init_menu_partner(), btl_render_actors(), btl_set_player_idle_anims(), btl_state_draw_select_target(), btl_state_update_9(), btl_state_update_begin_player_turn(), btl_state_update_begin_turn(), btl_state_update_celebration(), btl_state_update_change_partner(), btl_state_update_defeat(), btl_state_update_defend(), btl_state_update_end_battle(), btl_state_update_end_demo_battle(), btl_state_update_end_player_turn(), btl_state_update_end_training_battle(), btl_state_update_end_turn(), btl_state_update_enemy_move(), btl_state_update_enemy_striking_first(), btl_state_update_first_strike(), btl_state_update_next_enemy(), btl_state_update_normal_start(), btl_state_update_partner_menu(), btl_state_update_partner_move(), btl_state_update_partner_striking_first(), btl_state_update_peach_menu(), btl_state_update_player_menu(), btl_state_update_player_move(), btl_state_update_run_away(), btl_state_update_select_target(), btl_state_update_switch_to_partner(), btl_state_update_switch_to_player(), btl_state_update_twink_menu(), btl_state_update_victory(), btl_update_ko_status(), calc_item_check_hit(), calc_item_damage_enemy(), calc_player_damage_enemy(), calc_player_test_enemy(), can_switch_to_player(), create_target_list(), deduct_current_move_fp(), disable_player_blur(), dispatch_damage_event_player(), dispatch_event_player(), dispatch_event_player_continue_turn(), enable_player_blur(), force_disable_player_blur(), force_disable_player_blur_immediately(), get_actor(), get_cam_subject_properties(), get_player_anim_for_status(), initialize_battle(), load_player_actor(), remove_player_buffs(), reset_actor_turn_info(), reset_player_blur(), show_action_rating(), update_action_ratings(), and update_player_actor_shadow().

◆ partnerActor

struct Actor* BattleStatus::partnerActor

Definition at line 930 of file common_structs.h.

Referenced by appendGfx_npc_actor(), appendGfx_partner_actor_reflection(), appendGfx_player_actor(), btl_check_can_change_partner(), btl_init_menu_partner(), btl_render_actors(), btl_state_draw_select_target(), btl_state_update_9(), btl_state_update_begin_partner_turn(), btl_state_update_begin_player_turn(), btl_state_update_begin_turn(), btl_state_update_celebration(), btl_state_update_change_partner(), btl_state_update_defeat(), btl_state_update_end_battle(), btl_state_update_end_demo_battle(), btl_state_update_end_player_turn(), btl_state_update_end_training_battle(), btl_state_update_end_turn(), btl_state_update_enemy_move(), btl_state_update_enemy_striking_first(), btl_state_update_first_strike(), btl_state_update_next_enemy(), btl_state_update_normal_start(), btl_state_update_partner_menu(), btl_state_update_partner_move(), btl_state_update_partner_striking_first(), btl_state_update_peach_menu(), btl_state_update_player_menu(), btl_state_update_player_move(), btl_state_update_run_away(), btl_state_update_select_target(), btl_state_update_switch_to_partner(), btl_state_update_switch_to_player(), btl_state_update_twink_menu(), btl_state_update_victory(), btl_update(), btl_update_ko_status(), calc_item_damage_enemy(), calc_partner_damage_enemy(), calc_partner_test_enemy(), can_switch_to_partner(), create_target_list(), disable_partner_blur(), dispatch_damage_event_partner(), dispatch_event_partner(), dispatch_event_partner_continue_turn(), enable_partner_blur(), force_disable_partner_blur(), get_actor(), get_cam_subject_properties(), initialize_battle(), load_partner_actor(), remove_player_buffs(), reset_actor_turn_info(), reset_partner_blur(), update(), update_action_ratings(), and update_hero_shadows().

◆ enemyActors

◆ enemyIDs

s16 BattleStatus::enemyIDs[24]

◆ nextEnemyIndex

s8 BattleStatus::nextEnemyIndex

◆ numEnemyActors

s8 BattleStatus::numEnemyActors

◆ activeEnemyActorID

s16 BattleStatus::activeEnemyActorID

◆ curTurnEnemy

struct Actor* BattleStatus::curTurnEnemy

◆ moveCategory

◆ unk_179

char BattleStatus::unk_179

Definition at line 938 of file common_structs.h.

◆ moveArgument

◆ selectedMoveID

◆ curAttackDamage

◆ lastAttackDamage

◆ unk_182

char BattleStatus::unk_182[2]

Definition at line 943 of file common_structs.h.

◆ curTargetListFlags

◆ curAttackElement

◆ curAttackEventSuppression

s32 BattleStatus::curAttackEventSuppression

◆ curAttackStatus

◆ statusChance

u8 BattleStatus::statusChance

◆ statusDuration

s8 BattleStatus::statusDuration

Definition at line 949 of file common_structs.h.

Referenced by try_inflict_status().

◆ unk_196

char BattleStatus::unk_196

Definition at line 950 of file common_structs.h.

◆ sampleTargetHomeIndex

s8 BattleStatus::sampleTargetHomeIndex

Definition at line 951 of file common_structs.h.

Referenced by count_targets(), and create_target_list().

◆ powerBounceCounter

s8 BattleStatus::powerBounceCounter

Definition at line 952 of file common_structs.h.

Referenced by calc_partner_damage_enemy(), and calc_player_damage_enemy().

◆ wasStatusInflicted

s8 BattleStatus::wasStatusInflicted

◆ curDamageSource

◆ unk_19B

char BattleStatus::unk_19B[5]

Definition at line 955 of file common_structs.h.

◆ curTargetID

◆ curTargetPart

◆ unk_1A3

char BattleStatus::unk_1A3

Definition at line 958 of file common_structs.h.

◆ curTargetID2

◆ curTargetPart2

◆ battlePhase

◆ attackerActorID

s16 BattleStatus::attackerActorID

◆ unk_1AA

s16 BattleStatus::unk_1AA

◆ unk_1AC

s8 BattleStatus::unk_1AC

◆ unk_1AD

char BattleStatus::unk_1AD

Definition at line 965 of file common_structs.h.

◆ submenuIcons

s16 BattleStatus::submenuIcons[24]

◆ submenuMoves

◆ submenuStatus

s8 BattleStatus::submenuStatus[24]

◆ submenuMoveCount

◆ unk_20F

char BattleStatus::unk_20F

Definition at line 970 of file common_structs.h.

◆ curButtonsDown

s32 BattleStatus::curButtonsDown

◆ curButtonsPressed

◆ curButtonsHeld

◆ stickX

s32 BattleStatus::stickX

Definition at line 974 of file common_structs.h.

Referenced by btl_update(), and get_stick_input_radial().

◆ stickY

s32 BattleStatus::stickY

Definition at line 975 of file common_structs.h.

Referenced by btl_update(), and get_stick_input_radial().

◆ inputBitmask

s32 BattleStatus::inputBitmask

Definition at line 976 of file common_structs.h.

Referenced by btl_state_update_normal_start(), btl_update(), and initialize_battle().

◆ stickAngle

s32 BattleStatus::stickAngle

Definition at line 977 of file common_structs.h.

Referenced by btl_update().

◆ stickMagnitude

s32 BattleStatus::stickMagnitude

Definition at line 978 of file common_structs.h.

Referenced by btl_update().

◆ holdInputBuffer

s32 BattleStatus::holdInputBuffer[64]

Definition at line 979 of file common_structs.h.

Referenced by btl_update(), and update().

◆ pushInputBuffer

s32 BattleStatus::pushInputBuffer[64]

Definition at line 980 of file common_structs.h.

Referenced by btl_update(), check_block_input(), initialize_battle(), and update().

◆ holdInputBufferPos

s8 BattleStatus::holdInputBufferPos

Definition at line 981 of file common_structs.h.

Referenced by initialize_battle().

◆ inputBufferPos

s8 BattleStatus::inputBufferPos

Definition at line 982 of file common_structs.h.

Referenced by btl_update(), check_block_input(), initialize_battle(), and update().

◆ darknessMode

s8 BattleStatus::darknessMode

Definition at line 983 of file common_structs.h.

Referenced by btl_state_update_normal_start(), btl_update(), and create_target_list().

◆ unk_433

u8 BattleStatus::unk_433

Definition at line 984 of file common_structs.h.

Referenced by btl_state_update_normal_start().

◆ actionCmdDifficultyTable

s32* BattleStatus::actionCmdDifficultyTable

Definition at line 985 of file common_structs.h.

Referenced by update().

◆ curStage

◆ buffEffect

◆ tattleFlags

u8 BattleStatus::tattleFlags[28]

◆ unk_45C

char BattleStatus::unk_45C[4]

Definition at line 989 of file common_structs.h.


The documentation for this struct was generated from the following file: