libsgfc++ 2.0.1
A C++ library that uses SGFC to read and write SGF (Smart Game Format) data.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LibSgfcPlusPlus::ISgfcGoStone Class Referenceabstract

The ISgfcGoStone interface represents a Go stone. More...

#include <ISgfcGoStone.h>

Inheritance diagram for LibSgfcPlusPlus::ISgfcGoStone:
LibSgfcPlusPlus::SgfcGoStone

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< ISgfcGoPointGetLocation () const =0
 Returns the location of the stone on the Go board.
 

Detailed Description

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.

Member Function Documentation

◆ GetColor()

virtual SgfcColor LibSgfcPlusPlus::ISgfcGoStone::GetColor ( ) const
pure virtual

Returns the color of the stone.

Implemented in LibSgfcPlusPlus::SgfcGoStone.

◆ GetLocation()

virtual std::shared_ptr< ISgfcGoPoint > LibSgfcPlusPlus::ISgfcGoStone::GetLocation ( ) const
pure virtual

Returns the location of the stone on the Go board.

Implemented in LibSgfcPlusPlus::SgfcGoStone.


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