granatier
arena.cpp
Go to the documentation of this file.
void setCellElement(const int p_row, const int p_column, Element *p_element)
Sets the Element that is on the Cell whose coordinates are given in parameters.
Definition: arena.cpp:72
const T & at(int i) const
void removeCellElement(const int p_row, const int p_column, Element *p_element)
Removes the Element that is on the Cell whose coordinates are given in parameters.
Definition: arena.cpp:81
int size() const
int count(const T &value) const
void append(const T &value)
void init(const int p_nbRows, const int p_nbColumns)
Creates the Arena matrix.
Definition: arena.cpp:40
QPoint getCoords(Cell *p_cell) const
Gets the coordinates of the given Cell as a QPoint.
Definition: arena.cpp:129
This class describes the common characteristics and behaviour of any game Element (character or item)...
Definition: element.h:32
void addPlayerPosition(const QPointF &p_position)
Sets a player position on the arena.
Definition: arena.cpp:90
QPointF getPlayerPosition(int p_player) const
Gets the player position on the arena.
Definition: arena.cpp:111
void swap(QList< T > &other)
int getColFromX(const qreal p_x) const
Gets the column index corresponding to the given x-coordinate.
Definition: arena.cpp:154
Definition: granatierglobals.h:73
void setCellType(const int p_row, const int p_column, const Granatier::Cell::Type p_type)
Sets the CellType of the Cell whose coordinates are given in parameters.
Definition: arena.cpp:63
void removeElement(Element *p_element)
Removes the Element that is on the Cell.
Definition: cell.cpp:88
Cell getCell(const int p_row, const int p_column) const
Gets the Cell at the given coordinates.
Definition: arena.cpp:120
int getRowFromY(const qreal p_y) const
Gets the row index corresponding to the given y-coordinate.
Definition: arena.cpp:144
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
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.