My Project
Static Public Attributes | List of all members
osl::PtypeDirectionTraits< T, D > Struct Template Reference

#include <ptypeTraits.h>

Static Public Attributes

static const bool hasMove =(PtypeTraits<T>::moveMask & DirectionTraits<D>::mask)!=0
 
static const bool canMove
 
static const MoveConstraint moveConstraint
 

Detailed Description

template<Ptype T, Direction D>
struct osl::PtypeDirectionTraits< T, D >

Definition at line 339 of file ptypeTraits.h.

Member Data Documentation

◆ canMove

template<Ptype T, Direction D>
const bool osl::PtypeDirectionTraits< T, D >::canMove
static
Initial value:
=
(PtypeTraits<T>::moveMask & DirectionTraits<D>::mask)!=0 ||
(PtypeTraits<T>::moveMask &
DirectionTraits<DirectionTraits<D>::longDir>::mask)!=0
static const unsigned int mask
static const Direction longDir

Definition at line 342 of file ptypeTraits.h.

◆ hasMove

template<Ptype T, Direction D>
const bool osl::PtypeDirectionTraits< T, D >::hasMove =(PtypeTraits<T>::moveMask & DirectionTraits<D>::mask)!=0
static

Definition at line 341 of file ptypeTraits.h.

◆ moveConstraint

template<Ptype T, Direction D>
const MoveConstraint osl::PtypeDirectionTraits< T, D >::moveConstraint
static
Initial value:
=
? (PtypeDirectionTraits<PtypeFuns<T>::promotePtype,D>::canMove
: (PtypeDirectionTraits<PtypeFuns<T>::promotePtype,D>::canMove
@ NoConstraint
promoteしていようが,いまいが可能
@ OnlyBasic
promoteしていない駒の場合にのみ可能
@ OnlyPromoted
promote済みの駒の場合にのみ可能
@ CannotMove
可能でない
static const bool canMove

Definition at line 346 of file ptypeTraits.h.


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