The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Public Attributes | List of all members
statistics_record::stats_t::hitrate_t Struct Reference

#include <statistics_record.hpp>

Public Member Functions

 hitrate_t ()=default
 
 hitrate_t (const config &cfg)
 
config write () const
 

Public Attributes

int strikes
 
int hits
 

Detailed Description

Definition at line 63 of file statistics_record.hpp.

Constructor & Destructor Documentation

◆ hitrate_t() [1/2]

statistics_record::stats_t::hitrate_t::hitrate_t ( )
default

◆ hitrate_t() [2/2]

statistics_record::stats_t::hitrate_t::hitrate_t ( const config cfg)
explicit

Definition at line 460 of file statistics_record.cpp.

Member Function Documentation

◆ write()

config statistics_record::stats_t::hitrate_t::write ( ) const

Definition at line 455 of file statistics_record.cpp.

References hits, and strikes.

Member Data Documentation

◆ hits

int statistics_record::stats_t::hitrate_t::hits

Definition at line 66 of file statistics_record.hpp.

Referenced by operator<<(), and write().

◆ strikes

int statistics_record::stats_t::hitrate_t::strikes

Definition at line 65 of file statistics_record.hpp.

Referenced by operator<<(), and write().


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