// public static BufferedImage getImage() {
// return Enums.ranbowLazer1;
// }
public void networkServerMessageIn(ClientEventOut in,GameState g) {
SpellCastEvent i=(SpellCastEvent)in;
Unit u=g.getUnits().get(i.unitSource);
if(u !=null){
g.getSpells().put(i.ID, new RainbowCannon(i.ID,i.unitSource,i.theta,new Point2D.Double(u.getLoc().getX(),u.getLoc().getY())));
g.udp.newSpell(i.ID, i.unitSource, i.type, u.getLoc().getX(),u.getLoc().getY());
}