Class Outfits

java.lang.Object
games.stendhal.common.Outfits

public class Outfits extends Object
class to store the max outfit numbers for player available outfits.
Author:
kymara
  • Field Details

    • HEAD_OUTFITS

      public static final int HEAD_OUTFITS
      number of player selectable heads
      See Also:
      Constant Field Values
    • CLOTHES_OUTFITS

      public static final int CLOTHES_OUTFITS
      number of player selectable dresses
      See Also:
      Constant Field Values
    • HAIR_OUTFITS

      public static final int HAIR_OUTFITS
      number of player selectable hair styles
      See Also:
      Constant Field Values
    • BODY_OUTFITS

      public static final int BODY_OUTFITS
      number of player selectable body shapes
      See Also:
      Constant Field Values
    • EYES_OUTFITS

      public static final int EYES_OUTFITS
      number of player selectable eyes
      See Also:
      Constant Field Values
    • MOUTH_OUTFITS

      public static final int MOUTH_OUTFITS
      number of player selectable mouths
      See Also:
      Constant Field Values
    • MASK_OUTFITS

      public static final int MASK_OUTFITS
      See Also:
      Constant Field Values
    • HAT_OUTFITS

      public static final int HAT_OUTFITS
      See Also:
      Constant Field Values
    • HATS_NO_HAIR

      public static final List<Integer> HATS_NO_HAIR
    • LAYER_NAMES

      public static final List<String> LAYER_NAMES
    • LAYERS_COUNT

      public static final int LAYERS_COUNT
    • RECOLORABLE_OUTFIT_PARTS

      public static final List<String> RECOLORABLE_OUTFIT_PARTS
    • SKIN_LAYERS

      public static final List<String> SKIN_LAYERS
  • Constructor Details

    • Outfits

      public Outfits()
  • Method Details

    • isDressCompatibleBody

      public static boolean isDressCompatibleBody(Integer body)
      Checks if a dress layer can be worn over an outfit index.
      Parameters:
      body - Body index.
      Returns:
      true if body is null, or if body is within the range of player-selectable indexes, or if the index has been explicitly listed in the dress compatible list.