 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.map;
26 import org.jetbrains.annotations.NotNull;
27 import org.jetbrains.annotations.Nullable;
61 for (
int y = 0; y <
SIZE; y++) {
62 for (
int x = 0; x <
SIZE; x++) {
73 public void dirty(
final int x,
final int y) {
94 public boolean setDarkness(
final int x,
final int y,
final int darkness) {
118 public int setSmooth(
final int x,
final int y,
final int layer,
final int smooth) {
129 public int getSmooth(
final int x,
final int y,
final int layer) {
139 public void setColor(
final int x,
final int y,
final int color) {
void dirty()
Marks this square as dirty, i.e., needing redraw.
int getDarkness(final int x, final int y)
Determines the darkness value of one square.
static final int SIZE
Size of patches in x- and y-direction.
int getSmooth(final int x, final int y, final int layer)
Determines the smooth value of one square.
Represents a square area of CfMapSquares.
static final int SIZE_LOG
Log2 of SIZE.
Represents a map (as seen by the client).
CfMapSquare getHeadMapSquare(final int layer)
Returns the map square of the head of a multi-square object.
Manages image information ("faces") needed to display the map view, items, and spell icons.
void clear()
Marks this square as 'fog-og-war'.
boolean resetFogOfWar(final int x, final int y)
Returns and reset the "fog-of-war" flag of a square.
int setSmooth(final int layer, final int smooth)
Sets the smooth value of this square.
boolean setDarkness(final int x, final int y, final int darkness)
Sets the darkness value of one square.
int getColor()
Returns the magic map color of this square.
boolean setDarkness(final int darkness)
Sets the darkness value of this square.
void setColor(final int color)
Sets the magic map color of this square.
CfMapSquare getHeadMapSquare(final int x, final int y, final int layer)
Returns the map square of the head of a multi-square object.
Face getFace(final int layer)
Returns the face of a layer.
int getColor(final int x, final int y)
Determines the magic map color value of one square.
int getDarkness()
Returns the darkness value of this square.
CfMapPatch(@NotNull final CfMap map, final int x0, final int y0)
Creates a new (empty) patch.
int getSmooth(final int layer)
Returns the smooth value of this square.
boolean resetFogOfWar()
Returns and resets the "fog-of-war" flag.
void dirty(final int x, final int y)
Marks a square as dirty.
final CfMapSquare[][] square
The array of CfMapSquares.
CfMapSquare getSquare(final int x, final int y)
Returns one map square.
void setHeadMapSquare(final int x, final int y, final int layer, @Nullable final CfMapSquare mapSquare, final boolean setAlways)
Sets the map square containing the head face for a layer.
Represents a square in a CfMap.
int setSmooth(final int x, final int y, final int layer, final int smooth)
Sets the smooth value of one square.
void clearSquare(final int x, final int y)
Clears the content of one square.
void setColor(final int x, final int y, final int color)
Sets the magic map color of one square.
void setHeadMapSquare(final int layer, @Nullable final CfMapSquare mapSquare, final boolean setAlways)
Sets the map square containing the head face for a layer.
boolean isFogOfWar()
Determines if the square is not up-to-date.
boolean isFogOfWar(final int x, final int y)
Determines if a square is not up-to-date.
Face getFace(final int x, final int y, final int layer)
Determines the face of one square.