Class Skin

  • All Implemented Interfaces:, java.lang.Cloneable

    public class Skin
    extends java.lang.Object
    implements, java.lang.Cloneable
    Class for storing initial player information like money, shielding, ram power, overlay image etc.
    See Also:
    Serialized Form
    • Field Detail

      • LIGHTS_KEY

        public static int LIGHTS_KEY

        public static int STICKER_KEY
      • TYPE_KEY

        public static int TYPE_KEY
      • PAINT_KEY

        public static int PAINT_KEY

        public static final Skin[] DEFAULT_SKINS
        Standard skins with different colors, no additional shieldings and ram power, 5 slots, 200/250 energy, no money.
      • TYPE_SKINS

        public static final Skin[] TYPE_SKINS
        Skins for different initial shield, ram and money settings.

        public static final java.lang.String[] TYPE_OVERLAYS
        Overlay images for player add-ons.

        public static final java.lang.String[] STICKER_OVERLAYS
        Overlay images for paintings.

        public static final java.lang.String[] LIGHTS_OVERLAYS
        Overlay images for lights.

        public static final int[] DEFAULT_LIGHTS_INDEX
        Fitting light indices for default color skins.

        public static final int MAX_DEFAULT_SKIN
        Max index of default skin.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Skin

        public Skin​(java.lang.String imageName,
                    int innerColor,
                    int outerColor,
                    int ramPower,
                    int explosionShielding,
                    int ramShielding,
                    int rocketShielding,
                    int heatShielding,
                    int slots,
                    int initialEnergy,
                    int initialMaxEnergy,
                    int coolnessFactor,
                    int initialMoney)
    • Method Detail

      • getImageName

        public java.lang.String getImageName()
      • setImageName

        public void setImageName​(java.lang.String imageName)
      • getInnerColor

        public int getInnerColor()
      • setInnerColor

        public void setInnerColor​(int innerColor)
      • getOuterColor

        public int getOuterColor()
      • setOuterColor

        public void setOuterColor​(int outerColor)
      • getInitialExplosionShielding

        public int getInitialExplosionShielding()
      • setInitialExplosionShielding

        public void setInitialExplosionShielding​(int initialExplosionShielding)
      • getInitialRamShielding

        public int getInitialRamShielding()
      • setInitialRamShielding

        public void setInitialRamShielding​(int initialRamShielding)
      • getInitialRocketShielding

        public int getInitialRocketShielding()
      • setInitialRocketShielding

        public void setInitialRocketShielding​(int initialRocketShielding)
      • getInitialHeatShielding

        public int getInitialHeatShielding()
      • setInitialHeatShielding

        public void setInitialHeatShielding​(int initialHeatShielding)
      • getInitialSlots

        public int getInitialSlots()
      • setInitialSlots

        public void setInitialSlots​(int initialSlots)
      • getInitialRamPower

        public int getInitialRamPower()
      • setInitialRamPower

        public void setInitialRamPower​(int initialRamPower)
      • getInitialEnergy

        public int getInitialEnergy()
      • setInitialEnergy

        public void setInitialEnergy​(int initialEnergy)
      • getInitialMaxEnergy

        public int getInitialMaxEnergy()
      • setInitialMaxEnergy

        public void setInitialMaxEnergy​(int initialMaxEnergy)
      • getCoolnessFactor

        public int getCoolnessFactor()
      • setCoolnessFactor

        public void setCoolnessFactor​(int coolnessFactor)
      • getHandicap

        public Handicap getHandicap()
      • setHandicap

        public void setHandicap​(Handicap handicap)
      • getOverlayImages

        public java.util.List<java.lang.String> getOverlayImages()
        Returns a list of overlay images in ascwending key order (for sequential overlay painting).
        List of overlay images.
      • putOverlayImage

        public void putOverlayImage​(int key,
                                    java.lang.String image)
      • getOverlayImage

        public java.lang.String getOverlayImage​(int key)
      • removeOverlayImage

        public void removeOverlayImage​(int key)
      • getDefaultSkin

        public static Skin getDefaultSkin​(int index)
        Gets the default skin for the player with the given index.
        index - The player index
        The default skin.
      • clone

        public java.lang.Object clone()
        Returns a clone.
        clone in class java.lang.Object
      • getInitialMoney

        public int getInitialMoney()
        the initialMoney
      • setInitialMoney

        public void setInitialMoney​(int initialMoney)
        initialMoney - the initialMoney to set