#include <logicconnector.h>
Inherits Layer, and ClickListener.

Public Member Functions | |
| LogicConnector (LogicMinigame *game, LogicComponent *input) | |
| ~LogicConnector () | |
| void | repath () |
| Redo the pathing of this connector. | |
| void | clearRobots () |
| Delete all the robots from this connector. | |
| void | addOutput (LogicComponent *newoutput) |
| Set the output component. | |
| void | removeOutput () |
| Remove the output component. | |
| void | addRobot (bool truth) |
| void | tick () |
| Moves the robots on this connection. | |
| void | onClick (MouseEvent *e) |
| From interface ClickListener. Linked to connectionBox. | |
Protected Member Functions | |
| void | extendPath () |
| Animates the extension of the tube. | |
Static Protected Member Functions | |
| static bool | pathEnd (LogicRobotPosition *robotPos) |
| Is the robot at the end of the path? | |
Protected Attributes | |
| LogicMinigame * | game |
| The minigame that created this connector. | |
| LogicComponent * | input |
| The component that feeds this connector. | |
| LogicComponent * | output |
| The component this connector leads to. | |
| int | outputSlot |
| The slot of the output component that this connector is connected to. | |
| std::list< LogicRobotPosition * > | robots |
| The robots currently traveling along this connector. | |
| std::list< LogicConnectionPath * > | paths |
| The straight-line paths this connector takes. | |
| Layer * | robotLayer |
| The layer the robot graphics are in. | |
| Layer * | underLayer |
| The layer the far half of the tube is in. | |
| Draggable * | connectionBox |
| A draggable object to connect this object to a component. | |
| bool | completed |
| Controls whether the series of tubes has finished its animation. | |
| LogicConnector::LogicConnector | ( | LogicMinigame * | game, | |
| LogicComponent * | input | |||
| ) |
| LogicConnector::~LogicConnector | ( | ) |
| void LogicConnector::addOutput | ( | LogicComponent * | newoutput | ) |
Set the output component.
If newoutput has no open input slots, this does nothing. Otherwise, removes the current output (if any) and attempts to path to the new output. If pathing fails, the component will end up with no output at all.
| void LogicConnector::addRobot | ( | bool | truth | ) |
| void LogicConnector::clearRobots | ( | ) |
Delete all the robots from this connector.
| void LogicConnector::extendPath | ( | ) | [protected] |
Animates the extension of the tube.
| void LogicConnector::onClick | ( | MouseEvent * | e | ) | [virtual] |
| bool LogicConnector::pathEnd | ( | LogicRobotPosition * | robotPos | ) | [static, protected] |
Is the robot at the end of the path?
| void LogicConnector::removeOutput | ( | ) |
Remove the output component.
| void LogicConnector::repath | ( | ) |
Redo the pathing of this connector.
| void LogicConnector::tick | ( | ) |
Moves the robots on this connection.
bool LogicConnector::completed [protected] |
Controls whether the series of tubes has finished its animation.
Draggable* LogicConnector::connectionBox [protected] |
A draggable object to connect this object to a component.
LogicMinigame* LogicConnector::game [protected] |
The minigame that created this connector.
LogicComponent* LogicConnector::input [protected] |
The component that feeds this connector.
LogicComponent* LogicConnector::output [protected] |
The component this connector leads to.
int LogicConnector::outputSlot [protected] |
The slot of the output component that this connector is connected to.
std::list<LogicConnectionPath*> LogicConnector::paths [protected] |
The straight-line paths this connector takes.
Layer* LogicConnector::robotLayer [protected] |
The layer the robot graphics are in.
std::list<LogicRobotPosition*> LogicConnector::robots [protected] |
The robots currently traveling along this connector.
Layer* LogicConnector::underLayer [protected] |
The layer the far half of the tube is in.
1.5.7.1