Beispiel #1
0
        public void ChangePositionWall(int value)
        {
            switch (value)
            {
                case 1: // first south
                    {
                        WallPos = PositionWalls.South;
                        Position = PositionTiles.South;
                        break;
                    }
                case 2:
                    {
                        goto case 1;
                        break;
                    }
                case 3:
                    {
                        goto case 1;
                        break;

                    }
                case 4: //corner
                    { 
                        WallPos = PositionWalls.Corner;
                        Position = PositionTiles.Corner;
                        break;

                    }
                case 5: // first east
                    {
                        WallPos = PositionWalls.East;
                        Position = PositionTiles.East;
                        break;

                    }
                case 6:
                    {
                        goto case 5;
                        break;

                    }
                case 7:
                    {
                        goto case 5;
                        break;

                    }
                case 8: //post
                    {
                        WallPos = PositionWalls.Post;
                        Position = PositionTiles.Post;
                        break;

                    }
                case 9: // window S
                    {
                        PositionW = PositionWallWindow.South;
                        goto case 1;
                        break;

                    }
                case 10:
                    {
                        goto case 9;

                    }
                case 11: //window east
                    {
                        PositionW = PositionWallWindow.East;
                        goto case 4;
                        break;

                    }
                case 12:
                    {
                        goto case 11;
                        break;

                    }
                case 13:
                    {

                        goto case 9;
                    }
                case 14:
                    {
                        goto case 11;
                    }

            }
        }
Beispiel #2
0
 public IEnumerable <Tile> FindTileByPosition(PositionTiles position)
 {
     return(Tiles.Where(tile => tile.Position == position));
 }
Beispiel #3
0
 public Tile()
 {
     Type = Type.None;
     Name = "";
     Pos  = PositionTiles.None;
 }
Beispiel #4
0
 public IEnumerable<Tile> FindTileByPosition(PositionTiles position)
 {
     return Tiles.Where(tile => tile.Position == position);
 }
Beispiel #5
0
        public void ChangePositionWall(int value)
        {
            switch (value)
            {
            case 1:     // first south
            {
                WallPos  = PositionWalls.South;
                Position = PositionTiles.South;
                break;
            }

            case 2:
            {
                goto case 1;
                break;
            }

            case 3:
            {
                goto case 1;
                break;
            }

            case 4:     //corner
            {
                WallPos  = PositionWalls.Corner;
                Position = PositionTiles.Corner;
                break;
            }

            case 5:     // first east
            {
                WallPos  = PositionWalls.East;
                Position = PositionTiles.East;
                break;
            }

            case 6:
            {
                goto case 5;
                break;
            }

            case 7:
            {
                goto case 5;
                break;
            }

            case 8:     //post
            {
                WallPos  = PositionWalls.Post;
                Position = PositionTiles.Post;
                break;
            }

            case 9:     // window S
            {
                PositionW = PositionWallWindow.South;
                goto case 1;
                break;
            }

            case 10:
            {
                goto case 9;
            }

            case 11:     //window east
            {
                PositionW = PositionWallWindow.East;
                goto case 4;
                break;
            }

            case 12:
            {
                goto case 11;
                break;
            }

            case 13:
            {
                goto case 9;
            }

            case 14:
            {
                goto case 11;
            }
            }
        }
Beispiel #6
0
 public IEnumerable<Tile> FindByPosition(PositionTiles pos)
 {
     IEnumerable<Tile> list = new List<Tile>();
     return Styles.Aggregate(list, (current, tileStyle) => current.Union(tileStyle.FindTileByPosition(pos)));
 }
Beispiel #7
0
        public IEnumerable <Tile> FindByPosition(PositionTiles pos)
        {
            IEnumerable <Tile> list = new List <Tile>();

            return(Styles.Aggregate(list, (current, tileStyle) => current.Union(tileStyle.FindTileByPosition(pos))));
        }