#include <feature.h>
Public Types | |
enum | OpponentType { CAPTURE, DROP, ESCAPE, OTHER } |
Public Member Functions | |
Chase (Ptype s, Ptype t, bool d, OpponentType o) | |
bool | match (const NumEffectState &state, Move move, const RatingEnv &env) const |
Static Public Member Functions | |
static const std::string | name (Ptype, Ptype, bool, OpponentType) |
Private Attributes | |
Ptype | self |
Ptype | target |
bool | drop |
OpponentType | opponent_type |
Definition at line 142 of file rating/feature.h.
Definition at line 145 of file rating/feature.h.
osl::rating::Chase::Chase | ( | Ptype | s, |
Ptype | t, | ||
bool | d, | ||
OpponentType | o | ||
) | [inline] |
Definition at line 151 of file rating/feature.h.
bool osl::rating::Chase::match | ( | const NumEffectState & | state, |
Move | move, | ||
const RatingEnv & | env | ||
) | const [inline, virtual] |
Implements osl::rating::Feature.
Definition at line 153 of file rating/feature.h.
References CAPTURE, osl::Move::capturePtype(), DROP, drop, ESCAPE, osl::Move::from(), osl::rating::RatingEnv::history, osl::Move::isDrop(), osl::Move::isNormal(), opponent_type, OTHER, osl::Move::ptype(), osl::PTYPE_EMPTY, osl::Move::ptypeO(), target, and osl::Move::to().
const std::string osl::rating::Chase::name | ( | Ptype | self, |
Ptype | target, | ||
bool | drop, | ||
OpponentType | opponent_type | ||
) | [static] |
Definition at line 142 of file rating/feature.cc.
References osl::PtypeTable::getCsaName(), and osl::Ptype_Table.
bool osl::rating::Chase::drop [private] |
Definition at line 148 of file rating/feature.h.
Referenced by match().
Definition at line 149 of file rating/feature.h.
Referenced by match().
Ptype osl::rating::Chase::self [private] |
Definition at line 147 of file rating/feature.h.
Ptype osl::rating::Chase::target [private] |
Definition at line 147 of file rating/feature.h.
Referenced by match().