All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Types | Static Public Member Functions | Static Private Member Functions | Static Private Attributes
osl::effect_util::SendOffSquare Struct Reference

送り金のような玉で取ると利きがはずれる駒が発生するマスを調査 More...

#include <sendOffSquare.h>

Collaboration diagram for osl::effect_util::SendOffSquare:
Collaboration graph
[legend]

List of all members.

Classes

struct  Table

Public Types

typedef uint8_t SendOff8

Static Public Member Functions

template<Player Attack>
static bool onlyOneSupport (const NumEffectState &state, Square target)
template<Player Attack>
static SendOff8 find (const NumEffectState &state, Square king_position, Square8 &out)
static SendOff8 find (Player attack, const NumEffectState &state, Square king_position, Square8 &out)
static SendOff8 invalidData ()
static void unpack (SendOff8, Square king, Square8 &out)

Static Private Member Functions

template<Player Attack>
static void testSquare (const NumEffectState &state, Square candidate, int id, int &out)

Static Private Attributes

static const Table table

Detailed Description

送り金のような玉で取ると利きがはずれる駒が発生するマスを調査

Definition at line 16 of file sendOffSquare.h.


Member Typedef Documentation

Definition at line 18 of file sendOffSquare.h.


Member Function Documentation

template<osl::Player Attack>
osl::effect_util::SendOffSquare::SendOff8 osl::effect_util::SendOffSquare::find ( const NumEffectState &  state,
Square  king_position,
Square8 &  out 
) [static]

Definition at line 63 of file sendOffSquare.cc.

References osl::alt().

osl::effect_util::SendOffSquare::SendOff8 osl::effect_util::SendOffSquare::find ( Player  attack,
const NumEffectState &  state,
Square  king_position,
Square8 &  out 
) [static]

Definition at line 99 of file sendOffSquare.cc.

References osl::BLACK, and out.

Definition at line 34 of file sendOffSquare.h.

template<Player Attack>
static bool osl::effect_util::SendOffSquare::onlyOneSupport ( const NumEffectState &  state,
Square  target 
) [inline, static]

Definition at line 20 of file sendOffSquare.h.

References osl::alt(), osl::Piece::isOnBoardByOwner(), and target.

template<Player Attack>
static void osl::effect_util::SendOffSquare::testSquare ( const NumEffectState &  state,
Square  candidate,
int  id,
int &  out 
) [inline, static, private]

Definition at line 46 of file sendOffSquare.h.

void osl::effect_util::SendOffSquare::unpack ( SendOff8  flags8,
Square  king,
Square8 &  out 
) [static]

Definition at line 86 of file sendOffSquare.cc.

References osl::misc::BitOp::takeOneBit().


Member Data Documentation

Definition at line 44 of file sendOffSquare.h.


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