Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoBoardRestorer Class Reference

#include <GoBoardRestorer.h>

List of all members.


Detailed Description

Remembers the state of a board and restores it in its destructor.

Definition at line 14 of file GoBoardRestorer.h.

Public Member Functions

 GoBoardRestorer (GoBoard &bd)
 ~GoBoardRestorer ()

Private Types

typedef SgSList< GoPlayerMove,
GO_MAX_NUM_MOVES
MoveList

Private Attributes

GoBoardm_bd
int m_size
GoRules m_rules
MoveList m_moves


Member Typedef Documentation

typedef SgSList<GoPlayerMove,GO_MAX_NUM_MOVES> GoBoardRestorer::MoveList [private]

Definition at line 22 of file GoBoardRestorer.h.


Constructor & Destructor Documentation

GoBoardRestorer::GoBoardRestorer ( GoBoard bd  ) 

Definition at line 16 of file GoBoardRestorer.cpp.

References m_moves, GoBoard::Move(), GoBoard::MoveNumber(), and SgSList< T, SIZE >::PushBack().

GoBoardRestorer::~GoBoardRestorer (  ) 

Definition at line 25 of file GoBoardRestorer.cpp.

References GoBoard::Init(), SgSList< GoPlayerMove, GO_MAX_NUM_MOVES >::Iterator, m_bd, m_moves, m_size, GoBoard::Play(), GoBoard::Size(), and GoBoardUtil::UndoAll().


Member Data Documentation

GoBoard& GoBoardRestorer::m_bd [private]

Definition at line 24 of file GoBoardRestorer.h.

Referenced by ~GoBoardRestorer().

MoveList GoBoardRestorer::m_moves [private]

Definition at line 30 of file GoBoardRestorer.h.

Referenced by GoBoardRestorer(), and ~GoBoardRestorer().

GoRules GoBoardRestorer::m_rules [private]

Definition at line 28 of file GoBoardRestorer.h.

int GoBoardRestorer::m_size [private]

Definition at line 26 of file GoBoardRestorer.h.

Referenced by ~GoBoardRestorer().


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


17 Jun 2010 Doxygen 1.4.7