|
| Level () |
| Construct a Level. More...
|
|
QRectF | getCameraBoundary () const |
| Returns cameraBoundary. More...
|
|
void | setCameraBoundary (const QRectF &value) |
| Sets cameraBoundary. More...
|
|
bool | shouldFillCamera () const |
| Returns fillCamera. More...
|
|
void | setFillCamera (bool value) |
| Sets fillCamera. More...
|
|
const QString & | getName () const |
| Returns name. More...
|
|
void | setName (const QString &value) |
| Sets name. More...
|
|
const QString & | getFileName () const |
| Returns fileName. More...
|
|
void | setFileName (const QString &value) |
| Sets fileName. More...
|
|
QPointF | getGravity () const |
| Returns gravity. More...
|
|
void | setGravity (const QPointF &value) |
| Sets name. More...
|
|
int | getStartingNumPickups () const |
| Returns startingNumPickups. More...
|
|
QPointF | getParallaxOrigin () const |
| Returns parallaxOrigin. More...
|
|
void | setParallaxOrigin (const QPointF &value) |
| Sets parallaxOrigin. More...
|
|
QPointF | getParallaxStrength () const |
| Returns parallaxStrength. More...
|
|
void | setParallaxStrength (const QPointF &value) |
| Sets parallaxStrength. More...
|
|
int | getParticleLayer () const |
| Returns particleLayer. More...
|
|
void | setParticleLayer (int value) |
| Sets particleLayer. More...
|
|
float | getParticleAlpha () |
| Returns particleAlpha. More...
|
|
void | setParticleAlpha (float value) |
| Sets particleAlpha. More...
|
|
const QList< ParticleLayer * > & | getParticleLayers () const |
| Returns particleLayers as a QList. More...
|
|
void | setParticleLayers (const QList< ParticleLayer * > &value) |
| Sets particleLayers from a QList. More...
|
|
QQmlListProperty< ParticleLayer > | getParticleLayerListProperty () |
| Returns particleLayers as a QML mutable list. More...
|
|
int | getCompletionThreshold () const |
| Returns completionThreshold. More...
|
|
void | setCompletionThreshold (int value) |
| Sets completionThreshold. More...
|
|
Actor * | getPortal () const |
| Returns portal. More...
|
|
void | addActor (Actor *actor) |
| Dynamically inserts the specified actor into the level-based scene graph, assuming it does not already exist. More...
|
|
const QSet< Actor * > & | getActors (Actor::ActorType type) const |
| Returns the set of actors in the level scene graph of the specified type. More...
|
|
b2World * | getWorld () const |
| Returns the physics world (b2World ) owned by this Level. More...
|
|
| QQuickItem (QQuickItem *parent) |
|
QQuickWindow * | window () const |
|
QQuickItem * | parentItem () const |
|
void | setParentItem (QQuickItem *parent) |
|
void | stackBefore (const QQuickItem *sibling) |
|
void | stackAfter (const QQuickItem *sibling) |
|
QRectF | childrenRect () |
|
QList< QQuickItem * > | childItems () const |
|
bool | clip () const |
|
void | setClip (bool) |
|
QString | state () const |
|
void | setState (const QString &) |
|
qreal | baselineOffset () const |
|
void | setBaselineOffset (qreal) |
|
qreal | x () const |
|
qreal | y () const |
|
void | setX (qreal) |
|
void | setY (qreal) |
|
qreal | width () const |
|
void | setWidth (qreal) |
|
void | resetWidth () |
|
void | setImplicitWidth (qreal) |
|
qreal | implicitWidth () const |
|
qreal | height () const |
|
void | setHeight (qreal) |
|
void | resetHeight () |
|
void | setImplicitHeight (qreal) |
|
qreal | implicitHeight () const |
|
TransformOrigin | transformOrigin () const |
|
void | setTransformOrigin (TransformOrigin) |
|
qreal | z () const |
|
void | setZ (qreal) |
|
qreal | rotation () const |
|
void | setRotation (qreal) |
|
qreal | scale () const |
|
void | setScale (qreal) |
|
qreal | opacity () const |
|
void | setOpacity (qreal) |
|
bool | isVisible () const |
|
void | setVisible (bool) |
|
bool | isEnabled () const |
|
void | setEnabled (bool) |
|
bool | smooth () const |
|
void | setSmooth (bool) |
|
bool | activeFocusOnTab () const |
|
void | setActiveFocusOnTab (bool) |
|
bool | antialiasing () const |
|
void | setAntialiasing (bool) |
|
void | resetAntialiasing () |
|
Flags | flags () const |
|
void | setFlag (Flag flag, bool enabled) |
|
void | setFlags (QFlags< QQuickItem::Flag > flags) |
|
bool | hasActiveFocus () const |
|
bool | hasFocus () const |
|
void | setFocus (bool) |
|
void | setFocus (bool focus, Qt::FocusReason reason) |
|
bool | isFocusScope () const |
|
QQuickItem * | scopedFocusItem () const |
|
Qt::MouseButtons | acceptedMouseButtons () const |
|
void | setAcceptedMouseButtons (Qt::MouseButtons buttons) |
|
bool | acceptHoverEvents () const |
|
void | setAcceptHoverEvents (bool enabled) |
|
QCursor | cursor () const |
|
void | setCursor (const QCursor &cursor) |
|
void | unsetCursor () |
|
void | grabMouse () |
|
void | ungrabMouse () |
|
bool | keepMouseGrab () const |
|
void | setKeepMouseGrab (bool keep) |
|
bool | filtersChildMouseEvents () const |
|
void | setFiltersChildMouseEvents (bool filter) |
|
void | grabTouchPoints (const QVector< int > &ids) |
|
void | ungrabTouchPoints () |
|
bool | keepTouchGrab () const |
|
void | setKeepTouchGrab (bool keep) |
|
virtual bool | contains (const QPointF &point) const |
|
QPointF | mapToItem (const QQuickItem *item, const QPointF &point) const |
|
QPointF | mapToScene (const QPointF &point) const |
|
QRectF | mapRectToItem (const QQuickItem *item, const QRectF &rect) const |
|
QRectF | mapRectToScene (const QRectF &rect) const |
|
QPointF | mapFromItem (const QQuickItem *item, const QPointF &point) const |
|
QPointF | mapFromScene (const QPointF &point) const |
|
QRectF | mapRectFromItem (const QQuickItem *item, const QRectF &rect) const |
|
QRectF | mapRectFromScene (const QRectF &rect) const |
|
void | polish () |
|
void | forceActiveFocus () |
|
void | forceActiveFocus (Qt::FocusReason reason) |
|
QQuickItem * | nextItemInFocusChain (bool forward) |
|
QQuickItem * | childAt (qreal x, qreal y) const |
|
virtual QVariant | inputMethodQuery (Qt::InputMethodQuery query) const |
|
virtual bool | isTextureProvider () const |
|
virtual QSGTextureProvider * | textureProvider () const |
|
void | update () |
|
void | windowChanged (QQuickWindow *window) |
|
| QObject (QObject *parent) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
virtual const QMetaObject * | metaObject () const |
|
QString | objectName () const |
|
void | setObjectName (const QString &name) |
|
bool | isWidgetType () const |
|
bool | isWindowType () const |
|
bool | signalsBlocked () const |
|
bool | blockSignals (bool block) |
|
QThread * | thread () const |
|
void | moveToThread (QThread *targetThread) |
|
int | startTimer (int interval, Qt::TimerType timerType) |
|
void | killTimer (int id) |
|
T | findChild (const QString &name, QFlags< Qt::FindChildOption > options) const |
|
QList< T > | findChildren (const QString &name, QFlags< Qt::FindChildOption > options) const |
|
QList< T > | findChildren (const QRegExp ®Exp, QFlags< Qt::FindChildOption > options) const |
|
QList< T > | findChildren (const QRegularExpression &re, QFlags< Qt::FindChildOption > options) const |
|
const QObjectList & | children () const |
|
void | setParent (QObject *parent) |
|
void | installEventFilter (QObject *filterObj) |
|
void | removeEventFilter (QObject *obj) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const |
|
bool | disconnect (const QObject *receiver, const char *method) const |
|
void | dumpObjectTree () |
|
void | dumpObjectInfo () |
|
bool | setProperty (const char *name, const QVariant &value) |
|
QVariant | property (const char *name) const |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
void | destroyed (QObject *obj) |
|
void | objectNameChanged (const QString &objectName) |
|
QObject * | parent () const |
|
bool | inherits (const char *className) const |
|
void | deleteLater () |
|
virtual void | classBegin ()=0 |
|
virtual void | componentComplete ()=0 |
|
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
bool | disconnect (const QMetaObject::Connection &connection) |
|
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
|
typedef | Flags |
|
Representation of an in-game level.
A Level is a discrete section of the game, each with a well defined start and end. Most Levels in VoltAir start at the Robot's spawn point and end when the Robot successfully enters an activated Portal.
Levels are comprised of a collection of Actors (for example, the Robot). The data describing the initial state of these Actors is loaded from data (QML) and instantiated into a tree structure. Nodes are QQuickItems or QObjects, and form part of the QML tree. The Level object itself becomes the parent of all of these objects.
Aside from containing Actors, the Level is responsible for maintaining some of the state that is global to the Level, such as the intensity of gravity. The Level is also the owner of the physics world (b2World
).