#ifndef PHILOSOPHER_H
#define PHILOSOPHER_H

#include <QObject>
#include <windows.h>
#include <QVector>

#include "fork.h"

class Philosopher : public QObject
{
    Q_OBJECT
public:
    Philosopher(QString s, QVector<Fork> *fork, int id);

    void eat();
    void think();
    void takeForks();
    void putForks();
signals:
    void signalAddText(QString);

public slots:
    void life();

private:
    QString name;
    bool left_fork;
    bool right_fork;
    QVector <Fork> *forkNumber;
    int idPhil;
};

#endif // PHILOSOPHER_H
