Class Constants


  • public class Constants
    extends Object
    A utility class containing constant values.
    • Field Detail

      • GAME_FIXED_WIDTH

        public static final int GAME_FIXED_WIDTH
        The original width of the game when running in fixed mode.
        See Also:
        Constant Field Values
      • GAME_FIXED_HEIGHT

        public static final int GAME_FIXED_HEIGHT
        The original height of the game when running in fixed mode.
        See Also:
        Constant Field Values
      • GAME_FIXED_SIZE

        public static final Dimension GAME_FIXED_SIZE
        Dimension representation of the width and height of the game in fixed mode.
      • GAME_FIXED_ASPECT_RATIO

        public static final double GAME_FIXED_ASPECT_RATIO
        The aspect ratio of the game when running in fixed mode.
        See Also:
        Constant Field Values
      • CLIENT_DEFAULT_ZOOM

        public static final int CLIENT_DEFAULT_ZOOM
        The default camera zoom value.
        See Also:
        Constant Field Values
      • CHUNK_SIZE

        public static final int CHUNK_SIZE
        The width and length of a chunk (8x8 tiles).
        See Also:
        Constant Field Values
      • REGION_SIZE

        public static final int REGION_SIZE
        The width and length of a map region (64x64 tiles).
        See Also:
        Constant Field Values
      • SCENE_SIZE

        public static final int SCENE_SIZE
        The width and length of the scene (13 chunks x 8 tiles).
        See Also:
        Constant Field Values
      • MAX_Z

        public static final int MAX_Z
        The max allowed plane by the game.

        This value is exclusive. The plane is set by 2 bits which restricts the plane value to 0-3.

        See Also:
        Constant Field Values
      • OVERWORLD_MAX_Y

        public static final int OVERWORLD_MAX_Y
        The height of the overworld, in tiles. Coordinates above this are in caves and other such zones.
        See Also:
        Constant Field Values
      • CLIENT_TICK_LENGTH

        public static final int CLIENT_TICK_LENGTH
        The number of milliseconds in a client tick.

        This is the length of a single frame when the client is running at the maximum framerate of 50 fps.

        See Also:
        Constant Field Values
      • GAME_TICK_LENGTH

        public static final int GAME_TICK_LENGTH
        The number of milliseconds in a server game tick.

        This is the length of a single game cycle under ideal conditions. All game-play actions operate within multiples of this duration.

        See Also:
        Constant Field Values
      • ITEM_SPRITE_WIDTH

        public static final int ITEM_SPRITE_WIDTH
        Width of a standard item sprite
        See Also:
        Constant Field Values
      • ITEM_SPRITE_HEIGHT

        public static final int ITEM_SPRITE_HEIGHT
        Height of a standard item sprite
        See Also:
        Constant Field Values
    • Constructor Detail

      • Constants

        public Constants()