/****************************************************************************
** Meta object code from reading C++ file 'player.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../src/granatier-17.12.3/src/player.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'player.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_Player_t {
    QByteArrayData data[23];
    char stringdata0[276];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Player_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Player_t qt_meta_stringdata_Player = {
    {
QT_MOC_LITERAL(0, 0, 6), // "Player"
QT_MOC_LITERAL(1, 7, 16), // "directionChanged"
QT_MOC_LITERAL(2, 24, 0), // ""
QT_MOC_LITERAL(3, 25, 11), // "gameUpdated"
QT_MOC_LITERAL(4, 37, 7), // "stopped"
QT_MOC_LITERAL(5, 45, 11), // "bombDropped"
QT_MOC_LITERAL(6, 57, 7), // "Player*"
QT_MOC_LITERAL(7, 65, 6), // "player"
QT_MOC_LITERAL(8, 72, 1), // "x"
QT_MOC_LITERAL(9, 74, 1), // "y"
QT_MOC_LITERAL(10, 76, 7), // "newBomb"
QT_MOC_LITERAL(11, 84, 13), // "throwDistance"
QT_MOC_LITERAL(12, 98, 5), // "dying"
QT_MOC_LITERAL(13, 104, 7), // "falling"
QT_MOC_LITERAL(14, 112, 19), // "resurrectBonusTaken"
QT_MOC_LITERAL(15, 132, 11), // "resurrected"
QT_MOC_LITERAL(16, 144, 12), // "bonusUpdated"
QT_MOC_LITERAL(17, 157, 22), // "Granatier::Bonus::Type"
QT_MOC_LITERAL(18, 180, 9), // "bonusType"
QT_MOC_LITERAL(19, 190, 17), // "percentageElapsed"
QT_MOC_LITERAL(20, 208, 21), // "slot_refillBombArmory"
QT_MOC_LITERAL(21, 230, 19), // "slot_removeBadBonus"
QT_MOC_LITERAL(22, 250, 25) // "slot_badBonusTimerTimeout"

    },
    "Player\0directionChanged\0\0gameUpdated\0"
    "stopped\0bombDropped\0Player*\0player\0x\0"
    "y\0newBomb\0throwDistance\0dying\0falling\0"
    "resurrectBonusTaken\0resurrected\0"
    "bonusUpdated\0Granatier::Bonus::Type\0"
    "bonusType\0percentageElapsed\0"
    "slot_refillBombArmory\0slot_removeBadBonus\0"
    "slot_badBonusTimerTimeout"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Player[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      12,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       9,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   74,    2, 0x06 /* Public */,
       3,    0,   75,    2, 0x06 /* Public */,
       4,    0,   76,    2, 0x06 /* Public */,
       5,    5,   77,    2, 0x06 /* Public */,
      12,    0,   88,    2, 0x06 /* Public */,
      13,    0,   89,    2, 0x06 /* Public */,
      14,    0,   90,    2, 0x06 /* Public */,
      15,    0,   91,    2, 0x06 /* Public */,
      16,    3,   92,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      20,    0,   99,    2, 0x0a /* Public */,
      21,    0,  100,    2, 0x08 /* Private */,
      22,    0,  101,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 6, QMetaType::QReal, QMetaType::QReal, QMetaType::Bool, QMetaType::Int,    7,    8,    9,   10,   11,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 6, 0x80000000 | 17, QMetaType::Int,    7,   18,   19,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void Player::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Player *_t = static_cast<Player *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->directionChanged(); break;
        case 1: _t->gameUpdated(); break;
        case 2: _t->stopped(); break;
        case 3: _t->bombDropped((*reinterpret_cast< Player*(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2])),(*reinterpret_cast< qreal(*)>(_a[3])),(*reinterpret_cast< bool(*)>(_a[4])),(*reinterpret_cast< int(*)>(_a[5]))); break;
        case 4: _t->dying(); break;
        case 5: _t->falling(); break;
        case 6: _t->resurrectBonusTaken(); break;
        case 7: _t->resurrected(); break;
        case 8: _t->bonusUpdated((*reinterpret_cast< Player*(*)>(_a[1])),(*reinterpret_cast< Granatier::Bonus::Type(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 9: _t->slot_refillBombArmory(); break;
        case 10: _t->slot_removeBadBonus(); break;
        case 11: _t->slot_badBonusTimerTimeout(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Player* >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Player* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (Player::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Player::directionChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (Player::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Player::gameUpdated)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (Player::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Player::stopped)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (Player::*_t)(Player * , qreal , qreal , bool , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Player::bombDropped)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (Player::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Player::dying)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (Player::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Player::falling)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (Player::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Player::resurrectBonusTaken)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (Player::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Player::resurrected)) {
                *result = 7;
                return;
            }
        }
        {
            typedef void (Player::*_t)(Player * , Granatier::Bonus::Type , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Player::bonusUpdated)) {
                *result = 8;
                return;
            }
        }
    }
}

const QMetaObject Player::staticMetaObject = {
    { &Character::staticMetaObject, qt_meta_stringdata_Player.data,
      qt_meta_data_Player,  qt_static_metacall, nullptr, nullptr}
};


const QMetaObject *Player::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *Player::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Player.stringdata0))
        return static_cast<void*>(this);
    return Character::qt_metacast(_clname);
}

int Player::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Character::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    return _id;
}

// SIGNAL 0
void Player::directionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Player::gameUpdated()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Player::stopped()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Player::bombDropped(Player * _t1, qreal _t2, qreal _t3, bool _t4, int _t5)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)), const_cast<void*>(reinterpret_cast<const void*>(&_t4)), const_cast<void*>(reinterpret_cast<const void*>(&_t5)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void Player::dying()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void Player::falling()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void Player::resurrectBonusTaken()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void Player::resurrected()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void Player::bonusUpdated(Player * _t1, Granatier::Bonus::Type _t2, int _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 8, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
