if (attack instanceof SearchlightAttackAction) { addWeapon((SearchlightAttackAction)attack); }
        public AttackSprite(AttackAction attack) {            this.attacks.addElement(attack);            this.entityId = attack.getEntityId();            this.targetType = attack.getTargetType();            this.targetId = attack.getTargetId();            this.ae = game.getEntity(attack.getEntityId());            this.target = game.getTarget(targetType, targetId);            // color?            attackColor = PlayerColors.getColor(ae.getOwner().getColorIndex());            //angle of line connecting two hexes            this.an = (ae.getPosition().radian(target.getPosition()) + (Math.PI * 1.5)) % (Math.PI * 2); // angle            makePoly();            // set bounds            this.bounds = new Rectangle(attackPoly.getBounds());            bounds.setSize(bounds.getSize().width + 1, bounds.getSize().height + 1);            // move poly to upper right of image            attackPoly.translate(-bounds.getLocation().x, -bounds.getLocation().y);            // set names & stuff            attackerDesc = ae.getDisplayName();            targetDesc = target.getDisplayName();            if (attack instanceof WeaponAttackAction) {                addWeapon((WeaponAttackAction)attack);            }            if (attack instanceof KickAttackAction) {                addWeapon((KickAttackAction)attack);            }            if (attack instanceof PunchAttackAction) {                addWeapon((PunchAttackAction)attack);            }            if (attack instanceof PushAttackAction) {                addWeapon((PushAttackAction)attack);            }            if (attack instanceof ClubAttackAction) {                addWeapon((ClubAttackAction)attack);            }            if (attack instanceof ChargeAttackAction) {                addWeapon((ChargeAttackAction)attack);            }            if (attack instanceof DfaAttackAction) {                addWeapon((DfaAttackAction)attack);            }            if (attack instanceof ProtomechPhysicalAttackAction) {                addWeapon((ProtomechPhysicalAttackAction)attack);            }            // nullify image            this.image = null;        }