Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Private Member Functions | Private Attributes

GoRestoreRepetitionAndSuicide Class Reference

Used to alter state of repetition and self-removal for certain periods of play. More...

#include <GoBoardUtil.h>

List of all members.

Public Member Functions

 GoRestoreRepetitionAndSuicide (GoBoard &board, bool allowAnyRepetition, bool allowKoRepetition, bool allowSuicide)
 ~GoRestoreRepetitionAndSuicide ()

Private Member Functions

 GoRestoreRepetitionAndSuicide (const GoRestoreRepetitionAndSuicide &)
 Not implemented.
GoRestoreRepetitionAndSuicideoperator= (const GoRestoreRepetitionAndSuicide &)
 Not implemented.

Private Attributes

GoBoardm_board
bool m_oldAnyRepetition
 arbitrary repetition for both players
bool m_oldKoRepetition
bool m_oldSuicide
 whether self-removal is allowed

Detailed Description

Used to alter state of repetition and self-removal for certain periods of play.

Restores the settings to the previous values in an exception-safe way. To use it, just declare a RestoreRepetitionAndRemoval variable on the stack for the desired scope.

Definition at line 1025 of file GoBoardUtil.h.


Constructor & Destructor Documentation

GoRestoreRepetitionAndSuicide::GoRestoreRepetitionAndSuicide ( GoBoard board,
bool  allowAnyRepetition,
bool  allowKoRepetition,
bool  allowSuicide 
)
GoRestoreRepetitionAndSuicide::~GoRestoreRepetitionAndSuicide (  ) 
GoRestoreRepetitionAndSuicide::GoRestoreRepetitionAndSuicide ( const GoRestoreRepetitionAndSuicide  )  [private]

Not implemented.


Member Function Documentation

GoRestoreRepetitionAndSuicide& GoRestoreRepetitionAndSuicide::operator= ( const GoRestoreRepetitionAndSuicide  )  [private]

Not implemented.


Member Data Documentation

arbitrary repetition for both players

Definition at line 1051 of file GoBoardUtil.h.

Referenced by ~GoRestoreRepetitionAndSuicide().

Definition at line 1053 of file GoBoardUtil.h.

Referenced by ~GoRestoreRepetitionAndSuicide().

whether self-removal is allowed

Definition at line 1056 of file GoBoardUtil.h.

Referenced by ~GoRestoreRepetitionAndSuicide().


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


Sun Mar 13 2011 Doxygen 1.7.1