src/shop/shop_inn.c
The inn: room prices, checking in and the night's sleep. More…
Included by shop.c.
Enumerations
| Name | Description | |
|---|---|---|
enum | INN_MESSAGE_ID { INN_MESSAGE_WELCOME, INN_MESSAGE_ENJOY_YOUR_STAY, INN_MESSAG … } | The innkeeper's lines, in message order from MsgInnWelcome. |
Functions
| Name | Description | |
|---|---|---|
Sint32 | mnInnRoomPrice (Sint32 innId) | Returns the night's price: the inn's price per guest times the party members still standing. |
Sint32 | mnInnCheckIn (Sint32 innId, Sint32 actorId) | Runs an inn's counter: the innkeeper names the price, and on Yes the party sleeps. actorId is the innkeeper, whose portrait the lines show. |
void | mnInnPlaySleep (Sint32 roomPrice) | Charges the room and restores the HP and PP of each party member still standing over a night: a fade to black, the inn's music and a fade back. |
Description
The inn: room prices, checking in and the night's sleep. Part of shop.c.
Enumerations in detail
INN_MESSAGE_ID
enum INN_MESSAGE_ID
The innkeeper's lines, in message order from MsgInnWelcome.
| Enumerator | Value | Description |
|---|---|---|
INN_MESSAGE_WELCOME | MSGNO(MsgInnWelcome) | |
INN_MESSAGE_ENJOY_YOUR_STAY | ||
INN_MESSAGE_NOT_ENOUGH_COINS | ||
INN_MESSAGE_COME_AGAIN | ||
INN_MESSAGE_SLEPT_WELL |
Definition at line 6 of file shop_inn.c.
Functions in detail
mnInnRoomPrice
Sint32 mnInnRoomPrice(Sint32 innId)
Returns the night's price: the inn's price per guest times the party members still standing.
References gmUnitGetStub(), InnPricesPerGuest and Sint32.
Referenced by mnInnCheckIn().
Definition at line 17 of file shop_inn.c.
mnInnCheckIn
Sint32 mnInnCheckIn(Sint32 innId, Sint32 actorId)
Runs an inn's counter: the innkeeper names the price, and on Yes the party sleeps. actorId is the innkeeper, whose portrait the lines show.
References fdActorGetByIdStub(), MainRoutineStateWork, mnInnPlaySleep(), mnInnRoomPrice(), mnMessageArgumentPushStub(), mnPortraitOpenWindowStub(), mnShopAskYesNo(), mnShopDrawMoney(), mnShopInitState(), mnShopReleaseState(), mnShopShowKeeperMessage(), mnWindowCloseStub(), mnWindowCreateStub() and Sint32.
Referenced by scCottageRoomsBTalkToInnkeeper(), scCottageRoomsCTalkToInnkeeper(), scCottageRoomsDTalkToInnkeeper(), scImilTalkToInnkeeper(), scLacquerRoomsBTalkToInnkeeper(), scLogRoomsATalkToInnkeeper(), scLogRoomsBTalkToInnkeeper(), scLogRoomsCTalkToInnkeeper(), scRockRoomsTalkToInnkeeper(), scStuccoRoomsATalkToInnkeeper(), scTimberRoomsATalkToInnkeeper() and scTimberRoomsBCTalkToInnkeeper().
Definition at line 34 of file shop_inn.c.
mnInnPlaySleep
void mnInnPlaySleep(Sint32 roomPrice)
Charges the room and restores the HP and PP of each party member still standing over a night: a fade to black, the inn's music and a fade back.
References fdScriptFinishScreenTransitionStub(), fdScriptStartScreenTransitionStub(), fdScriptWaitTransitionTicksStub(), gmPartyAdjustCoinsStub(), gmPartyListMembersStub(), gmUnitGetStub(), gmUnitRecalculateGaugesStub(), mnSoundWaitForJingle(), Sint32, state, sySoundPlayStub() and sySynch().
Referenced by mnInnCheckIn() and scBabiPalaceRestInPalaceBeds().
Definition at line 104 of file shop_inn.c.