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

#include "../../src/knavalbattle-17.04.3/src/controller.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'controller.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.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
struct qt_meta_stringdata_Controller_t {
    QByteArrayData data[23];
    char stringdata0[242];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Controller_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Controller_t qt_meta_stringdata_Controller = {
    {
QT_MOC_LITERAL(0, 0, 10), // "Controller"
QT_MOC_LITERAL(1, 11, 8), // "gameOver"
QT_MOC_LITERAL(2, 20, 0), // ""
QT_MOC_LITERAL(3, 21, 11), // "Sea::Player"
QT_MOC_LITERAL(4, 33, 16), // "restartRequested"
QT_MOC_LITERAL(5, 50, 17), // "startPlacingShips"
QT_MOC_LITERAL(6, 68, 6), // "player"
QT_MOC_LITERAL(7, 75, 19), // "restartPlacingShips"
QT_MOC_LITERAL(8, 95, 13), // "compatibility"
QT_MOC_LITERAL(9, 109, 11), // "nickChanged"
QT_MOC_LITERAL(10, 121, 11), // "turnChanged"
QT_MOC_LITERAL(11, 133, 11), // "playerReady"
QT_MOC_LITERAL(12, 145, 5), // "shoot"
QT_MOC_LITERAL(13, 151, 5), // "Coord"
QT_MOC_LITERAL(14, 157, 1), // "c"
QT_MOC_LITERAL(15, 159, 5), // "ready"
QT_MOC_LITERAL(16, 165, 11), // "shipsPlaced"
QT_MOC_LITERAL(17, 177, 12), // "receivedChat"
QT_MOC_LITERAL(18, 190, 4), // "text"
QT_MOC_LITERAL(19, 195, 4), // "nick"
QT_MOC_LITERAL(20, 200, 25), // "notifyRestartPlacingShips"
QT_MOC_LITERAL(21, 226, 7), // "placing"
QT_MOC_LITERAL(22, 234, 7) // "restart"

    },
    "Controller\0gameOver\0\0Sea::Player\0"
    "restartRequested\0startPlacingShips\0"
    "player\0restartPlacingShips\0compatibility\0"
    "nickChanged\0turnChanged\0playerReady\0"
    "shoot\0Coord\0c\0ready\0shipsPlaced\0"
    "receivedChat\0text\0nick\0notifyRestartPlacingShips\0"
    "placing\0restart"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Controller[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   94,    2, 0x06 /* Public */,
       4,    0,   97,    2, 0x06 /* Public */,
       5,    1,   98,    2, 0x06 /* Public */,
       7,    1,  101,    2, 0x06 /* Public */,
       8,    1,  104,    2, 0x06 /* Public */,
       9,    2,  107,    2, 0x06 /* Public */,
      10,    1,  112,    2, 0x06 /* Public */,
      11,    1,  115,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      12,    2,  118,    2, 0x0a /* Public */,
      15,    1,  123,    2, 0x0a /* Public */,
      16,    0,  126,    2, 0x0a /* Public */,
      17,    1,  127,    2, 0x0a /* Public */,
      19,    2,  130,    2, 0x0a /* Public */,
      20,    1,  135,    2, 0x0a /* Public */,
      21,    0,  138,    2, 0x0a /* Public */,
      22,    0,  139,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    2,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    6,
    QMetaType::Void, 0x80000000 | 3,    6,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, QMetaType::Int, QMetaType::QString,    2,    2,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, QMetaType::Int,    2,

 // slots: parameters
    QMetaType::Void, QMetaType::Int, 0x80000000 | 13,    6,   14,
    QMetaType::Void, QMetaType::Int,    6,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   18,
    QMetaType::Void, QMetaType::Int, QMetaType::QString,    6,   19,
    QMetaType::Void, 0x80000000 | 3,    6,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void Controller::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Controller *_t = static_cast<Controller *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->gameOver((*reinterpret_cast< Sea::Player(*)>(_a[1]))); break;
        case 1: _t->restartRequested(); break;
        case 2: _t->startPlacingShips((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 3: _t->restartPlacingShips((*reinterpret_cast< Sea::Player(*)>(_a[1]))); break;
        case 4: _t->compatibility((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 5: _t->nickChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 6: _t->turnChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 7: _t->playerReady((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 8: _t->shoot((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const Coord(*)>(_a[2]))); break;
        case 9: _t->ready((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 10: _t->shipsPlaced(); break;
        case 11: _t->receivedChat((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 12: _t->nick((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 13: _t->notifyRestartPlacingShips((*reinterpret_cast< Sea::Player(*)>(_a[1]))); break;
        case 14: _t->placing(); break;
        case 15: _t->restart(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Coord >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (Controller::*_t)(Sea::Player );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Controller::gameOver)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (Controller::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Controller::restartRequested)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (Controller::*_t)(int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Controller::startPlacingShips)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (Controller::*_t)(Sea::Player );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Controller::restartPlacingShips)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (Controller::*_t)(int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Controller::compatibility)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (Controller::*_t)(int , const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Controller::nickChanged)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (Controller::*_t)(int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Controller::turnChanged)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (Controller::*_t)(int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Controller::playerReady)) {
                *result = 7;
                return;
            }
        }
    }
}

const QMetaObject Controller::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Controller.data,
      qt_meta_data_Controller,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *Controller::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_Controller.stringdata0))
        return static_cast<void*>(const_cast< Controller*>(this));
    return QObject::qt_metacast(_clname);
}

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

// SIGNAL 0
void Controller::gameOver(Sea::Player _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Controller::restartRequested()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}

// SIGNAL 2
void Controller::startPlacingShips(int _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void Controller::restartPlacingShips(Sea::Player _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void Controller::compatibility(int _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void Controller::nickChanged(int _t1, const QString & _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void Controller::turnChanged(int _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 6, _a);
}

// SIGNAL 7
void Controller::playerReady(int _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
}
QT_END_MOC_NAMESPACE
