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::SgfcGoStone Class Reference

The SgfcGoStone class provides an implementation of the ISgfcGoStone interface. See the interface header file for documentation. More...

#include <SgfcGoStone.h>

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

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< ISgfcGoPointGetLocation () 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.
 

Detailed Description

The SgfcGoStone class provides an implementation of the ISgfcGoStone interface. See the interface header file for documentation.

Constructor & Destructor Documentation

◆ SgfcGoStone()

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.

Exceptions
std::invalid_argumentIs thrown if location is nullptr.

Member Function Documentation

◆ GetColor()

SgfcColor LibSgfcPlusPlus::SgfcGoStone::GetColor ( ) const
overridevirtual

Returns the color of the stone.

Implements LibSgfcPlusPlus::ISgfcGoStone.

◆ GetLocation()

std::shared_ptr< ISgfcGoPoint > LibSgfcPlusPlus::SgfcGoStone::GetLocation ( ) const
overridevirtual

Returns the location of the stone on the Go board.

Implements LibSgfcPlusPlus::ISgfcGoStone.


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