legalTrackPlacement[1] = new boolean[] { true };
legalTrackPlacement[1] = new boolean[] { true, true, true, true };
    public void generateTrackRuleList(World world) {        TrackRule[] trackRulesArray = new TrackRule[3];        //1st track type..        byte[] trackTemplates0 = {            CompassPoints.NORTH,	    CompassPoints.NORTH | CompassPoints.SOUTH,	    CompassPoints.NORTHWEST | CompassPoints.WEST | CompassPoints.EAST,	    CompassPoints.NORTHEAST | CompassPoints.WEST | CompassPoints.EAST,            CompassPoints.NORTH | CompassPoints.WEST,	    CompassPoints.NORTHWEST | CompassPoints.WEST        };        legalTrackConfigurations[0] = trackTemplates0;        legalTrackPlacement[0] = new boolean[] { true };        trackRulesArray[0] = new TrackRule(0, "type0", false, 10,		legalTrackConfigurations[0], 0, legalTrackPlacement[0]);        //2nd track type..        legalTrackConfigurations[1] = new byte[] {	    CompassPoints.NORTH,	    CompassPoints.NORTH | CompassPoints.SOUTH	};        legalTrackPlacement[1] = new boolean[] { true };        trackRulesArray[1] = new TrackRule(0, "type1", false, 20,		legalTrackConfigurations[1], 0, legalTrackPlacement[1]);        //3rd track type..        legalTrackConfigurations[2] = new byte[0];        legalTrackPlacement[2] = new boolean[] { true };        trackRulesArray[2] = new TrackRule(0, "type2", false, 30,		legalTrackConfigurations[2], 0, legalTrackPlacement[2]);        //Add track rules to world        for (int i = 0; i < trackRulesArray.length; i++) {            world.add(KEY.TRACK_RULES, trackRulesArray[i]);        }        //Add a single terrain type..		        //We need this since when we built track, the terrain type gets check to see if we can        //built track on it and an exception is thrown if terrain type 0 does not exist.	world.add(KEY.TERRAIN_TYPES, new TerrainType(0,		    TerrainType.CATEGORY_COUNTRY, "Dummy Terrain", 0L));    }