The Battle for Wesnoth  1.17.12+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 61 of file statistics.hpp.

Constructor & Destructor Documentation

◆ hitrate_t() [1/2]

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

◆ hitrate_t() [2/2]

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

Definition at line 834 of file statistics.cpp.

Member Function Documentation

◆ write()

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

Definition at line 829 of file statistics.cpp.

Member Data Documentation

◆ hits

int statistics::stats::hitrate_t::hits

Definition at line 64 of file statistics.hpp.

Referenced by operator<<().

◆ strikes

int statistics::stats::hitrate_t::strikes

Definition at line 63 of file statistics.hpp.

Referenced by operator<<().

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