public DoorHorizontalTileSet() : base() { MapTile upperTile = new MapTile("Images/MapTiles/DoorHorizontalTop.png", false, false, false, false, true, false, false, false, true, false); MapTile lowerTile = new MapTile("Images/MapTiles/DoorHorizontalBottom.png", false, false, true, false, false, false, true, false, false, false); OpenDoorAction openDoorAction = new OpenDoorAction(upperTile, lowerTile); upperTile.AddAction(openDoorAction); lowerTile.AddAction(openDoorAction); AddTile(upperTile, new Point(0, 0)); AddTile(lowerTile, new Point(0, 1)); }
public DoorVerticalTileSet() : base() { MapTile leftTile = new MapTile("Images/MapTiles/DoorVerticalLeft.png", false, false, false, true, false, false, false, true, false, false); MapTile rightTile = new MapTile("Images/MapTiles/DoorVerticalRight.png", false, true, false, false, false, false, false, false, false, true); OpenDoorAction openDoorAction = new OpenDoorAction(leftTile, rightTile); leftTile.AddAction(openDoorAction); rightTile.AddAction(openDoorAction); AddTile(leftTile, new Point(0, 0)); AddTile(rightTile, new Point(1, 0)); }