1 package com.realtime.crossfire.jxclient.server.crossfire;
4 import org.jetbrains.annotations.NotNull;
15 private final StringBuilder
sb =
new StringBuilder();
21 private final Object
sync =
new Object();
24 public void newMap(
final int mapWidth,
final int mapHeight) {
25 sb.append(
"new_map ").append(mapWidth).append(
" ").append(mapHeight).append(
"\n");
31 sb.append(
"map_begin\n");
36 public void mapClear(
final int x,
final int y) {
37 sb.append(
"map_clear ").append(x).append(
" ").append(y).append(
"\n");
41 public void mapDarkness(
final int x,
final int y,
final int darkness) {
42 sb.append(
"map_darkness ").append(x).append(
" ").append(y).append(
" ").append(darkness).append(
"\n");
47 sb.append(
"map_face ").append(location).append(
" ").append(faceNum).append(
"\n");
51 public void mapAnimation(@NotNull
final Location location,
final int animationNum,
final int animationType) {
52 sb.append(
"map_animation ").append(location).append(
" ").append(animationNum).append(
" ").append(animationType).append(
"\n");
57 sb.append(
"map_animation_speed ").append(location).append(
" ").append(animationSpeed).append(
"\n");
62 sb.append(
"map_smooth ").append(location).append(
" ").append(smooth).append(
"\n");
67 sb.append(
"map_scroll ").append(dx).append(
" ").append(dy).append(
"\n");
71 public void magicMap(
final int x,
final int y,
final byte @NotNull [] @NotNull [] data) {
72 sb.append(
"magic_map ").append(x).append(
" ").append(y).append(
" ").append(data.length).append(
"\n");
77 sb.append(
"map_end\n");