g.drawImage(p.getImage(), tRect.xCoord(), tRect.yCoord(), null);
}
for (Projectile p : projectileList) {
if (p instanceof PlayerProjectile) {
PlayerProjectile s = (PlayerProjectile) p;
ProjectileRectangle rect = s.getRectangle();
g.drawImage(rect.getImage(), rect.xCoord(), rect.yCoord(), null);
}
if (p instanceof EnemyProjectile) {
EnemyProjectile s = (EnemyProjectile) p;
ProjectileRectangle rect = s.getRectangle();
g.drawImage(rect.getImage(), rect.xCoord(), rect.yCoord(), null);
}
}
for (Explosion p : explosionList) {
g.drawImage(p.getImage(), p.getLocation().col, p.getLocation().row,
null);