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

#include <pattern.h>

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

List of all members.

Public Member Functions

 Pattern (Direction d, Ptype s, Ptype t, bool ss, int attack, int defense)
 Pattern (Direction d, Direction d2, Ptype s, Ptype t, bool ss, int attack, int defense)
bool match (const NumEffectState &state, Move move, const RatingEnv &env) const

Static Public Member Functions

static Square nextSquare (Player player, Square start, Direction direction, Direction direction2)
static Square nextSquare (Move move, Direction direction, Direction direction2)

Static Public Attributes

static const Direction INVALID = LONG_UL

Static Private Member Functions

static const std::string name (Direction d, Direction d2, Ptype self, Ptype target, bool same)

Private Attributes

Direction direction
Direction direction2
Ptype self
Ptype target
bool same

Detailed Description

Definition at line 13 of file pattern.h.


Constructor & Destructor Documentation

osl::rating::Pattern::Pattern ( Direction  d,
Ptype  s,
Ptype  t,
bool  ss,
int  attack,
int  defense 
) [inline]

Definition at line 23 of file pattern.h.

osl::rating::Pattern::Pattern ( Direction  d,
Direction  d2,
Ptype  s,
Ptype  t,
bool  ss,
int  attack,
int  defense 
) [inline]

Definition at line 28 of file pattern.h.


Member Function Documentation

bool osl::rating::Pattern::match ( const NumEffectState &  state,
Move  move,
const RatingEnv env 
) const [inline, virtual]
const std::string osl::rating::Pattern::name ( Direction  d,
Direction  d2,
Ptype  self,
Ptype  target,
bool  same 
) [static, private]

Definition at line 6 of file pattern.cc.

References osl::PtypeTable::getCsaName(), INVALID, and osl::Ptype_Table.

static Square osl::rating::Pattern::nextSquare ( Player  player,
Square  start,
Direction  direction,
Direction  direction2 
) [inline, static]
static Square osl::rating::Pattern::nextSquare ( Move  move,
Direction  direction,
Direction  direction2 
) [inline, static]

Definition at line 40 of file pattern.h.

References direction, direction2, nextSquare(), osl::Move::player(), and osl::Move::to().


Member Data Documentation

Definition at line 18 of file pattern.h.

Referenced by match(), and nextSquare().

Definition at line 18 of file pattern.h.

Referenced by match(), and nextSquare().

Definition at line 16 of file pattern.h.

Referenced by osl::rating::PatternGroup::name(), name(), and nextSquare().

Definition at line 20 of file pattern.h.

Referenced by match().

Definition at line 19 of file pattern.h.

Definition at line 19 of file pattern.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