#include <controller.hpp>
Public Types | |
typedef std::shared_ptr< part > | part_pointer_type |
Public Member Functions | |
controller (const vconfig &data, const std::string &scenario_name) | |
part_pointer_type | get_part (int index) const |
int | max_parts () const |
Private Member Functions | |
virtual bool | resolve_wml_helper (const std::string &key, const vconfig &node) override |
Inherited from story_parser. More... | |
Private Member Functions inherited from storyscreen::story_parser | |
story_parser ()=default | |
virtual | ~story_parser ()=default |
story_parser (const story_parser &)=delete | |
story_parser & | operator= (const story_parser &)=delete |
virtual void | resolve_wml (const vconfig &cfg) |
Takes care of initializing and branching properties. More... | |
Private Attributes | |
std::string | scenario_name_ |
std::vector< part_pointer_type > | parts_ |
Definition at line 33 of file controller.hpp.
typedef std::shared_ptr<part> storyscreen::controller::part_pointer_type |
Definition at line 36 of file controller.hpp.
storyscreen::controller::controller | ( | const vconfig & | data, |
const std::string & | scenario_name | ||
) |
Definition at line 36 of file controller.cpp.
References data, resources::gamedata, and storyscreen::story_parser::resolve_wml().
|
inline |
Definition at line 40 of file controller.hpp.
References utf8::index(), and parts_.
Referenced by gui2::dialogs::story_viewer::update_current_part_ptr().
|
inline |
Definition at line 45 of file controller.hpp.
References parts_.
Referenced by gui2::dialogs::story_viewer::display(), and gui2::dialogs::story_viewer::nav_button_callback().
|
overrideprivatevirtual |
Inherited from story_parser.
Implements storyscreen::story_parser.
Definition at line 44 of file controller.cpp.
References vconfig::empty(), parts_, and scenario_name_.
|
private |
Definition at line 57 of file controller.hpp.
Referenced by get_part(), max_parts(), and resolve_wml_helper().
|
private |
Definition at line 54 of file controller.hpp.
Referenced by resolve_wml_helper().