/* * Vertical walls: west and east */ private void AddVWall(int row, int column, bool isEast) { if (row == -1) // charisma player { if (isEast) { EastWall.Visible = true; East.Disabled = true; } else { WestWall.Visible = true; West.Disabled = true; } } else // logic player { if (isEast) { column++; } UIHighlightSprite vwall = new UIHighlightSprite((int)VWall.Width, (int)VWall.Height, 0.95f); vwall.Position = NWWallOriginOffset; vwall.Y += row * CellOffsetY; vwall.X += column * CellOffsetX; WallContainer.Add(vwall); } }
/* * Horizontal Walls: north and south */ private void AddHWall(int row, int column, bool isSouth) { if (row == -1) // charisma player { if (isSouth) { SouthWall.Visible = true; South.Disabled = true; } else { NorthWall.Visible = true; North.Disabled = true; } } else // logic player { if (isSouth) { row++; } UIHighlightSprite hwall = new UIHighlightSprite((int)HWall.Width, (int)HWall.Height, 0.95f); hwall.Position = NWWallOriginOffset; hwall.Y += row * CellOffsetY; hwall.X += column * CellOffsetX; WallContainer.Add(hwall); } }