View Single Post
Old 05-02-2008, 19:23   #116
jappilas
Senior Member
 
L'Avatar di jappilas
 
Iscritto dal: Apr 2003
Città: Genova
Messaggi: 4741
della flashing Gem mi stavo occupando io, e questo test
Codice:
    public void testFlashGemDisappearsAfterDrop()
    {
        insertAndUpdate(createFlashingGem(), 11, 0);

        insertAndDropGemsPair();
        makeAllGemsFall();

        controller.update(environment.getTimer().getTime());

        assertNull(grid.getDroppableAt(new Cell(11, 0)));
        assertNull(grid.getDroppableAt(new Cell(13, 0)));
    }
passa con una semplice modifica a makeCrush()
Codice:
    public void makeCrush(Grid grid)
    {
        DroppableList gemList;
        Droppable gemToDelete = searchGemToDelete(grid);
        
        if (gemToDelete != null)
        {
            gemList = grid.getAllGemsSameOf(gemToDelete);
        }
        else
        { 
            gemList = new DroppableList();
        }

        gemList.add(this);
        grid.crushDroppablesWithoutScore(gemList);
    }
EDIT: per me il comportamento delle Flashing Gem sarebbe FIXED (alla rev 2623)


però notavo che le big gem avrebbero ancora qualche idiosincrasia...
Immagini allegate
File Type: jpg bug.JPG (16.7 KB, 36 visite)
__________________
Jappilas is a character created by a friend for his own comic - I feel honored he allowed me to bear his name
Saber's true name belongs to myth - a Heroic Soul out of legends, fighting in our time to fullfill her only wish
Let her image remind of her story, and of the emotions that flew from my heart when i assisted to her Fate

Ultima modifica di jappilas : 10-02-2008 alle 22:53.
jappilas è offline   Rispondi citando il messaggio o parte di esso