Ejemplo n.º 1
0
        private void AddTriangleInOrder(int DestroyedAliasPosition, int[] TempListOfAliasNumbers)
        {
            switch (DestroyedAliasPosition)
            {
            case 0:
                OwnerManager.AddWallToWallsList(TempListOfAliasNumbers[0] + OwnerManager.Aliases.Count / 2, TempListOfAliasNumbers[1], TempListOfAliasNumbers[0]);
                OwnerManager.AddWallToWallsList(TempListOfAliasNumbers[1] + OwnerManager.Aliases.Count / 2, TempListOfAliasNumbers[1], TempListOfAliasNumbers[0] + OwnerManager.Aliases.Count / 2);
                break;

            case 1:
                OwnerManager.AddWallToWallsList(TempListOfAliasNumbers[0], TempListOfAliasNumbers[1], TempListOfAliasNumbers[0] + OwnerManager.Aliases.Count / 2);
                OwnerManager.AddWallToWallsList(TempListOfAliasNumbers[0] + OwnerManager.Aliases.Count / 2, TempListOfAliasNumbers[1], TempListOfAliasNumbers[1] + OwnerManager.Aliases.Count / 2);
                break;

            case 2:
                OwnerManager.AddWallToWallsList(TempListOfAliasNumbers[0] + OwnerManager.Aliases.Count / 2, TempListOfAliasNumbers[1], TempListOfAliasNumbers[0]);
                OwnerManager.AddWallToWallsList(TempListOfAliasNumbers[1] + OwnerManager.Aliases.Count / 2, TempListOfAliasNumbers[1], TempListOfAliasNumbers[0] + OwnerManager.Aliases.Count / 2);
                break;
            }
        }