Пример #1
0
        public void findPiece()
        {
            if (currentPit.hasPiece())
            {
                Piece piece = currentPit.getPiece();
                if (player.getBoundingBox().Intersects(piece.getBoundingBox()))
                {
                    SoundEffect blieb = Game.Content.Load <SoundEffect>("clocktick");
                    blieb.Play();
                    player.addPiece(piecePlaces.fetchPieceFrom(currentPit.getNummer()));
                    currentPit.removePiece();
#if DEBUG
                    Console.Error.WriteLine(piecePlaces);
#endif
                    header.setPieces(player.getItems().Count);
                }
            }
        }