The Battle for Wesnoth  1.15.0+dev
Public Member Functions | Public Attributes | List of all members
terrain_builder::tile::rule_image_rand Struct Reference

Represent a rule_image applied with a random seed. More...

#include <builder.hpp>

Public Member Functions

 rule_image_rand (const rule_image *r_i, unsigned int rnd)
 
const rule_imageoperator-> () const
 
bool operator< (const rule_image_rand &o) const
 sort by layer first then by basey More...
 

Public Attributes

const rule_imageri
 
unsigned int rand
 

Detailed Description

Represent a rule_image applied with a random seed.

Definition at line 341 of file builder.hpp.

Constructor & Destructor Documentation

◆ rule_image_rand()

terrain_builder::tile::rule_image_rand::rule_image_rand ( const rule_image r_i,
unsigned int  rnd 
)
inline

Definition at line 343 of file builder.hpp.

Member Function Documentation

◆ operator->()

const rule_image* terrain_builder::tile::rule_image_rand::operator-> ( ) const
inline

Definition at line 349 of file builder.hpp.

◆ operator<()

bool terrain_builder::tile::rule_image_rand::operator< ( const rule_image_rand o) const
inline

sort by layer first then by basey

Definition at line 354 of file builder.hpp.

References terrain_builder::rule_image::basey, terrain_builder::rule_image::layer, and ri.

Member Data Documentation

◆ rand

unsigned int terrain_builder::tile::rule_image_rand::rand

Definition at line 360 of file builder.hpp.

◆ ri

const rule_image* terrain_builder::tile::rule_image_rand::ri

Definition at line 359 of file builder.hpp.

Referenced by operator<().


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