|
mkRPG
|
#include <map.h>
Public Member Functions | |
| Map | Map (MapType &type, GameObject &parent) |
| int | width () const |
| int | height () const |
| QSize | size () const |
| void | setWidth (int w) |
| void | setHeight (int h) |
| void | resize (int w, int h, int xOffset=0, int yOffset=0) |
| void | resize (const QRect &newSize) |
| Cell & | cell (int i, int j) const |
| Cell & | cell (const QPoint &p) const |
| void | selectAll () |
| void | unSelectAll () |
| void | confirmPreSelection (bool add=true) |
| void | clearPreSelection () |
| QList< GameObject * > | children () const |
| MapType & | mapType () |
| void | setMapType (MapType &type) |
The Map class.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| QList< GameObject * > Map::children | ( | ) | const [virtual] |
Reimplemented from GameObject to remove the cells from the children list.
Reimplemented from GameObject.
| void Map::clearPreSelection | ( | ) |
Resets the pre-selection information on every cell.
| void Map::confirmPreSelection | ( | bool | add = true | ) |
Converts the pre-selection into selection for every cell.
| void Map::selectAll | ( | ) |
Unselects all the cells of the map.
| void Map::unSelectAll | ( | ) |
1.7.6.1