MCPcopy Create free account
hub / github.com/diasurgical/devilution / STextEnter

Function STextEnter

Source/stores.cpp:2639–2719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2637}
2638
2639void STextEnter()
2640{
2641 if (qtextflag) {
2642 qtextflag = FALSE;
2643 if (leveltype == DTYPE_TOWN)
2644 sfx_stop();
2645 } else {
2646 PlaySFX(IS_TITLSLCT);
2647 switch (stextflag) {
2648 case STORE_SMITH:
2649 S_SmithEnter();
2650 break;
2651 case STORE_SPBUY:
2652 S_SPBuyEnter();
2653 break;
2654 case STORE_SBUY:
2655 S_SBuyEnter();
2656 break;
2657 case STORE_SSELL:
2658 S_SSellEnter();
2659 break;
2660 case STORE_SREPAIR:
2661 S_SRepairEnter();
2662 break;
2663 case STORE_WITCH:
2664 S_WitchEnter();
2665 break;
2666 case STORE_WBUY:
2667 S_WBuyEnter();
2668 break;
2669 case STORE_WSELL:
2670 S_WSellEnter();
2671 break;
2672 case STORE_WRECHARGE:
2673 S_WRechargeEnter();
2674 break;
2675 case STORE_NOMONEY:
2676 case STORE_NOROOM:
2677 StartStore(stextshold);
2678 stextsel = stextlhold;
2679 stextsval = stextvhold;
2680 break;
2681 case STORE_CONFIRM:
2682 S_ConfirmEnter();
2683 break;
2684 case STORE_BOY:
2685 S_BoyEnter();
2686 break;
2687 case STORE_BBOY:
2688 S_BBuyEnter();
2689 break;
2690 case STORE_HEALER:
2691 S_HealerEnter();
2692 break;
2693 case STORE_STORY:
2694 S_StoryEnter();
2695 break;
2696 case STORE_HBUY:

Callers 2

CheckStoreBtnFunction · 0.85
PressKeyFunction · 0.85

Calls 15

sfx_stopFunction · 0.85
PlaySFXFunction · 0.85
S_SmithEnterFunction · 0.85
S_SPBuyEnterFunction · 0.85
S_SBuyEnterFunction · 0.85
S_SSellEnterFunction · 0.85
S_SRepairEnterFunction · 0.85
S_WitchEnterFunction · 0.85
S_WBuyEnterFunction · 0.85
S_WSellEnterFunction · 0.85
S_WRechargeEnterFunction · 0.85
StartStoreFunction · 0.85

Tested by

no test coverage detected