/****************************************************************************
** Meta object code from reading C++ file 'entity.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/entity.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'entity.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_Entity_t {
    QByteArrayData data[21];
    char stringdata0[219];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Entity_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Entity_t qt_meta_stringdata_Entity = {
    {
QT_MOC_LITERAL(0, 0, 6), // "Entity"
QT_MOC_LITERAL(1, 7, 5), // "shoot"
QT_MOC_LITERAL(2, 13, 0), // ""
QT_MOC_LITERAL(3, 14, 6), // "player"
QT_MOC_LITERAL(4, 21, 5), // "Coord"
QT_MOC_LITERAL(5, 27, 1), // "c"
QT_MOC_LITERAL(6, 29, 11), // "shipsPlaced"
QT_MOC_LITERAL(7, 41, 5), // "ready"
QT_MOC_LITERAL(8, 47, 4), // "chat"
QT_MOC_LITERAL(9, 52, 4), // "text"
QT_MOC_LITERAL(10, 57, 11), // "nickChanged"
QT_MOC_LITERAL(11, 69, 8), // "nickname"
QT_MOC_LITERAL(12, 78, 13), // "compatibility"
QT_MOC_LITERAL(13, 92, 5), // "level"
QT_MOC_LITERAL(14, 98, 9), // "abortGame"
QT_MOC_LITERAL(15, 108, 19), // "restartPlacingShips"
QT_MOC_LITERAL(16, 128, 11), // "Sea::Player"
QT_MOC_LITERAL(17, 140, 23), // "gameOptionsInterchanged"
QT_MOC_LITERAL(18, 164, 21), // "setCompatibilityLevel"
QT_MOC_LITERAL(19, 186, 11), // "notifyAbort"
QT_MOC_LITERAL(20, 198, 20) // "notifyRestartPlacing"

    },
    "Entity\0shoot\0\0player\0Coord\0c\0shipsPlaced\0"
    "ready\0chat\0text\0nickChanged\0nickname\0"
    "compatibility\0level\0abortGame\0"
    "restartPlacingShips\0Sea::Player\0"
    "gameOptionsInterchanged\0setCompatibilityLevel\0"
    "notifyAbort\0notifyRestartPlacing"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Entity[] = {

 // 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,    2,   74,    2, 0x06 /* Public */,
       6,    0,   79,    2, 0x06 /* Public */,
       7,    1,   80,    2, 0x06 /* Public */,
       8,    1,   83,    2, 0x06 /* Public */,
      10,    2,   86,    2, 0x06 /* Public */,
      12,    1,   91,    2, 0x06 /* Public */,
      14,    0,   94,    2, 0x06 /* Public */,
      15,    1,   95,    2, 0x06 /* Public */,
      17,    0,   98,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      18,    1,   99,    2, 0x0a /* Public */,
      19,    0,  102,    2, 0x0a /* Public */,
      20,    1,  103,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int, 0x80000000 | 4,    3,    5,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, QMetaType::QString,    9,
    QMetaType::Void, QMetaType::Int, QMetaType::QString,    3,   11,
    QMetaType::Void, QMetaType::Int,   13,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 16,    3,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::Int,   13,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 16,    3,

       0        // eod
};

void Entity::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Entity *_t = static_cast<Entity *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->shoot((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const Coord(*)>(_a[2]))); break;
        case 1: _t->shipsPlaced(); break;
        case 2: _t->ready((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 3: _t->chat((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: _t->nickChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 5: _t->compatibility((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 6: _t->abortGame(); break;
        case 7: _t->restartPlacingShips((*reinterpret_cast< Sea::Player(*)>(_a[1]))); break;
        case 8: _t->gameOptionsInterchanged(); break;
        case 9: _t->setCompatibilityLevel((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 10: _t->notifyAbort(); break;
        case 11: _t->notifyRestartPlacing((*reinterpret_cast< Sea::Player(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            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 (Entity::*_t)(int , const Coord & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Entity::shoot)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (Entity::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Entity::shipsPlaced)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (Entity::*_t)(int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Entity::ready)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (Entity::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Entity::chat)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (Entity::*_t)(int , const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Entity::nickChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (Entity::*_t)(int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Entity::compatibility)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (Entity::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Entity::abortGame)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (Entity::*_t)(Sea::Player );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Entity::restartPlacingShips)) {
                *result = 7;
                return;
            }
        }
        {
            typedef void (Entity::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Entity::gameOptionsInterchanged)) {
                *result = 8;
                return;
            }
        }
    }
}

const QMetaObject Entity::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Entity.data,
      qt_meta_data_Entity,  qt_static_metacall, nullptr, nullptr}
};


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

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

int Entity::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 < 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 Entity::shoot(int _t1, const Coord & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

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

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

// SIGNAL 3
void Entity::chat(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

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

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

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

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

// SIGNAL 8
void Entity::gameOptionsInterchanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
