|
Digimon World 3 decomp
The European version, SLES_039.36
|
#include "engine/game.h"Go to the source code of this file.
Data Structures | |
| struct | InnInfo |
| One inn per game mode. More... | |
Enumerations | |
| enum | InnSubstate { INN_OPEN_NAME , INN_OPEN_QUESTION , INN_SHOW_QUESTION , INN_CHOOSE , INN_CLOSE_QUESTION = 10 , INN_WAIT_QUESTION_CLOSED , INN_WAIT_NAME_CLOSED , INN_PAY = 20 , INN_SLEEP , INN_WAKE , INN_WAIT_AWAKE , INN_NO_MONEY = 30 , INN_NO_MONEY_WAIT , INN_NO_MONEY_CLOSE } |
| updateInnMenu's substates: each group runs in order, by substate++ More... | |
Functions | |
| void | innStartPanel (PanelAnim *panel, s32 open) |
| Starts opening or closing a menu panel, with its sound. | |
| s32 | innUpdatePanel (PanelAnim *panel) |
| Moves a panel's level one frame on; 1 once it is fully open or closed. | |
| void | healParty (void) |
| Restores HP, MP and status of the party (the inn) | |
| static void | chooseInnAnswer (Inn *task, InnChildren *data) |
| INN_CHOOSE: moves the cursor between yes and no; on yes pays if the party can, else shows the "not enough money" message; no or a cancel closes the question. | |
| static void | sleepAtInn (Inn *task, InnChildren *data) |
| Under the fade: hides the panels and windows, pays the night and heals the party. | |
| void | updateInnMenu (Inn *task, InnChildren *data) |
| The inn's menu (INN_*): open the panels and ask (price x party size), then close, pay and sleep, or show the "not enough money" message. | |
| void | updateInn (Inn *task, InnChildren *data) |
| The inn task: creates its windows, then runs the menu and draws the panels at their levels. | |
| Inn * | createInn (s32 layerId) |
| Starts the inn of the current game mode on a layer. | |
Variables | |
| InnInfo | INNS [] |
| enum InnSubstate |
updateInnMenu's substates: each group runs in order, by substate++
Starts opening or closing a menu panel, with its sound.
< SYSTEM03
< GTE regards 4096 as 1.0
< SYSTEM04
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
Definition at line 22 of file inn.c.
Referenced by updateInnMenu().
Moves a panel's level one frame on; 1 once it is fully open or closed.
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
Definition at line 36 of file inn.c.
Referenced by updateInnMenu().
| void healParty | ( | void | ) |
Restores HP, MP and status of the party (the inn)
Definition at line 56 of file inn.c.
Referenced by sleepAtInn().
|
inlinestatic |
INN_CHOOSE: moves the cursor between yes and no; on yes pays if the party can, else shows the "not enough money" message; no or a cancel closes the question.
< SYSTEM02: a cursor moves
< SYSTEM00: a choice is taken
< SYSTEM01
Definition at line 109 of file inn.c.
Referenced by updateInnMenu().
|
inlinestatic |
Under the fade: hides the panels and windows, pays the night and heals the party.
Definition at line 140 of file inn.c.
Referenced by updateInnMenu().
| void updateInnMenu | ( | Inn * | task, |
| InnChildren * | data | ||
| ) |
The inn's menu (INN_*): open the panels and ask (price x party size), then close, pay and sleep, or show the "not enough money" message.
< HTLNAM
< HTLNAM
< HTLNAM
< HTLNAM
< HTLNAM
< JINGLE04: a night at the inn
< HTLNAM
< SYSTEM07
Definition at line 158 of file inn.c.
Referenced by updateInn().
| void updateInn | ( | Inn * | task, |
| InnChildren * | data | ||
| ) |
The inn task: creates its windows, then runs the menu and draws the panels at their levels.
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
Definition at line 266 of file inn.c.
Referenced by createInn().
Starts the inn of the current game mode on a layer.
Definition at line 343 of file inn.c.
Referenced by FIELDSTG_openInn().
| InnInfo INNS[] |
Definition at line 82 of file inn.c.
Referenced by chooseInnAnswer(), sleepAtInn(), updateInn(), and updateInnMenu().