~mzanetti/+junk/ubuntudefence

« back to all changes in this revision

Viewing changes to main.cpp

  • Committer: Michael Zanetti
  • Date: 2014-07-06 01:09:39 UTC
  • Revision ID: michael.zanetti@canonical.com-20140706010939-x2m8q24bgwuj867b
add support for locking levels and properly collect level reward points

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include "engine.h"
5
5
#include "levelpacks.h"
6
6
#include "levelpack.h"
 
7
#include "level.h"
7
8
#include "enemies.h"
8
9
#include "enemy.h"
9
10
#include "board.h"
24
25
    qmlRegisterType<Engine>("Ubuntudefence", 0, 1, "Engine");
25
26
    qmlRegisterUncreatableType<LevelPacks>("Ubuntudefence", 0, 1, "LevelPacks", "Can't create this in QML. Get it from Engine.");
26
27
    qmlRegisterUncreatableType<LevelPack>("Ubuntudefence", 0, 1, "LevelPack", "Can't create this in QML. Get it from LevelPacks.");
 
28
    qmlRegisterUncreatableType<Level>("Ubuntudefence", 0, 1, "Level", "Can't create this in QML. Get it from LevelPack.");
27
29
    qmlRegisterUncreatableType<Board>("Ubuntudefence", 0, 1, "Board", "There's only one board per engine.");
28
30
    qmlRegisterUncreatableType<Enemies>("Ubuntudefence", 0, 1, "Enemies", "Cant create this in QML. Get it from Board.");
29
31
    qmlRegisterUncreatableType<Enemy>("Ubuntudefence", 0, 1, "Enemy", "Cant create this in QML. Get it from Enemies model.");