public class Constants extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CHUNK_SIZE
The width and length of a chunk (8x8 tiles).
|
static int |
CLIENT_DEFAULT_ZOOM
The default camera zoom value.
|
static int |
CLIENT_TICK_LENGTH
The number of milliseconds in a client tick.
|
static double |
GAME_FIXED_ASPECT_RATIO
The aspect ratio of the game when running in fixed mode.
|
static int |
GAME_FIXED_HEIGHT
The original height of the game when running in fixed mode.
|
static Dimension |
GAME_FIXED_SIZE
Dimension representation of the width and height of the game in fixed mode.
|
static int |
GAME_FIXED_WIDTH
The original width of the game when running in fixed mode.
|
static int |
GAME_TICK_LENGTH
The number of milliseconds in a server game tick.
|
static float |
HIGH_ALCHEMY_MULTIPLIER
High alchemy = shop price * HIGH_ALCHEMY_MULTIPLIER
|
static int |
ITEM_SPRITE_HEIGHT
Height of a standard item sprite
|
static int |
ITEM_SPRITE_WIDTH
Width of a standard item sprite
|
static int |
MAX_Z
The max allowed plane by the game.
|
static int |
REGION_SIZE
The width and length of a map region (64x64 tiles).
|
static int |
SCENE_SIZE
The width and length of the scene (13 chunks x 8 tiles).
|
static int |
TILE_FLAG_BRIDGE |
Constructor and Description |
---|
Constants() |
public static final int GAME_FIXED_WIDTH
public static final int GAME_FIXED_HEIGHT
public static final Dimension GAME_FIXED_SIZE
public static final double GAME_FIXED_ASPECT_RATIO
public static final int CLIENT_DEFAULT_ZOOM
public static final int CHUNK_SIZE
public static final int REGION_SIZE
public static final int SCENE_SIZE
public static final int MAX_Z
This value is exclusive. The plane is set by 2 bits which restricts the plane value to 0-3.
public static final int TILE_FLAG_BRIDGE
public static final int CLIENT_TICK_LENGTH
This is the length of a single frame when the client is running at the maximum framerate of 50 fps.
public static final int GAME_TICK_LENGTH
This is the length of a single game cycle under ideal conditions. All game-play actions operate within multiples of this duration.
public static final int ITEM_SPRITE_WIDTH
public static final int ITEM_SPRITE_HEIGHT
public static final float HIGH_ALCHEMY_MULTIPLIER
ItemComposition.getPrice()
,
Constant Field ValuesCopyright © 2014–2019. All rights reserved.