Init version
This commit is contained in:
21
DEC_GUI/Agressor/agentitem.h
Normal file
21
DEC_GUI/Agressor/agentitem.h
Normal 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
|
||||
Reference in New Issue
Block a user