• 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
Move Class Reference

#include <board.h>

Public Member Functions

 Move (int x1, int y1, int x2, int y2, int tile)
 
 Move (int x1, int y1, int x2, int y2, int tile1, int tile2)
 
 Move (int x1, int y1, int x2, int y2, int tile1, int tile2, int slideX1, int slideY1, int slideX2, int slideY2)
 

Public Attributes

bool m_hasSlide
 
int m_slideX1
 
int m_slideX2
 
int m_slideY1
 
int m_slideY2
 
int m_tile1
 
int m_tile2
 
int m_x1
 
int m_x2
 
int m_y1
 
int m_y2
 

Detailed Description

Class holding a move on the board made by the player.

Contains all the information needed to undo or redo a move.

Definition at line 112 of file board.h.

Constructor & Destructor Documentation

Move::Move ( int  x1,
int  y1,
int  x2,
int  y2,
int  tile 
)
inline

Definition at line 115 of file board.h.

Move::Move ( int  x1,
int  y1,
int  x2,
int  y2,
int  tile1,
int  tile2 
)
inline

Definition at line 117 of file board.h.

Move::Move ( int  x1,
int  y1,
int  x2,
int  y2,
int  tile1,
int  tile2,
int  slideX1,
int  slideY1,
int  slideX2,
int  slideY2 
)
inline

Definition at line 119 of file board.h.

Member Data Documentation

bool Move::m_hasSlide

if we performed a slide during the move

Definition at line 125 of file board.h.

int Move::m_slideX1

original x coordinate of the last slided tile

Definition at line 126 of file board.h.

int Move::m_slideX2

final x coordinate of the last slided tile

Definition at line 128 of file board.h.

int Move::m_slideY1

original y coordinate of the last slided tile

Definition at line 127 of file board.h.

int Move::m_slideY2

final y coordinate of the last slided tile

Definition at line 129 of file board.h.

int Move::m_tile1

type of tile at first set of coordinates

Definition at line 123 of file board.h.

int Move::m_tile2

type of tile at second set of coordinates

Definition at line 124 of file board.h.

int Move::m_x1

Definition at line 122 of file board.h.

int Move::m_x2

Definition at line 122 of file board.h.

int Move::m_y1

Definition at line 122 of file board.h.

int Move::m_y2

coordinates of the two tiles that matched

Definition at line 122 of file board.h.


The documentation for this class was generated from the following file:
  • board.h
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