private void sendAction(){
  StendhalClient client=StendhalClient.get();
  Color color;
  final RPAction rpOutfitAction=new RPAction();
  if (Testing.OUTFITS) {
    rpOutfitAction.put(Actions.TYPE,"outfit_extended");
    long value=(body.getIndex() + (dress.getIndex() * 100) + (head.getIndex() * (int)Math.pow(100,2))+ (hair.getIndex() * (int)Math.pow(100,3))+ (mouth.getIndex() * (int)Math.pow(100,5))+ (eyes.getIndex() * (int)Math.pow(100,6)));
    rpOutfitAction.put(Actions.VALUE,value);
  }
 else {
    rpOutfitAction.put(Actions.TYPE,"outfit");
    rpOutfitAction.put(Actions.VALUE,body.getIndex() + (dress.getIndex() * 100) + (head.getIndex() * 100 * 100)+ (hair.getIndex() * 100 * 100* 100));
  }
  color=outfitColor.getColor(OutfitColor.HAIR);
  if (color != null) {
    rpOutfitAction.put(OutfitColor.HAIR,color.getRGB());
  }
  color=outfitColor.getColor(OutfitColor.SKIN);
  if (color != null) {
    rpOutfitAction.put(OutfitColor.SKIN,color.getRGB());
  }
  color=outfitColor.getColor(OutfitColor.DRESS);
  if (color != null) {
    rpOutfitAction.put(OutfitColor.DRESS,color.getRGB());
  }
  if (Testing.OUTFITS) {
    color=outfitColor.getColor(OutfitColor.EYES);
    if (color != null) {
      rpOutfitAction.put(OutfitColor.EYES,color.getRGB());
    }
  }
  client.send(rpOutfitAction);
}

private void sendAction ( ) { StendhalClient client = StendhalClient . get ( ) ; Color color ; final RPAction rpOutfitAction = new RPAction ( ) ; if ( Testing . OUTFITS ) { rpOutfitAction . put ( Actions . TYPE , "outfit_extended" ) ; long value = ( body . getIndex ( ) + ( dress . getIndex ( ) * 100 ) + ( head . getIndex ( ) * ( int ) Math . pow ( 100 , 2 ) ) + ( hair . getIndex ( ) * ( int ) Math . pow ( 100 , 3 ) ) + ( mouth . getIndex ( ) * ( int ) Math . pow ( 100 , 5 ) ) + ( eyes . getIndex ( ) * ( int ) Math . pow ( 100 , 6 ) ) ) ; rpOutfitAction . put ( Actions . VALUE , value ) ; } else { rpOutfitAction . put ( Actions . TYPE , "outfit" ) ; rpOutfitAction . put ( Actions . VALUE , body . getIndex ( ) + ( dress . getIndex ( ) * 100 ) + ( head . getIndex ( ) * 100 * 100 ) + ( hair . getIndex ( ) * 100 * 100 * 100 ) ) ; } color = outfitColor . getColor ( OutfitColor . HAIR ) ; if ( color != null ) { rpOutfitAction . put ( OutfitColor . HAIR , color . getRGB ( ) ) ; } color = outfitColor . getColor ( OutfitColor . SKIN ) ; if ( color != null ) { rpOutfitAction . put ( OutfitColor . SKIN , color . getRGB ( ) ) ; } color = outfitColor . getColor ( OutfitColor . DRESS ) ; if ( color != null ) { rpOutfitAction . put ( OutfitColor . DRESS , color . getRGB ( ) ) ; } if ( Testing . OUTFITS ) { color = outfitColor . getColor ( OutfitColor . EYES ) ; if ( color != null ) { rpOutfitAction . put ( OutfitColor . EYES , color . getRGB ( ) ) ; } } client . send ( rpOutfitAction ) ; }
sent the outfit change action to the server .
