My Project
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
osl::EffectContent Class Reference

#include <effectContent.h>

Public Member Functions

 EffectContent ()
 
 EffectContent (Offset offset)
 
bool hasEffect () const
 短い利きがあるか,間がemptyなら長い利きがある
 
bool hasUnblockableEffect () const
 短い利きがある.長い利きの隣も含む
 
const Offset offset () const
 返り値が0なら長い利きがない, 0以外なら辿るのに必要なoffset (2005/3/25 に仕様変更 - 長い利きだが隣の場合もoffsetを返す)
 
bool hasBlockableEffect () const
 2005/3/25に変更.
 
int intValue () const
 

Static Public Member Functions

static const EffectContent DIRECT ()
 
static const EffectContent DIRECT (Offset offset)
 隣だが,offsetも与える
 

Private Member Functions

 EffectContent (int value)
 

Private Attributes

int effect
 

Detailed Description

Definition at line 10 of file effectContent.h.

Constructor & Destructor Documentation

◆ EffectContent() [1/3]

osl::EffectContent::EffectContent ( int  value)
inlineprivate

Definition at line 13 of file effectContent.h.

◆ EffectContent() [2/3]

osl::EffectContent::EffectContent ( )
inline

Definition at line 17 of file effectContent.h.

Referenced by DIRECT(), and DIRECT().

◆ EffectContent() [3/3]

osl::EffectContent::EffectContent ( Offset  offset)
inlineexplicit

Definition at line 20 of file effectContent.h.

Member Function Documentation

◆ DIRECT() [1/2]

static const EffectContent osl::EffectContent::DIRECT ( )
inlinestatic

Definition at line 24 of file effectContent.h.

References EffectContent().

Referenced by osl::PtypeTable::init(), and osl::PtypeTable::PtypeTable().

◆ DIRECT() [2/2]

static const EffectContent osl::EffectContent::DIRECT ( Offset  offset)
inlinestatic

隣だが,offsetも与える

Definition at line 28 of file effectContent.h.

References EffectContent(), osl::Offset::intValue(), and offset().

◆ hasBlockableEffect()

bool osl::EffectContent::hasBlockableEffect ( ) const
inline

2005/3/25に変更.

Definition at line 48 of file effectContent.h.

References effect.

◆ hasEffect()

bool osl::EffectContent::hasEffect ( ) const
inline

◆ hasUnblockableEffect()

bool osl::EffectContent::hasUnblockableEffect ( ) const
inline

◆ intValue()

int osl::EffectContent::intValue ( ) const
inline

Definition at line 51 of file effectContent.h.

References effect.

Referenced by osl::operator<(), and osl::operator==().

◆ offset()

const Offset osl::EffectContent::offset ( ) const
inline

返り値が0なら長い利きがない, 0以外なら辿るのに必要なoffset (2005/3/25 に仕様変更 - 長い利きだが隣の場合もoffsetを返す)

Definition at line 44 of file effectContent.h.

References effect, and osl::Offset::makeDirect().

Referenced by DIRECT(), osl::NumEffectState::hasEffectIf(), osl::SimpleState::isAlmostValidMove(), osl::move_probability::BreakThreatmate::isDefendingThreatmate(), and osl::SimpleState::isValidMoveByRule().

Member Data Documentation

◆ effect

int osl::EffectContent::effect
private

Definition at line 12 of file effectContent.h.

Referenced by hasBlockableEffect(), hasEffect(), hasUnblockableEffect(), intValue(), and offset().


The documentation for this class was generated from the following file: