Crossfire JXClient, Trunk  R20561
CrossfireUpdateMapListener.java
Go to the documentation of this file.
1 /*
2  * This file is part of JXClient, the Fullscreen Java Crossfire Client.
3  *
4  * JXClient is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * JXClient is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with JXClient; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * Copyright (C) 2005-2008 Yann Chachkoff.
19  * Copyright (C) 2006-2011 Andreas Kirschbaum.
20  */
21 
22 package com.realtime.crossfire.jxclient.server.crossfire;
23 
25 import java.util.EventListener;
26 import org.jetbrains.annotations.NotNull;
27 
32 public interface CrossfireUpdateMapListener extends EventListener {
33 
39  void newMap(int mapWidth, int mapHeight);
40 
46  @NotNull
47  Object mapBegin();
48 
54  void mapClear(int x, int y);
55 
62  void mapDarkness(int x, int y, int darkness);
63 
69  void mapFace(@NotNull Location location, int faceNum);
70 
77  void mapAnimation(@NotNull Location location, int animationNum, int animationType);
78 
84  void mapAnimationSpeed(@NotNull Location location, int animationSpeed);
85 
91  void mapSmooth(@NotNull Location location, int smooth);
92 
98  void mapScroll(int dx, int dy);
99 
106  void magicMap(int x, int y, byte[][] data);
107 
111  void mapEnd();
112 
119  void addAnimation(int animation, int flags, @NotNull int[] faces);
120 
121 }
void addAnimation(int animation, int flags, @NotNull int[] faces)
An "addanim" command has been received.
Implements the map model which is shown in the map and magic map views.
Definition: CfMap.java:22
void mapScroll(int dx, int dy)
Part of "map2" parsing: scroll the map view.
void mapAnimationSpeed(@NotNull Location location, int animationSpeed)
Part of "map2" parsing: set the animation speed.
void magicMap(int x, int y, byte[][] data)
Part of "magicmap" parsing: set the magic map color.
Object mapBegin()
Parsing of a "map2" command has been started.
void mapFace(@NotNull Location location, int faceNum)
Part of "map2" parsing: set the face of a cell.
void mapAnimation(@NotNull Location location, int animationNum, int animationType)
Part of "map2" parsing: set the animation of a cell.
void mapSmooth(@NotNull Location location, int smooth)
Part of "map2" parsing: set the smooth level.
void mapClear(int x, int y)
Part of "map2" parsing: clear a cell.
void newMap(int mapWidth, int mapHeight)
A "newmap" command has been received.
void mapDarkness(int x, int y, int darkness)
Part of "map2" parsing: change the darkness of a cell.