circuit-logic-simulator/Parts/LightBulb.h

22 lines
335 B
C
Raw Normal View History

2020-03-24 20:18:39 +01:00
#ifndef LAMP_H
#define LAMP_H
#include "../Part.h"
class LightBulb : public Part
{
public:
friend class IntegratedCircuit;
LightBulb(Logic* logic);
QVector<bool> compute(QVector<bool> inputs) override;
QPainterPath symbolPainterPath(QRect limits) override;
private:
bool m_state = false;
};
#endif // LAMP_H