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

granatier

Public Member Functions | List of all members
Cell Class Reference

#include <cell.h>

Public Member Functions

 Cell ()
 
 ~Cell ()
 
QList< Element * > getElements () const
 
QList< Element * > getElements (Granatier::Element::Type type) const
 
Granatier::Cell::Type getType () const
 
bool isWalkable (Element *p_element) const
 
void removeElement (Element *p_element)
 
void setElement (Element *p_element)
 
void setType (Granatier::Cell::Type p_type)
 

Detailed Description

This class represents a Cell of the Arena.

Definition at line 29 of file cell.h.

Constructor & Destructor Documentation

Cell::Cell ( )

Creates a new Cell instance.

Definition at line 21 of file cell.cpp.

Cell::~Cell ( )

Deletes the Cell instance.

Definition at line 26 of file cell.cpp.

Member Function Documentation

QList< Element * > Cell::getElements ( ) const

Gets all the Elements that are on the Cell.

Returns
the Elements that are on the Cell

Definition at line 62 of file cell.cpp.

QList< Element * > Cell::getElements ( Granatier::Element::Type  type) const

Gets the Elements of Element::Type type that are on the Cell.

Returns
the Elements of Element::Type type that are on the Cell

Definition at line 67 of file cell.cpp.

Granatier::Cell::Type Cell::getType ( ) const

Gets the Cell type.

Returns
the Cell type

Definition at line 52 of file cell.cpp.

bool Cell::isWalkable ( Element *  p_element) const

Returns if it is possible to move into the cell or not, because of a wall, bomb, etc.

Returns
true if it is possible to move into the cell

Definition at line 30 of file cell.cpp.

void Cell::removeElement ( Element *  p_element)

Removes the Element that is on the Cell.

Parameters
p_elementthe Element to remove from the Cell

Definition at line 88 of file cell.cpp.

void Cell::setElement ( Element *  p_element)

Sets the Element that is on the Cell.

Parameters
p_elementthe Element to set on the Cell

Definition at line 80 of file cell.cpp.

void Cell::setType ( Granatier::Cell::Type  p_type)

Sets the Cell type.

Parameters
p_typethe new type to set

Definition at line 57 of file cell.cpp.


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

KDE's Doxygen guidelines are available online.

granatier

Skip menu "granatier"
  • Main Page
  • Namespace List
  • Namespace Members
  • 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