All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
osl::rating::Chase Class Reference

#include <feature.h>

Inheritance diagram for osl::rating::Chase:
Inheritance graph
[legend]
Collaboration diagram for osl::rating::Chase:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Definition at line 142 of file rating/feature.h.


Member Enumeration Documentation

Enumerator:
CAPTURE 
DROP 
ESCAPE 
OTHER 

Definition at line 145 of file rating/feature.h.


Constructor & Destructor Documentation

osl::rating::Chase::Chase ( Ptype  s,
Ptype  t,
bool  d,
OpponentType  o 
) [inline]

Definition at line 151 of file rating/feature.h.


Member Function Documentation

bool osl::rating::Chase::match ( const NumEffectState &  state,
Move  move,
const RatingEnv env 
) const [inline, virtual]
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.


Member Data Documentation

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().

Definition at line 147 of file rating/feature.h.

Definition at line 147 of file rating/feature.h.

Referenced by match().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines