#include <logiccomponent.h>
Inherits Graphic.
Inherited by LogicGate, LogicGenerator, and LogicTarget.

Public Member Functions | |
| virtual void | acceptRobot (bool value, int slot) |
| Takes a robot from a tube and does whatever action is needed. | |
| virtual Point | inpoint (int slot)=0 |
| The absolute position of the in/out tubes that connect to this component. | |
| virtual void | addConnector (LogicConnector *connector)=0 |
| Connects from some other component to this one. | |
| virtual void | removeConnector (int slot)=0 |
| virtual LogicConnector * | getConnector ()=0 |
| The connector leading away from this component. | |
| virtual int | nextSlot ()=0 |
| The next open input slot. | |
| virtual void | disconnect () |
| virtual void | moved () |
| virtual bool | containsPoint (Point p) |
Protected Attributes | |
| LogicMinigame * | game |
| virtual void LogicComponent::acceptRobot | ( | bool | value, | |
| int | slot | |||
| ) | [inline, virtual] |
Takes a robot from a tube and does whatever action is needed.
Reimplemented in LogicGate, and LogicTarget.
| virtual void LogicComponent::addConnector | ( | LogicConnector * | connector | ) | [pure virtual] |
Connects from some other component to this one.
Implemented in LogicGate, LogicGenerator, and LogicTarget.
| virtual bool LogicComponent::containsPoint | ( | Point | p | ) | [inline, virtual] |
Reimplemented in LogicGate, and LogicTarget.
| virtual void LogicComponent::disconnect | ( | ) | [inline, virtual] |
Reimplemented in LogicGate.
| virtual LogicConnector* LogicComponent::getConnector | ( | ) | [pure virtual] |
The connector leading away from this component.
Implemented in LogicGate, LogicGenerator, and LogicTarget.
| virtual Point LogicComponent::inpoint | ( | int | slot | ) | [pure virtual] |
The absolute position of the in/out tubes that connect to this component.
Implemented in LogicGate, LogicGenerator, and LogicTarget.
| virtual void LogicComponent::moved | ( | ) | [inline, virtual] |
Reimplemented in LogicGate.
| virtual int LogicComponent::nextSlot | ( | ) | [pure virtual] |
| virtual void LogicComponent::removeConnector | ( | int | slot | ) | [pure virtual] |
Implemented in LogicGate, LogicGenerator, and LogicTarget.
LogicMinigame* LogicComponent::game [protected] |
1.5.7.1