t.draw();
}
}
for(int i=0; i<bullets.size(); i++) {
Bullet b = (Bullet) bullets.get(i);
b.draw();
}
for(int i=0; i<blocks.size(); i++) {
if(blocks.get(i) instanceof BasicBlock) {
BasicBlock b = (BasicBlock) blocks.get(i);
b.draw();
} else if(blocks.get(i) instanceof SecondBlock) {
SecondBlock b = (SecondBlock) blocks.get(i);
b.draw();
} else if(blocks.get(i) instanceof ThirdBlock) {
ThirdBlock b = (ThirdBlock) blocks.get(i);
b.draw();
} else if(blocks.get(i) instanceof BonusLifeBlock) {
BonusLifeBlock b = (BonusLifeBlock) blocks.get(i);
b.draw();
}
}
}