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

#include "../../../../knavalbattle-26.08.0/src/playfield.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'playfield.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN9PlayFieldE_t {};
} // unnamed namespace

template <> constexpr inline auto PlayField::qt_create_metaobjectdata<qt_meta_tag_ZN9PlayFieldE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PlayField",
        "gameFinished",
        "",
        "abortGame",
        "Sea::Player",
        "player",
        "welcomeScreen",
        "placeShips",
        "highscores",
        "gameOver",
        "winner",
        "setupController",
        "newGame",
        "restart",
        "changeNick",
        "toggleSounds",
        "toggleAdjacent",
        "toggleMultiple",
        "restartRequested",
        "startPlacingShips",
        "restartPlacingShips",
        "setCompatibility",
        "updateNick",
        "changeTurn",
        "playerReady",
        "levelChanged",
        "auxMenuDone",
        "localGame",
        "createServer",
        "createClient",
        "toggleEndOfGameMessage",
        "show",
        "toggleLeftGrid",
        "toggleRightGrid"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'gameFinished'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'abortGame'
        QtMocHelpers::SignalData<void(Sea::Player)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Signal 'welcomeScreen'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'placeShips'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'highscores'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'gameOver'
        QtMocHelpers::SlotData<void(Sea::Player)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 10 },
        }}),
        // Slot 'setupController'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'newGame'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'restart'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'changeNick'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'toggleSounds'
        QtMocHelpers::SlotData<void(bool)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'toggleAdjacent'
        QtMocHelpers::SlotData<void(bool)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'toggleMultiple'
        QtMocHelpers::SlotData<void(bool)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'restartRequested'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'startPlacingShips'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'restartPlacingShips'
        QtMocHelpers::SlotData<void(Sea::Player)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Slot 'setCompatibility'
        QtMocHelpers::SlotData<void(int)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'updateNick'
        QtMocHelpers::SlotData<void(int, const QString &)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 }, { QMetaType::QString, 2 },
        }}),
        // Slot 'changeTurn'
        QtMocHelpers::SlotData<void(int)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'playerReady'
        QtMocHelpers::SlotData<void(int)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'levelChanged'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'auxMenuDone'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'localGame'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'createServer'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'createClient'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'toggleEndOfGameMessage'
        QtMocHelpers::SlotData<void(bool)>(30, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 31 },
        }}),
        // Slot 'toggleLeftGrid'
        QtMocHelpers::SlotData<void(bool)>(32, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 31 },
        }}),
        // Slot 'toggleRightGrid'
        QtMocHelpers::SlotData<void(bool)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 31 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PlayField, qt_meta_tag_ZN9PlayFieldE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PlayField::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9PlayFieldE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9PlayFieldE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9PlayFieldE_t>.metaTypes,
    nullptr
} };

void PlayField::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PlayField *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->gameFinished(); break;
        case 1: _t->abortGame((*reinterpret_cast<std::add_pointer_t<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<std::add_pointer_t<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<std::add_pointer_t<bool>>(_a[1]))); break;
        case 11: _t->toggleAdjacent((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: _t->toggleMultiple((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 13: _t->restartRequested(); break;
        case 14: _t->startPlacingShips(); break;
        case 15: _t->restartPlacingShips((*reinterpret_cast<std::add_pointer_t<Sea::Player>>(_a[1]))); break;
        case 16: _t->setCompatibility((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 17: _t->updateNick((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 18: _t->changeTurn((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 19: _t->playerReady((*reinterpret_cast<std::add_pointer_t<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<std::add_pointer_t<bool>>(_a[1]))); break;
        case 26: _t->toggleLeftGrid((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 27: _t->toggleRightGrid((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PlayField::*)()>(_a, &PlayField::gameFinished, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlayField::*)(Sea::Player )>(_a, &PlayField::abortGame, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlayField::*)()>(_a, &PlayField::welcomeScreen, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlayField::*)()>(_a, &PlayField::placeShips, 3))
            return;
    }
}

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_staticMetaObjectStaticContent<qt_meta_tag_ZN9PlayFieldE_t>.strings))
        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;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 28)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 28;
    }
    return _id;
}

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

// SIGNAL 1
void PlayField::abortGame(Sea::Player _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// 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
