libsgfc++ 2.0.1
A C++ library that uses SGFC to read and write SGF (Smart Game Format) data.
|
The ISgfcGoStone interface represents a Go stone. More...
#include <ISgfcGoStone.h>
Public Member Functions | |
ISgfcGoStone () | |
Initializes a newly constructed ISgfcGoStone object. | |
virtual | ~ISgfcGoStone () |
Destroys and cleans up the ISgfcGoStone object. | |
virtual SgfcColor | GetColor () const =0 |
Returns the color of the stone. | |
virtual std::shared_ptr< ISgfcGoPoint > | GetLocation () const =0 |
Returns the location of the stone on the Go board. | |
The ISgfcGoStone interface represents a Go stone.
A Go stone on a Go board is defined by its color and by its location on the Go board. ISgfcGoStone stores an SgfcColor value and a reference to an ISgfcGoPoint object to record these two pieces of information.
|
pure virtual |
Returns the color of the stone.
Implemented in LibSgfcPlusPlus::SgfcGoStone.
|
pure virtual |
Returns the location of the stone on the Go board.
Implemented in LibSgfcPlusPlus::SgfcGoStone.