MicropolisEngine/src/connect.cpp File Reference

#include "stdafx.h"
#include "micropolis.h"
#include "tool.h"
#include "position.h"

Go to the source code of this file.

Functions

static MapTile neutralizeRoad (MapTile tile)

Variables

static const unsigned short RoadTable [16]
static const unsigned short RailTable [16]
static const unsigned short WireTable [16]


Detailed Description

Definition in file connect.cpp.


Function Documentation

static MapTile neutralizeRoad ( MapTile  tile  )  [inline, static]

Remove road from the tile.

Parameters:
tile Current tile value.
Returns:
Equivalent tile without road.

Definition at line 105 of file connect.cpp.

Referenced by Micropolis::connectTile(), Micropolis::fixSingle(), Micropolis::layDoze(), Micropolis::layRail(), Micropolis::layRoad(), and Micropolis::layWire().


Variable Documentation

const unsigned short RailTable[16] [static]

Initial value:

 {
    LHRAIL, LVRAIL, LHRAIL, LVRAIL2,
    LVRAIL, LVRAIL, LVRAIL3, LVRAIL7,
    LHRAIL, LVRAIL5, LHRAIL, LVRAIL6,
    LVRAIL4, LVRAIL9, LVRAIL8, LVRAIL10
}

Definition at line 83 of file connect.cpp.

const unsigned short RoadTable[16] [static]

Initial value:

 {
    ROADS, ROADS2, ROADS, ROADS3,
    ROADS2, ROADS2, ROADS4, ROADS8,
    ROADS, ROADS6, ROADS, ROADS7,
    ROADS5, ROADS10, ROADS9, INTERSECTION
}

Definition at line 76 of file connect.cpp.

const unsigned short WireTable[16] [static]

Initial value:

 {
    LHPOWER, LVPOWER, LHPOWER, LVPOWER2,
    LVPOWER, LVPOWER, LVPOWER3, LVPOWER7,
    LHPOWER, LVPOWER5, LHPOWER, LVPOWER6,
    LVPOWER4, LVPOWER9, LVPOWER8, LVPOWER10
}

Definition at line 90 of file connect.cpp.


Generated on Wed Feb 2 09:19:22 2011 for Micropolis by  doxygen 1.5.6