The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
tod_color Struct Reference

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
 

Detailed Description

Small struct to store and manipulate ToD colors.

Definition at line 30 of file time_of_day.hpp.

Constructor & Destructor Documentation

tod_color::tod_color ( int  red = 0,
int  green = 0,
int  blue = 0 
)
inlineexplicit

Definition at line 31 of file time_of_day.hpp.

Referenced by operator+().

Member Function Documentation

bool tod_color::is_zero ( ) const
inline

Definition at line 33 of file time_of_day.hpp.

Referenced by display::get_terrain_images().

bool tod_color::operator!= ( const tod_color o) const
inline

Definition at line 34 of file time_of_day.hpp.

References operator==().

void tod_color::operator*= ( float  x)
inline

Definition at line 36 of file time_of_day.hpp.

tod_color tod_color::operator+ ( const tod_color o) const
inline

Definition at line 35 of file time_of_day.hpp.

References b, g, r, and tod_color().

bool tod_color::operator== ( const tod_color o) const
inline

Definition at line 32 of file time_of_day.hpp.

References b, g, and r.

Referenced by operator!=().

Member Data Documentation

int tod_color::b
int tod_color::g
int tod_color::r

The documentation for this struct was generated from the following file: