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 defense.

Referenced by match(), and osl::rating::LongTarget::name().

Member Data Documentation

§ attack

int osl::rating::CountEffect2::attack

§ defense

int osl::rating::CountEffect2::defense

Definition at line 17 of file countEffect2.h.

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

§ Max

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

Definition at line 16 of file countEffect2.h.


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