 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.map;
26 import java.awt.Color;
27 import org.jetbrains.annotations.NotNull;
28 import org.jetbrains.annotations.Nullable;
final Color[] darknessColors
Cache to lookup darkness overlay colors.
Implements the map model which is shown in the map and magic map views.
Color getDarknessColor(final int darkness)
Returns an overlay color for a darkness value.
Utility class for converting darkness values into colors.
static final int DARKNESS_FULL_BRIGHT
The darkness value for a full bright square.
static final Color FOG_OF_WAR_COLOR
The color to use for overlaying fog-of-war tiles.
static final Color BLACK_AND_FOG_OF_WAR_COLOR
The combined color or Color#BLACK and FOG_OF_WAR_COLOR.
static final float MAX_DARKNESS_ALPHA
The minimum darkness alpha value; it is used for completely black tiles.
Represents a square in a CfMap.