The Battle for Wesnoth  1.15.0+dev
Public Member Functions | Public Attributes | List of all members
statistics::stats::hitrate_t Struct Reference

#include <statistics.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 62 of file statistics.hpp.

Constructor & Destructor Documentation

◆ hitrate_t() [1/2]

statistics::stats::hitrate_t::hitrate_t ( )
default

◆ hitrate_t() [2/2]

statistics::stats::hitrate_t::hitrate_t ( const config cfg)
explicit

Definition at line 830 of file statistics.cpp.

Member Function Documentation

◆ write()

config statistics::stats::hitrate_t::write ( ) const

Definition at line 825 of file statistics.cpp.

Member Data Documentation

◆ hits

int statistics::stats::hitrate_t::hits

Definition at line 65 of file statistics.hpp.

Referenced by operator<<().

◆ strikes

int statistics::stats::hitrate_t::strikes

Definition at line 64 of file statistics.hpp.

Referenced by operator<<().


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