LogicLayout Class Reference
[Logic minigame]

#include <logiclayout.h>

Collaboration diagram for LogicLayout:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LogicLayout ()
 ~LogicLayout ()
void freePosition (LogicComponent *caller)
void tickAllConnectors ()
LogicComponentattemptPlacement (LogicComponent *component, Point p)
bool simpleComponentDrop (LogicComponent *component)
std::list< LogicConnectionPath * > path (LogicComponent *from, LogicComponent *to, int slot)
void unpath (std::list< LogicConnectionPath * > oldpath)

Static Public Member Functions

static Point getComponentPosition (int x, int y)
static int getHChannelPosition (int i)
static int getVChannelPosition (int i)

Public Attributes

std::list< LogicConnector * > connectorList
LayerconnectorLayer

Static Public Attributes

static const int xArrayOffset = 0
static const int yArrayOffset = 18
static const int locationWidth = 72
static const int locationHeight = 65
static const int locationArrayWidth = 5
static const int locationArrayHeight = 4
static const int channelWidth = 110
static const int channelHeight = 66
static const int channelWidthPacking = 4
static const int channelHeightPacking = 3
static const int channelArrayWidth = (locationArrayWidth-1) * channelWidthPacking
static const int channelArrayHeight = (locationArrayHeight-1) * channelHeightPacking
static const int placementTolerance = 40

Protected Types

enum  LayoutEnum { uninit = -1, bypass = -2 }

Protected Attributes

LogicComponent *** componentArray
LogicConnectionPath *** horizontalChannelArray
LogicConnectionPath ** verticalChannelArray


Member Enumeration Documentation

enum LogicLayout::LayoutEnum [protected]

Enumerator:
uninit 
bypass 


Constructor & Destructor Documentation

LogicLayout::LogicLayout (  ) 

LogicLayout::~LogicLayout (  ) 


Member Function Documentation

LogicComponent * LogicLayout::attemptPlacement ( LogicComponent component,
Point  p 
)

void LogicLayout::freePosition ( LogicComponent caller  ) 

Point LogicLayout::getComponentPosition ( int  x,
int  y 
) [static]

int LogicLayout::getHChannelPosition ( int  i  )  [static]

int LogicLayout::getVChannelPosition ( int  i  )  [static]

std::list< LogicConnectionPath * > LogicLayout::path ( LogicComponent from,
LogicComponent to,
int  slot 
)

bool LogicLayout::simpleComponentDrop ( LogicComponent component  ) 

void LogicLayout::tickAllConnectors (  ) 

void LogicLayout::unpath ( std::list< LogicConnectionPath * >  oldpath  ) 


Member Data Documentation

const int LogicLayout::channelHeight = 66 [static]

const int LogicLayout::channelHeightPacking = 3 [static]

const int LogicLayout::channelWidth = 110 [static]

const int LogicLayout::channelWidthPacking = 4 [static]

const int LogicLayout::locationArrayHeight = 4 [static]

const int LogicLayout::locationArrayWidth = 5 [static]

const int LogicLayout::locationHeight = 65 [static]

const int LogicLayout::locationWidth = 72 [static]

const int LogicLayout::placementTolerance = 40 [static]

const int LogicLayout::xArrayOffset = 0 [static]

const int LogicLayout::yArrayOffset = 18 [static]


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

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