int categoryWeapon = Category.ENNEMY_BULLET.getValue();
if (category == Category.PLAYER.getValue())
categoryWeapon = Category.PLAYER_BULLET.getValue();
this.weapons.put(MissileWeapon.ID, new MissileWeapon(categoryWeapon, 40));
this.weapons.put(FireWeapon.ID, new FireWeapon(categoryWeapon, 20));
this.weapons.put(ShiboleetWeapon.ID, new ShiboleetWeapon(categoryWeapon, 10));
try {
this.sprite = ImageStore.getImage(spriteName);
} catch (IOException exception) {
System.err.println("Unfindable image " + exception.getMessage());
return;