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

#include "../../src/knavalbattle-17.08.3/src/playfield.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'playfield.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.2. 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_PlayField_t {
    QByteArrayData data[34];
    char stringdata0[417];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_PlayField_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_PlayField_t qt_meta_stringdata_PlayField = {
    {
QT_MOC_LITERAL(0, 0, 9), // "PlayField"
QT_MOC_LITERAL(1, 10, 12), // "gameFinished"
QT_MOC_LITERAL(2, 23, 0), // ""
QT_MOC_LITERAL(3, 24, 9), // "abortGame"
QT_MOC_LITERAL(4, 34, 11), // "Sea::Player"
QT_MOC_LITERAL(5, 46, 6), // "player"
QT_MOC_LITERAL(6, 53, 13), // "welcomeScreen"
QT_MOC_LITERAL(7, 67, 10), // "placeShips"
QT_MOC_LITERAL(8, 78, 10), // "highscores"
QT_MOC_LITERAL(9, 89, 8), // "gameOver"
QT_MOC_LITERAL(10, 98, 6), // "winner"
QT_MOC_LITERAL(11, 105, 15), // "setupController"
QT_MOC_LITERAL(12, 121, 7), // "newGame"
QT_MOC_LITERAL(13, 129, 7), // "restart"
QT_MOC_LITERAL(14, 137, 10), // "changeNick"
QT_MOC_LITERAL(15, 148, 12), // "toggleSounds"
QT_MOC_LITERAL(16, 161, 14), // "toggleAdjacent"
QT_MOC_LITERAL(17, 176, 14), // "toggleMultiple"
QT_MOC_LITERAL(18, 191, 16), // "restartRequested"
QT_MOC_LITERAL(19, 208, 17), // "startPlacingShips"
QT_MOC_LITERAL(20, 226, 19), // "restartPlacingShips"
QT_MOC_LITERAL(21, 246, 16), // "setCompatibility"
QT_MOC_LITERAL(22, 263, 10), // "updateNick"
QT_MOC_LITERAL(23, 274, 10), // "changeTurn"
QT_MOC_LITERAL(24, 285, 11), // "playerReady"
QT_MOC_LITERAL(25, 297, 12), // "levelChanged"
QT_MOC_LITERAL(26, 310, 11), // "auxMenuDone"
QT_MOC_LITERAL(27, 322, 9), // "localGame"
QT_MOC_LITERAL(28, 332, 12), // "createServer"
QT_MOC_LITERAL(29, 345, 12), // "createClient"
QT_MOC_LITERAL(30, 358, 22), // "toggleEndOfGameMessage"
QT_MOC_LITERAL(31, 381, 4), // "show"
QT_MOC_LITERAL(32, 386, 14), // "toggleLeftGrid"
QT_MOC_LITERAL(33, 401, 15) // "toggleRightGrid"

    },
    "PlayField\0gameFinished\0\0abortGame\0"
    "Sea::Player\0player\0welcomeScreen\0"
    "placeShips\0highscores\0gameOver\0winner\0"
    "setupController\0newGame\0restart\0"
    "changeNick\0toggleSounds\0toggleAdjacent\0"
    "toggleMultiple\0restartRequested\0"
    "startPlacingShips\0restartPlacingShips\0"
    "setCompatibility\0updateNick\0changeTurn\0"
    "playerReady\0levelChanged\0auxMenuDone\0"
    "localGame\0createServer\0createClient\0"
    "toggleEndOfGameMessage\0show\0toggleLeftGrid\0"
    "toggleRightGrid"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_PlayField[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,  154,    2, 0x06 /* Public */,
       3,    1,  155,    2, 0x06 /* Public */,
       6,    0,  158,    2, 0x06 /* Public */,
       7,    0,  159,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    0,  160,    2, 0x0a /* Public */,
       9,    1,  161,    2, 0x0a /* Public */,
      11,    0,  164,    2, 0x0a /* Public */,
      12,    0,  165,    2, 0x0a /* Public */,
      13,    0,  166,    2, 0x0a /* Public */,
      14,    0,  167,    2, 0x0a /* Public */,
      15,    1,  168,    2, 0x0a /* Public */,
      16,    1,  171,    2, 0x0a /* Public */,
      17,    1,  174,    2, 0x0a /* Public */,
      18,    0,  177,    2, 0x0a /* Public */,
      19,    0,  178,    2, 0x0a /* Public */,
      20,    1,  179,    2, 0x0a /* Public */,
      21,    1,  182,    2, 0x0a /* Public */,
      22,    2,  185,    2, 0x0a /* Public */,
      23,    1,  190,    2, 0x0a /* Public */,
      24,    1,  193,    2, 0x0a /* Public */,
      25,    0,  196,    2, 0x0a /* Public */,
      26,    0,  197,    2, 0x0a /* Public */,
      27,    0,  198,    2, 0x0a /* Public */,
      28,    0,  199,    2, 0x0a /* Public */,
      29,    0,  200,    2, 0x0a /* Public */,
      30,    1,  201,    2, 0x0a /* Public */,
      32,    1,  204,    2, 0x0a /* Public */,
      33,    1,  207,    2, 0x0a /* Public */,

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

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 4,   10,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 4,    5,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, QMetaType::Int, QMetaType::QString,    2,    2,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   31,
    QMetaType::Void, QMetaType::Bool,   31,
    QMetaType::Void, QMetaType::Bool,   31,

       0        // eod
};

void PlayField::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        PlayField *_t = static_cast<PlayField *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->gameFinished(); break;
        case 1: _t->abortGame((*reinterpret_cast< Sea::Player(*)>(_a[1]))); break;
        case 2: _t->welcomeScreen(); break;
        case 3: _t->placeShips(); break;
        case 4: _t->highscores(); break;
        case 5: _t->gameOver((*reinterpret_cast< Sea::Player(*)>(_a[1]))); break;
        case 6: _t->setupController(); break;
        case 7: _t->newGame(); break;
        case 8: _t->restart(); break;
        case 9: _t->changeNick(); break;
        case 10: _t->toggleSounds((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 11: _t->toggleAdjacent((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 12: _t->toggleMultiple((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 13: _t->restartRequested(); break;
        case 14: _t->startPlacingShips(); break;
        case 15: _t->restartPlacingShips((*reinterpret_cast< Sea::Player(*)>(_a[1]))); break;
        case 16: _t->setCompatibility((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 17: _t->updateNick((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 18: _t->changeTurn((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 19: _t->playerReady((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 20: _t->levelChanged(); break;
        case 21: _t->auxMenuDone(); break;
        case 22: _t->localGame(); break;
        case 23: _t->createServer(); break;
        case 24: _t->createClient(); break;
        case 25: _t->toggleEndOfGameMessage((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 26: _t->toggleLeftGrid((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 27: _t->toggleRightGrid((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (PlayField::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PlayField::gameFinished)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (PlayField::*_t)(Sea::Player );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PlayField::abortGame)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (PlayField::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PlayField::welcomeScreen)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (PlayField::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PlayField::placeShips)) {
                *result = 3;
                return;
            }
        }
    }
}

const QMetaObject PlayField::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_PlayField.data,
      qt_meta_data_PlayField,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

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

// SIGNAL 1
void PlayField::abortGame(Sea::Player _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

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

// SIGNAL 3
void PlayField::placeShips()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
