mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-04-28 18:54:40 +00:00
29 lines
506 B
C++
29 lines
506 B
C++
#ifndef SNAKEITEM_H
|
|
#define SNAKEITEM_H
|
|
#include "baseitem.h"
|
|
|
|
#include <QVector>
|
|
|
|
namespace ClientProtocol {
|
|
|
|
class CLIENTPROTOCOLSHARED_EXPORT SnakeItem: public BaseItem
|
|
{
|
|
private:
|
|
unsigned int _spead = 0;
|
|
QVector<double> _skillet;
|
|
|
|
public:
|
|
explicit SnakeItem(unsigned int id);
|
|
~SnakeItem() override;
|
|
|
|
bool isValid() override;
|
|
|
|
QDataStream &operator <<(QDataStream &stream) override;
|
|
QDataStream &operator >>(QDataStream &stream) const override;
|
|
};
|
|
}
|
|
|
|
|
|
|
|
#endif // SNAKEITEM_H
|