315316317318319320321322323324325
null); } if (p instanceof TNT) {// for instance of TNT TNT tnt = (TNT) p; TNTRectangle tntRect = tnt.getRectangle(); g.drawImage(tntRect.getImage(), tntRect.xCoord(), tntRect.yCoord(), null); } } for (PlayerTank p : tankList) {
318319320321322323324325326327328
if (p instanceof TNT) {// for instance of TNT TNT tnt = (TNT) p; TNTRectangle tntRect = tnt.getRectangle(); g.drawImage(tntRect.getImage(), tntRect.xCoord(), tntRect.yCoord(), null); } }