graph.setColor(game.getEntity(attack.getEntityId()).getOwner().getColor());
graph.setColor(game.getEntity(entityId).getOwner().getColor());
        public void draw() {            // create image for buffer            Image tempImage = createImage(bounds.width, bounds.height);            if (tempImage == null) {                return;            }            Graphics graph = tempImage.getGraphics();                        // fill with key color            graph.setColor(new Color(TRANSPARENT));            graph.fillRect(0, 0, bounds.width, bounds.height);            // draw attack poly            graph.setColor(game.getEntity(attack.getEntityId()).getOwner().getColor());            graph.fillPolygon(attackPoly);            graph.setColor(Color.white);            graph.drawPolygon(attackPoly);                        // create final image            this.image = createImage(new FilteredImageSource(tempImage.getSource(),                    new KeyAlphaFilter(TRANSPARENT)));        }