#include <controller.hpp>
Public Member Functions | |
controller (CVideo &video, const vconfig &data, const std::string &scenario_name, int segment_index) | |
STORY_RESULT | show (START_POSITION startpos=START_BEGINNING) |
Display all story screen parts in a first..last sequence. More... | |
Private Types | |
typedef boost::shared_ptr< part > | part_pointer_type |
typedef boost::shared_ptr < part_ui > | render_pointer_type |
Private Member Functions | |
void | resolve_wml (const vconfig &cfg) |
Private Attributes | |
CVideo & | video_ |
const events::event_context | evt_context_ |
std::string | scenario_name_ |
int | segment_index_ |
std::vector< part_pointer_type > | parts_ |
Definition at line 43 of file controller.hpp.
|
private |
Definition at line 55 of file controller.hpp.
|
private |
Definition at line 56 of file controller.hpp.
storyscreen::controller::controller | ( | CVideo & | video, |
const vconfig & | data, | ||
const std::string & | scenario_name, | ||
int | segment_index | ||
) |
Definition at line 45 of file controller.cpp.
References ASSERT_LOG, resources::gamedata, and resolve_wml().
Definition at line 57 of file controller.cpp.
References vconfig::child(), game_events::conditional_passed(), vconfig::empty(), resources::game_events, resources::gamedata, vconfig::get_children(), game_data::get_variable_const(), vconfig::has_child(), i, vconfig::ordered_begin(), vconfig::ordered_end(), parts_, game_events::manager::pump(), game_events::t_pump::put_wml_message(), scenario_name_, and lg::wml_error().
Referenced by controller().
STORY_RESULT storyscreen::controller::show | ( | START_POSITION | startpos = START_BEGINNING | ) |
Display all story screen parts in a first..last sequence.
Definition at line 144 of file controller.cpp.
References _(), ASSERT_LOG, storyscreen::BACK, storyscreen::part_ui::BACK, gui::button::DEFAULT_SPACE, gui::button::enable(), LOG_NG, storyscreen::NEXT, storyscreen::part_ui::NEXT, parts_, storyscreen::QUIT, storyscreen::part_ui::QUIT, segment_index_, storyscreen::part_ui::show(), storyscreen::START_BEGINNING, storyscreen::START_END, gui::button::TYPE_PRESS, and video_.
Referenced by show_story().
|
private |
Definition at line 62 of file controller.hpp.
|
private |
Definition at line 68 of file controller.hpp.
Referenced by resolve_wml(), and show().
|
private |
Definition at line 64 of file controller.hpp.
Referenced by resolve_wml().
|
private |
Definition at line 65 of file controller.hpp.
Referenced by show().
|
private |
Definition at line 61 of file controller.hpp.
Referenced by show().