Small struct to store and manipulate ToD colors. More...
#include <time_of_day.hpp>
Public Member Functions | |
| tod_color (int red=0, int green=0, int blue=0) | |
| bool | operator== (const tod_color &o) const |
| bool | is_zero () const |
| bool | operator!= (const tod_color &o) const |
| tod_color | operator+ (const tod_color &o) const |
| void | operator*= (float x) |
Public Attributes | |
| int | r |
| int | g |
| int | b |
Small struct to store and manipulate ToD colors.
Definition at line 30 of file time_of_day.hpp.
Definition at line 31 of file time_of_day.hpp.
Referenced by operator+().
|
inline |
Definition at line 33 of file time_of_day.hpp.
Referenced by display::get_terrain_images().
|
inline |
Definition at line 34 of file time_of_day.hpp.
References operator==().
|
inline |
Definition at line 36 of file time_of_day.hpp.
Definition at line 35 of file time_of_day.hpp.
References b, g, r, and tod_color().
|
inline |
| int tod_color::b |
Definition at line 38 of file time_of_day.hpp.
Referenced by display::draw_hex(), editor::editor_controller::execute_command(), display::get_terrain_images(), game_lua_kernel::intf_get_time_of_day(), operator+(), operator<<(), operator==(), gui2::tcustom_tod::pre_show(), display::read(), display::update_tod(), and display::write().
| int tod_color::g |
Definition at line 38 of file time_of_day.hpp.
Referenced by display::draw_hex(), editor::editor_controller::execute_command(), display::get_terrain_images(), game_lua_kernel::intf_get_time_of_day(), operator+(), operator<<(), operator==(), gui2::tcustom_tod::pre_show(), display::read(), display::update_tod(), and display::write().
| int tod_color::r |
Definition at line 38 of file time_of_day.hpp.
Referenced by display::draw_hex(), editor::editor_controller::execute_command(), display::get_terrain_images(), game_lua_kernel::intf_get_time_of_day(), operator+(), operator<<(), operator==(), gui2::tcustom_tod::pre_show(), display::read(), display::update_tod(), and display::write().
1.8.8