44 Q_PROPERTY(
int mapCount READ
getMapCount NOTIFY mapCountChanged STORED
false)
74 void mapCountChanged();
128 const QVector<MapDBEntry*>
getMaps()
const;
133 void qmlProtect(
const QQmlEngine*
const engine)
const;
136 void qmlRegister()
const;
139 QVector<MapDBEntry*> results;
MapSearch * indexGt(int val)
Keep maps with index > val.
MapSearch * startOver()
Reset to all maps. Returns this.
MapSearch * isGood()
Keep only "good" maps (criteria listed above).
MapSearch * hasConnections()
MapDBEntry * pickRandom()
A random map from the current results (backs pickRandom).
MapSearch * widthGt(int val)
Keep maps wider than val.
MapSearch * areaLt(int val)
Keep maps with area < val.
MapSearch * hasSpriteSet()
MapSearch * hasTileset(QString val)
Keep maps using tileset val.
MapSearch * heightLt(int val)
Keep maps shorter than val.
MapSearch * noSpriteSet()
MapSearch * heightGt(int val)
Keep maps taller than val.
const QVector< MapDBEntry * > getMaps() const
The current result set.
MapSearch * widthLt(int val)
Keep maps narrower than val.
MapSearch()
Start with all maps in the result set.
MapSearch * notType(QString val)
Drop maps of tileset-type val.
int getMapCount() const
Result count (backs mapCount).
MapSearch * hasDynamicSpriteSet()
void qmlProtect(const QQmlEngine *const engine) const
Pin to C++ ownership.
MapSearch * hasWarpsOut()
MapSearch * isIncomplete()
MapSearch * areaGt(int val)
Keep maps with area > val.
MapSearch * isType(QString val)
Keep maps of tileset-type val.
MapSearch * noDynamicSpriteSet()
MapSearch * notTileset(QString val)
Drop maps using tileset val.
MapSearch * isNotBad()
The complement helper used by isGood().
MapSearch * notIncomplete()
MapSearch * notNamed(QString val)
Drop the map named val.
MapSearch * noConnections()
MapSearch * indexLt(int val)
Keep maps with index < val.
const MapDBEntry * mapAt(const int ind) const
Result ind (for QML).
Import/export macro for the db library, plus the central list of DB entry pointer types declared opaq...
#define DB_AUTOPORT
Expands to the correct dllexport/dllimport decoration for this library.
One map's complete static definition – the root of the MapDBEntry family.