/****************************************************************************
** Meta object code from reading C++ file 'playeritem.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/playeritem.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'playeritem.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_PlayerItem_t {
    QByteArrayData data[21];
    char stringdata0[217];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_PlayerItem_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_PlayerItem_t qt_meta_stringdata_PlayerItem = {
    {
QT_MOC_LITERAL(0, 0, 10), // "PlayerItem"
QT_MOC_LITERAL(1, 11, 14), // "bonusItemTaken"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 10), // "BonusItem*"
QT_MOC_LITERAL(4, 38, 9), // "bonusItem"
QT_MOC_LITERAL(5, 48, 15), // "updateDirection"
QT_MOC_LITERAL(6, 64, 14), // "updateGraphics"
QT_MOC_LITERAL(7, 79, 14), // "svgScaleFactor"
QT_MOC_LITERAL(8, 94, 15), // "manageCollision"
QT_MOC_LITERAL(9, 110, 6), // "update"
QT_MOC_LITERAL(10, 117, 3), // "p_x"
QT_MOC_LITERAL(11, 121, 3), // "p_y"
QT_MOC_LITERAL(12, 125, 9), // "startAnim"
QT_MOC_LITERAL(13, 135, 9), // "pauseAnim"
QT_MOC_LITERAL(14, 145, 10), // "resumeAnim"
QT_MOC_LITERAL(15, 156, 8), // "stopAnim"
QT_MOC_LITERAL(16, 165, 16), // "fallingAnimation"
QT_MOC_LITERAL(17, 182, 8), // "setFrame"
QT_MOC_LITERAL(18, 191, 7), // "p_frame"
QT_MOC_LITERAL(19, 199, 7), // "setDead"
QT_MOC_LITERAL(20, 207, 9) // "resurrect"

    },
    "PlayerItem\0bonusItemTaken\0\0BonusItem*\0"
    "bonusItem\0updateDirection\0updateGraphics\0"
    "svgScaleFactor\0manageCollision\0update\0"
    "p_x\0p_y\0startAnim\0pauseAnim\0resumeAnim\0"
    "stopAnim\0fallingAnimation\0setFrame\0"
    "p_frame\0setDead\0resurrect"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_PlayerItem[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   79,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    0,   82,    2, 0x0a /* Public */,
       6,    1,   83,    2, 0x0a /* Public */,
       8,    0,   86,    2, 0x0a /* Public */,
       9,    2,   87,    2, 0x0a /* Public */,
      12,    0,   92,    2, 0x0a /* Public */,
      13,    0,   93,    2, 0x0a /* Public */,
      14,    0,   94,    2, 0x0a /* Public */,
      15,    0,   95,    2, 0x0a /* Public */,
      16,    0,   96,    2, 0x0a /* Public */,
      17,    1,   97,    2, 0x0a /* Public */,
      19,    0,  100,    2, 0x0a /* Public */,
      20,    0,  101,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QReal,    7,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QReal, QMetaType::QReal,   10,   11,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   18,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void PlayerItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        PlayerItem *_t = static_cast<PlayerItem *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->bonusItemTaken((*reinterpret_cast< BonusItem*(*)>(_a[1]))); break;
        case 1: _t->updateDirection(); break;
        case 2: _t->updateGraphics((*reinterpret_cast< qreal(*)>(_a[1]))); break;
        case 3: _t->manageCollision(); break;
        case 4: _t->update((*reinterpret_cast< qreal(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2]))); break;
        case 5: _t->startAnim(); break;
        case 6: _t->pauseAnim(); break;
        case 7: _t->resumeAnim(); break;
        case 8: _t->stopAnim(); break;
        case 9: _t->fallingAnimation(); break;
        case 10: _t->setFrame((*reinterpret_cast< const int(*)>(_a[1]))); break;
        case 11: _t->setDead(); break;
        case 12: _t->resurrect(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (PlayerItem::*_t)(BonusItem * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PlayerItem::bonusItemTaken)) {
                *result = 0;
                return;
            }
        }
    }
}

const QMetaObject PlayerItem::staticMetaObject = {
    { &CharacterItem::staticMetaObject, qt_meta_stringdata_PlayerItem.data,
      qt_meta_data_PlayerItem,  qt_static_metacall, nullptr, nullptr}
};


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

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

int PlayerItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = CharacterItem::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 13;
    }
    return _id;
}

// SIGNAL 0
void PlayerItem::bonusItemTaken(BonusItem * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
