mkRPG
Public Member Functions
Map Class Reference

The Map class. More...

#include <map.h>

Inheritance diagram for Map:
TypedObject< MapType > InheritableObject GameObject

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)
Cellcell (int i, int j) const
Cellcell (const QPoint &p) const
void selectAll ()
void unSelectAll ()
void confirmPreSelection (bool add=true)
void clearPreSelection ()
QList< GameObject * > children () const
MapTypemapType ()
void setMapType (MapType &type)

Detailed Description

The Map class.


Member Function Documentation

Cell & Map::cell ( int  i,
int  j 
) const

Returns a reference to the cell at pos (x,y).

Cell & Map::cell ( const QPoint &  p) const

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.

See also:
GameObject::children

Reimplemented from GameObject.

Resets the pre-selection information on every cell.

See also:
confirmPreSelection;
void Map::confirmPreSelection ( bool  add = true)

Converts the pre-selection into selection for every cell.

See also:
clearPreSelection
void Map::selectAll ( )

Unselects all the cells of the map.

See also:
unSelectAll
void Map::unSelectAll ( )

Selects all the cells of the map.

See also:
selectAll

The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines