progressive_string Class Reference

#include <unit_frame.hpp>

Collaboration diagram for progressive_string:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Attributes

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


Detailed Description

Definition at line 34 of file unit_frame.hpp.


Constructor & Destructor Documentation

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

Definition at line 28 of file unit_frame.cpp.

References data_, input_, and utils::split().


Member Function Documentation

int progressive_string::duration (  )  const

Definition at line 44 of file unit_frame.cpp.

References data_.

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

Definition at line 55 of file unit_frame.cpp.

References data_, and empty_string.

Referenced by frame_builder::parameters().

bool progressive_string::does_not_change (  )  const [inline]

Definition at line 39 of file unit_frame.hpp.

References data_.

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

std::string progressive_string::get_original (  )  [inline]

Definition at line 40 of file unit_frame.hpp.

References input_.

Referenced by frame_builder::recalculate_duration().


Member Data Documentation

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

Definition at line 42 of file unit_frame.hpp.

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

std::string progressive_string::input_ [private]

Definition at line 43 of file unit_frame.hpp.

Referenced by get_original(), and progressive_string().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs