30 #include <boost/logic/tribool.hpp> 148 const std::string& highlight =
"",
151 const std::string&
offset =
"",
152 const std::string& layer =
"",
153 const std::string& modifiers =
"");
159 bool does_not_change()
const;
160 bool need_update()
const;
163 std::vector<std::string> debug_strings()
const;
207 void redraw(
const int frame_time,
bool on_start_time,
bool in_scope_of_frame,
const map_location& src,
const map_location& dst,
215 return builder_.parameters(current_time);
220 return builder_.parameters(
duration());
225 return builder_.duration();
230 return builder_.does_not_change();
235 return builder_.need_update();
241 return builder_.debug_strings();
Describes a unit's animation sequence.
boost::tribool auto_hflip_
All parameters from a frame at a given instant.
boost::tribool auto_hflip
progressive_double blend_ratio_
std::optional< color_t > blend_with
Keep most parameters in a separate class to simplify the handling of the large number of parameters b...
std::string directional_y_
std::string drawing_layer_
Audio output for sound and music.
unit_frame(const frame_builder &builder=frame_builder())
image::locator image_diagonal
boost::tribool primary_frame_
std::vector< std::string > debug_strings() const
frame_parsed_parameters builder_
std::optional< color_t > blend_with_
progressive_image image_diagonal_
std::string highlight_ratio_
const frame_parameters parameters(int current_time) const
boost::tribool primary_frame_
bool does_not_change() const
The basic class for representing 8-bit RGB or RGBA colour values.
progressive_double highlight_ratio_
std::optional< color_t > text_color
std::string directional_x_
Generic locator abstracting the location of an image.
progressive_int drawing_layer_
progressive_int directional_x_
Encapsulates the map of the game.
std::optional< color_t > text_color_
std::optional< color_t > text_color_
const frame_parameters end_parameters() const
boost::tribool auto_vflip
progressive_double submerge_
progressive_int directional_y_
std::optional< color_t > blend_with_
boost::tribool auto_vflip_
Functions to load and save images from/to disk.
std::string image_diagonal_
boost::tribool auto_hflip_
progressive_double offset_
A config object defines a single node in a WML file, with access to child nodes.
std::shared_ptr< halo_record > handle
boost::tribool primary_frame
boost::tribool auto_vflip_