LogicComponent Class Reference
[Logic minigame]

#include <logiccomponent.h>

Inherits Graphic.

Inherited by LogicGate, LogicGenerator, and LogicTarget.

Collaboration diagram for LogicComponent:

Collaboration graph
[legend]

List of all members.

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 LogicConnectorgetConnector ()=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

LogicMinigamegame


Detailed Description

LogicComponent is the parent class for the various pieces that make up the logic minigame.

Member Function Documentation

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]

The next open input slot.

Implemented in LogicGate, LogicGenerator, and LogicTarget.

virtual void LogicComponent::removeConnector ( int  slot  )  [pure virtual]

Implemented in LogicGate, LogicGenerator, and LogicTarget.


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Mon Mar 16 14:33:09 2009 for LearningGaming by  doxygen 1.5.7.1