libsgfc++ 2.0.1
A C++ library that uses SGFC to read and write SGF (Smart Game Format) data.
|
The SgfcGoStone class provides an implementation of the ISgfcGoStone interface. See the interface header file for documentation. More...
#include <SgfcGoStone.h>
Public Member Functions | |
SgfcGoStone (SgfcColor color, std::shared_ptr< ISgfcGoPoint > location) | |
Initializes a newly constructed SgfcGoStone object. color and location indicate the color and location of the stone. | |
virtual | ~SgfcGoStone () |
Destroys and cleans up the SgfcGoStone object. | |
virtual SgfcColor | GetColor () const override |
Returns the color of the stone. | |
virtual std::shared_ptr< ISgfcGoPoint > | GetLocation () const override |
Returns the location of the stone on the Go board. | |
Public Member Functions inherited from LibSgfcPlusPlus::ISgfcGoStone | |
ISgfcGoStone () | |
Initializes a newly constructed ISgfcGoStone object. | |
virtual | ~ISgfcGoStone () |
Destroys and cleans up the ISgfcGoStone object. | |
The SgfcGoStone class provides an implementation of the ISgfcGoStone interface. See the interface header file for documentation.
LibSgfcPlusPlus::SgfcGoStone::SgfcGoStone | ( | SgfcColor | color, |
std::shared_ptr< ISgfcGoPoint > | location ) |
Initializes a newly constructed SgfcGoStone object. color and location indicate the color and location of the stone.
std::invalid_argument | Is thrown if location is nullptr. |
|
overridevirtual |
Returns the color of the stone.
Implements LibSgfcPlusPlus::ISgfcGoStone.
|
overridevirtual |
Returns the location of the stone on the Go board.
Implements LibSgfcPlusPlus::ISgfcGoStone.