Package serverMessages

Examples of serverMessages.SpellCastEvent


          int sourceID=in.readInt();
          int lvl=in.readInt();
          int x1=in.readInt();
          int y1=in.readInt();
          double theta=in.readDouble();
          ServerMain.enQueue(new SpellCastEvent(PlayerID,Time,sourceID,x1,y1,type,lvl,theta) );
          break;
       
        }
        System.out.println("Stuff in");
       
View Full Code Here


   
  }
 
 
  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,newSpell(i,  u));
      g.udp.newSpell(i.ID, i.unitSource, i.type, u.getLoc().getX(),u.getLoc().getY());
    }else{
View Full Code Here

//  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());
    }
View Full Code Here

TOP

Related Classes of serverMessages.SpellCastEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.