scraps

Abandon all hope, ye who enter here.
git clone https://git.neptards.moe/neptards/scraps.git
Log | Files | Refs | Submodules | README | LICENSE

dummy.hpp (1175B)


      1 #ifndef GUARD_PROFITLESSLY_THALAMENCEPHALIC_YAWMETER_DEBUNKS_5984
      2 #define GUARD_PROFITLESSLY_THALAMENCEPHALIC_YAWMETER_DEBUNKS_5984
      3 #pragma once
      4 
      5 #include "scraps/game/action_state.hpp"
      6 
      7 namespace Scraps::Game { class GameController; }
      8 namespace Scraps::UI
      9 {
     10 
     11   class DummyUI
     12   {
     13   public:
     14     DummyUI(Game::GameController& gc);
     15     DummyUI(const DummyUI&) = delete;
     16     void operator=(const DummyUI&) = delete;
     17 
     18     void Run();
     19 
     20   private:
     21     enum class NormalMenu
     22     {
     23       MAIN,
     24       ROOM_OBJ, OBJ, CHAR, INV,
     25       ROOM_ACT, OBJ_ACT, CHAR_ACT,
     26     };
     27 
     28     bool Step();
     29 
     30     void Menu();
     31     void MsgBox();
     32     void QueryChoice();
     33     void QueryText();
     34     void NormalMain();
     35     void Paused();
     36 
     37     void NormalActions(Game::ActionsProxy acts, Game::ObjectId oid);
     38 
     39     template <typename IdT, typename Coll, typename IdVar, typename DisplayP>
     40     bool List(Game::IdSet<IdT>& t_coll, Coll coll, NormalMenu descend_state,
     41               NormalMenu select_state, IdVar DummyUI::* id_var,
     42               DisplayP display_p);
     43 
     44     Game::GameController& gc;
     45     NormalMenu normal_menu_state = NormalMenu::MAIN;
     46     Game::ActionId parent_act;
     47     Game::Id id;
     48   };
     49 
     50 }
     51 
     52 #endif