• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

kigo

  • Kigo
  • Stone
Public Member Functions | Static Public Attributes | List of all members
Kigo::Stone Class Reference

#include <stone.h>

Public Member Functions

 Stone (char x=0, int y=0, float value=0)
 
 Stone (const QString &stone, float value=0)
 
 Stone (const Stone &other)
 
bool isValid () const
 
Stone & operator= (const Stone &other)
 
QByteArray toLatin1 () const
 
QString toString () const
 
float value () const
 
char x () const
 
int y () const
 

Static Public Attributes

static Stone Invalid = Stone()
 
static Stone Pass = Stone()
 

Detailed Description

This class represents a stone on a field of the game board.

Definition at line 31 of file stone.h.

Constructor & Destructor Documentation

Kigo::Stone::Stone ( char  x = 0,
int  y = 0,
float  value = 0 
)
explicit

Standard constructor.

Can optionally set from the given coordinates.

Parameters
xThe x coordinate of the stone
yThe y coordinate of the stone

Definition at line 30 of file stone.cpp.

Kigo::Stone::Stone ( const QString &  stone,
float  value = 0 
)
explicit

Constructor to set from a stone given as a string.

Parameters
stoneThe stone as string

Definition at line 35 of file stone.cpp.

Kigo::Stone::Stone ( const Stone &  other)

Definition at line 44 of file stone.cpp.

Member Function Documentation

bool Kigo::Stone::isValid ( ) const

Definition at line 57 of file stone.cpp.

Stone & Kigo::Stone::operator= ( const Stone &  other)

Definition at line 49 of file stone.cpp.

QByteArray Kigo::Stone::toLatin1 ( ) const

Definition at line 63 of file stone.cpp.

QString Kigo::Stone::toString ( ) const

Definition at line 68 of file stone.cpp.

float Kigo::Stone::value ( ) const
inline

Definition at line 61 of file stone.h.

char Kigo::Stone::x ( ) const
inline

Definition at line 59 of file stone.h.

int Kigo::Stone::y ( ) const
inline

Definition at line 60 of file stone.h.

Member Data Documentation

Stone Kigo::Stone::Invalid = Stone()
static

A standard invalid move object.

Definition at line 35 of file stone.h.

Stone Kigo::Stone::Pass = Stone()
static

A standard pass move object.

Definition at line 34 of file stone.h.


The documentation for this class was generated from the following files:
  • stone.h
  • stone.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kigo

Skip menu "kigo"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal