The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
storyscreen::controller Class Reference

#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< partpart_pointer_type
 
typedef boost::shared_ptr
< part_ui
render_pointer_type
 

Private Member Functions

void resolve_wml (const vconfig &cfg)
 

Private Attributes

CVideovideo_
 
const events::event_context evt_context_
 
std::string scenario_name_
 
int segment_index_
 
std::vector< part_pointer_typeparts_
 

Detailed Description

Definition at line 43 of file controller.hpp.

Member Typedef Documentation

Definition at line 55 of file controller.hpp.

Definition at line 56 of file controller.hpp.

Constructor & Destructor Documentation

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().

Member Function Documentation

void storyscreen::controller::resolve_wml ( const vconfig cfg)
private
STORY_RESULT storyscreen::controller::show ( START_POSITION  startpos = START_BEGINNING)

Member Data Documentation

const events::event_context storyscreen::controller::evt_context_
private

Definition at line 62 of file controller.hpp.

std::vector< part_pointer_type > storyscreen::controller::parts_
private

Definition at line 68 of file controller.hpp.

Referenced by resolve_wml(), and show().

std::string storyscreen::controller::scenario_name_
private

Definition at line 64 of file controller.hpp.

Referenced by resolve_wml().

int storyscreen::controller::segment_index_
private

Definition at line 65 of file controller.hpp.

Referenced by show().

CVideo& storyscreen::controller::video_
private

Definition at line 61 of file controller.hpp.

Referenced by show().


The documentation for this class was generated from the following files: