My Project
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
osl::rating::CountEffect2 Struct Reference

#include <countEffect2.h>

Inheritance diagram for osl::rating::CountEffect2:
osl::rating::AttackKing8 osl::rating::FromEffect osl::rating::LongTarget osl::rating::Pattern

Public Member Functions

 CountEffect2 (int a, int d)
 
bool match (const NumEffectState &state, Square position, const RatingEnv &env) const
 

Static Public Member Functions

static std::pair< int, int > count (const NumEffectState &state, Square position, const RatingEnv &env)
 
static std::string name (int attack, int defense)
 
static int index (const NumEffectState &state, Square position, const RatingEnv &env)
 

Public Attributes

int attack
 
int defense
 

Static Public Attributes

static const int Max = 2
 

Detailed Description

Definition at line 14 of file countEffect2.h.

Constructor & Destructor Documentation

◆ CountEffect2()

osl::rating::CountEffect2::CountEffect2 ( int  a,
int  d 
)
inline

Definition at line 18 of file countEffect2.h.

Member Function Documentation

◆ count()

static std::pair< int, int > osl::rating::CountEffect2::count ( const NumEffectState state,
Square  position,
const RatingEnv env 
)
inlinestatic

◆ index()

static int osl::rating::CountEffect2::index ( const NumEffectState state,
Square  position,
const RatingEnv env 
)
inlinestatic

◆ match()

bool osl::rating::CountEffect2::match ( const NumEffectState state,
Square  position,
const RatingEnv env 
) const
inline

◆ name()

std::string osl::rating::CountEffect2::name ( int  attack,
int  defense 
)
static

Definition at line 9 of file countEffect2.cc.

References attack, count(), and defense.

Referenced by osl::rating::LongTarget::name().

Member Data Documentation

◆ attack

int osl::rating::CountEffect2::attack

Definition at line 17 of file countEffect2.h.

Referenced by count(), match(), and name().

◆ defense

int osl::rating::CountEffect2::defense

Definition at line 17 of file countEffect2.h.

Referenced by count(), match(), and name().

◆ Max

const int osl::rating::CountEffect2::Max = 2
static

Definition at line 16 of file countEffect2.h.

Referenced by count(), and index().


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