explicit tparticular(int start_time=0, const frame_builder &builder = frame_builder()) : animated<unit_frame>(start_time) , parameters_(builder) , layer_(0) , zoom_x_(0) , zoom_y_(0) {};
std::string x_; std::string y_; std::string directional_x_; std::string directional_y_; tristate auto_vflip_; tristate auto_hflip_; tristate primary_frame_; std::string drawing_layer_; }; /** * keep most parameters in a separate class to simplify handling of large * number of parameters hanling is common for frame level and animation level */ class frame_parsed_parameters { public: frame_parsed_parameters(const frame_builder& builder=frame_builder(),int override_duration = 0); /** allow easy chained modifications will raised assert if used after initialization */ void override( int duration , const std::string& highlight = "" , const std::string& blend_ratio ="" , Uint32 blend_color = 0 , const std::string& offset = "" , const std::string& layer = "" , const std::string& modifiers = ""); /** getters for the different parameters */ const frame_parameters parameters(int current_time) const ; int duration() const{ return duration_;}; bool does_not_change() const; bool need_update() const; private: