AllegroFlare/Prototypes/FixedRoom2D/ScriptRunner
view source (cpp, hpp, quintessence) • view tests (test file)
Properties
event_emitter |
AllegroFlare::EventEmitter* |
script_dictionary |
std::map<std::string, AllegroFlare::Prototypes::FixedRoom2D::Script>* |
current_internally_running_script |
AllegroFlare::Prototypes::FixedRoom2D::Script |
bool_eval_func |
std::function<bool(std::string, AllegroFlare::Prototypes::FixedRoom2D::ScriptRunner*, void*)> |
bool_eval_func_user_data |
void* |
script_freshly_loaded_via_OPEN_SCRIPT |
bool |
paused_for_dialog_to_finish |
bool |
debug_output |
bool |
Methods
load_script_by_dictionary_name(std::string script_dictionary_name="[unset-script_dictionary_name]") |
load_script_lines(std::vector<std::string> script_lines={}) |
play_or_resume() |
default_bool_eval_func(std::string expression="[unset-expression]", AllegroFlare::Prototypes::FixedRoom2D::ScriptRunner* script_runner=nullptr, void* user_data=nullptr) |
parse_and_run_line(std::string raw_script_line="[empty-script-line]", int line_num=0, bool auto_assume_uncommanded_line_is_dialog=true) |
parse_command_and_argument(std::string script_line={}) |
emit_script_event(AllegroFlare::GameEventDatas::Base* event_data=nullptr) |
split(std::string string="", char delimiter=' ') |
tokenize(std::string str="", char delim='|') |
assert_min_token_count(std::vector<std::string> tokens={}, int min=0) |
assert_token_count_eq(std::vector<std::string> tokens={}, int value=0) |
assert_odd_token_count(std::vector<std::string> tokens={}, int min=0) |
trim(std::string s="") |
Dependencies
{"symbol"=>"AllegroFlare::Prototypes::FixedRoom2D::Script", "headers"=>["AllegroFlare/Prototypes/FixedRoom2D/Script.hpp"]} |
{"symbol"=>"AllegroFlare::Prototypes::FixedRoom2D::EventNames::SCRIPT_EVENT_NAME", "headers"=>["AllegroFlare/Prototypes/FixedRoom2D/EventNames.hpp"]} |
{"symbol"=>"AllegroFlare::Prototypes::FixedRoom2D::ScriptEventDatas::InitiateDialog", "headers"=>["AllegroFlare/Prototypes/FixedRoom2D/ScriptEventDatas/InitiateDialog.hpp"]} |
{"symbol"=>"AllegroFlare::Prototypes::FixedRoom2D::ScriptEventDatas::CollectItem", "headers"=>["AllegroFlare/Prototypes/FixedRoom2D/ScriptEventDatas/CollectItem.hpp"]} |
{"symbol"=>"AllegroFlare::Prototypes::FixedRoom2D::ScriptEventDatas::CollectEvidence", "headers"=>["AllegroFlare/Prototypes/FixedRoom2D/ScriptEventDatas/CollectEvidence.hpp"]} |
{"symbol"=>"AllegroFlare::Prototypes::FixedRoom2D::ScriptEventDatas::EnterRoom", "headers"=>["AllegroFlare/Prototypes/FixedRoom2D/ScriptEventDatas/EnterRoom.hpp"]} |
{"symbol"=>"AllegroFlare::GameEventDatas::Base", "headers"=>["AllegroFlare/GameEventDatas/Base.hpp"]} |
{"symbol"=>"AllegroFlare::EventEmitter", "headers"=>["AllegroFlare/EventEmitter.hpp"]} |
{"symbol"=>"AllegroFlare::Inventory", "headers"=>["AllegroFlare/Inventory.hpp"]} |
{"symbol"=>"AllegroFlare::Elements::Inventory", "headers"=>["AllegroFlare/Elements/Inventory.hpp"]} |
{"symbol"=>"AllegroFlare::Prototypes::FixedRoom2D::Script", "headers"=>["AllegroFlare/Prototypes/FixedRoom2D/Script.hpp"]} |
{"symbol"=>"AllegroFlare::Prototypes::FixedRoom2D::ScriptRunner", "headers"=>["AllegroFlare/Prototypes/FixedRoom2D/ScriptRunner.hpp"]} |
{"symbol"=>"std::function", "headers"=>["functional"]} |
{"symbol"=>"std::find_if", "headers"=>["algorithm"]} |
Sponsor
Look no further than CLUBCATT for cat shirts, cat mugs, and all kinds of cat-fancy stuff.