Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

StoneFieldState Class Reference

#include </home/clem/local/src/opie/noncore/games/zsame/StoneField.h>

List of all members.

Public Member Functions

 StoneFieldState (const StoneField &stonefield)
 ~StoneFieldState ()
void restore (StoneField &stonefield) const

Private Attributes

unsigned char * field
int colors
unsigned int board
unsigned int score
int gameover


Constructor & Destructor Documentation

StoneFieldState::StoneFieldState const StoneField stonefield  ) 
 

Definition at line 24 of file StoneField.cpp.

References StoneField::board, board, Stone::color, StoneField::colors, colors, StoneField::field, field, StoneField::gameover, gameover, i, StoneField::maxstone, StoneField::score, and score.

StoneFieldState::~StoneFieldState  ) 
 

Definition at line 36 of file StoneField.cpp.

References field.


Member Function Documentation

void StoneFieldState::restore StoneField stonefield  )  const
 

Definition at line 41 of file StoneField.cpp.

References board, StoneField::board, Stone::changed, Stone::color, colors, StoneField::colors, field, StoneField::field, gameover, StoneField::gameover, i, StoneField::marked, Stone::marked, StoneField::maxstone, score, and StoneField::score.

Referenced by StoneField::undo().


Member Data Documentation

unsigned int StoneFieldState::board [private]
 

Definition at line 42 of file StoneField.h.

Referenced by restore(), and StoneFieldState().

int StoneFieldState::colors [private]
 

Definition at line 41 of file StoneField.h.

Referenced by restore(), and StoneFieldState().

unsigned char* StoneFieldState::field [private]
 

Definition at line 39 of file StoneField.h.

Referenced by restore(), StoneFieldState(), and ~StoneFieldState().

int StoneFieldState::gameover [private]
 

Definition at line 44 of file StoneField.h.

Referenced by restore(), and StoneFieldState().

unsigned int StoneFieldState::score [private]
 

Definition at line 43 of file StoneField.h.

Referenced by restore(), and StoneFieldState().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:52:31 2005 for OPIE by  doxygen 1.4.2