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

KShisen

Public Member Functions | Public Attributes | List of all members
PossibleMove Class Reference

#include <board.h>

Public Member Functions

 PossibleMove (Path &path)
 
 PossibleMove (Path &path, Path &slide)
 
void Debug () const
 
bool isInPath (int x, int y) const
 

Public Attributes

bool m_hasSlide
 
Path m_path
 
Path m_slide
 

Detailed Description

Class holding a possible move and its functions.

A PossibleMove is a connection Path between two tiles and optionally a slide Path. Sometimes for a couple of tiles to match there may be multiple possible moves for the player to choose between.

Definition at line 71 of file board.h.

Constructor & Destructor Documentation

PossibleMove::PossibleMove ( Path &  path)
inline

Definition at line 74 of file board.h.

PossibleMove::PossibleMove ( Path &  path,
Path &  slide 
)
inline

Definition at line 76 of file board.h.

Member Function Documentation

void PossibleMove::Debug ( ) const
inline

Definition at line 81 of file board.h.

bool PossibleMove::isInPath ( int  x,
int  y 
) const

Definition at line 43 of file board.cpp.

Member Data Documentation

bool PossibleMove::m_hasSlide

flag set if the move requires a slide

Definition at line 97 of file board.h.

Path PossibleMove::m_path

path used to connect the two tiles

Definition at line 96 of file board.h.

Path PossibleMove::m_slide

path representing the movement of the last sliding tile

Definition at line 98 of file board.h.


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

KDE's Doxygen guidelines are available online.

KShisen

Skip menu "KShisen"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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