Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.map;
27 import org.jetbrains.annotations.NotNull;
28 import org.jetbrains.annotations.Nullable;
171 for (layer = 0; layer <
faces.length; layer++) {
177 if (layer >=
faces.length) {
218 public int setSmooth(
final int layer,
final int smooth) {
219 final boolean fogOfWarCleared =
fogOfWar;
220 final boolean smoothChanged =
smooths[layer] != smooth;
222 final boolean markDirty =
fogOfWar || smoothChanged;
227 return (fogOfWarCleared ? 1 : 0)|(smoothChanged ? 2 : 0);
244 final boolean markDirty = this.color !=
color;
266 if (
faces[layer] != face) {
295 heads[layer] = mapSquare;
static final int DEFAULT_DARKNESS
int getSmooth(final int layer)
boolean setDarkness(final int darkness)
static final Face DEFAULT_FACE
static final int DARKNESS_FULL_BRIGHT
int setSmooth(final int layer, final int smooth)
void setHeadMapSquare(final int layer, @Nullable final CfMapSquare mapSquare, final boolean setAlways)
void squareModified(@NotNull final CfMapSquare mapSquare)
Face getFace(final int layer)
CfMapSquare(@NotNull final CfMap map, final int x, final int y)
CfMapSquare getHeadMapSquare(final int layer)
final CfMapSquare[] heads
static final int DEFAULT_SMOOTH
void setFace(final int layer, @Nullable final Face face)
static final int DEFAULT_COLOR
void setColor(final int color)