public void deploy(int id,Coords c,int nFacing,int elevation,List<Entity> loadedUnits,boolean assaultDrop){
  int packetCount=6 + loadedUnits.size();
  int index=0;
  Object[] data=new Object[packetCount];
  data[index++]=new Integer(id);
  data[index++]=c;
  data[index++]=new Integer(nFacing);
  data[index++]=new Integer(elevation);
  data[index++]=new Integer(loadedUnits.size());
  data[index++]=new Boolean(assaultDrop);
  for (  Entity ent : loadedUnits) {
    data[index++]=new Integer(ent.getId());
  }
  send(new Packet(Packet.COMMAND_ENTITY_DEPLOY,data));
  flushConn();
}

public void deploy ( int id , Coords c , int nFacing , int elevation , List < Entity > loadedUnits , boolean assaultDrop ) { int packetCount = 6 + loadedUnits . size ( ) ; int index = 0 ; Object [ ] data = new Object [ packetCount ] ; data [ index ++ ] = new Integer ( id ) ; data [ index ++ ] = c ; data [ index ++ ] = new Integer ( nFacing ) ; data [ index ++ ] = new Integer ( elevation ) ; data [ index ++ ] = new Integer ( loadedUnits . size ( ) ) ; data [ index ++ ] = new Boolean ( assaultDrop ) ; for ( Entity ent : loadedUnits ) { data [ index ++ ] = new Integer ( ent . getId ( ) ) ; } send ( new Packet ( Packet . COMMAND_ENTITY_DEPLOY , data ) ) ; flushConn ( ) ; }
deploy an entity at the given coordinates , with the given facing , and starting with the given units already loaded .
