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 Attributes | List of all members
progressive_string Class Reference

#include <frame.hpp>

Public Member Functions

 progressive_string (const std::string &data="", int duration=0)
 
int duration () const
 
const std::stringget_current_element (int time) const
 
bool does_not_change () const
 
std::string get_original () const
 

Private Attributes

std::vector< std::pair
< std::string, int > > 
data_
 
std::string input_
 

Detailed Description

Definition at line 28 of file frame.hpp.

Constructor & Destructor Documentation

progressive_string::progressive_string ( const std::string data = "",
int  duration = 0 
)

Definition at line 25 of file frame.cpp.

References data_, duration(), utils::split(), and utils::square_parenthetical_split().

Member Function Documentation

bool progressive_string::does_not_change ( ) const
inline

Definition at line 33 of file frame.hpp.

References data_.

Referenced by frame_parsed_parameters::does_not_change(), and frame_parsed_parameters::need_update().

int progressive_string::duration ( ) const

Definition at line 54 of file frame.cpp.

References data_.

Referenced by progressive_string().

const std::string & progressive_string::get_current_element ( int  time) const

Definition at line 121 of file frame.cpp.

References data_, and empty_string.

Referenced by frame_parsed_parameters::parameters().

std::string progressive_string::get_original ( ) const
inline

Definition at line 34 of file frame.hpp.

References input_.

Referenced by frame_parsed_parameters::debug_strings(), and frame_parsed_parameters::override().

Member Data Documentation

std::vector<std::pair<std::string,int> > progressive_string::data_
private

Definition at line 36 of file frame.hpp.

Referenced by does_not_change(), duration(), get_current_element(), and progressive_string().

std::string progressive_string::input_
private

Definition at line 37 of file frame.hpp.

Referenced by get_original().


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