Init version

This commit is contained in:
2024-10-03 18:43:04 +07:00
commit f80052961f
186 changed files with 71676 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#ifndef AGENTITEM_H
#define AGENTITEM_H
#include <QGraphicsItem>
#include "agent.h"
class AgentItem : public QGraphicsItem
{
public:
explicit AgentItem(Agent *agent, QColor col);
QRectF boundingRect() const; // ограничивающий прямоугольник
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); // отрисовка
void agentEvent(); // событие: обновление текущих координат
private:
Agent *agent;
QColor color;
};
#endif // AGENTITEM_H