Crossfire JXClient, Trunk
Map2.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-2017,2019-2023 Andreas Kirschbaum
20  * Copyright (C) 2010-2012,2014-2018,2020-2023 Nicolas Weeger
21  */
22 
23 package com.realtime.crossfire.jxclient.protocol;
24 
29 public interface Map2 {
30 
34  int NUM_LAYERS = 10;
35 
39  int COORD_OFFSET = 15;
40 
44  int TYPE_COORDINATE = 0;
45 
49  int TYPE_SCROLL = 1;
50 
55 
59  int COORD_DARKNESS = 1;
60 
64  int COORD_LAYER0 = 0x10;
65 
69  int COORD_LAYER1 = 0x11;
70 
74  int COORD_LAYER2 = 0x12;
75 
79  int COORD_LAYER3 = 0x13;
80 
84  int COORD_LAYER4 = 0x14;
85 
89  int COORD_LAYER5 = 0x15;
90 
94  int COORD_LAYER6 = 0x16;
95 
99  int COORD_LAYER7 = 0x17;
100 
104  int COORD_LAYER8 = 0x18;
105 
109  int COORD_LAYER9 = 0x19;
110 
114  int FACE_ANIMATION = 0x8000;
115 
119  int ANIM_NORMAL = 0;
120 
124  int ANIM_RANDOM = 1;
125 
130  int ANIM_SYNC = 2;
131 
135  int ANIM_MASK = 0x1FFF;
136 
140  int ANIM_TYPE_SHIFT = 13;
141 
146  int ANIM_TYPE_MASK = 3;
147 
148 }
com.realtime.crossfire.jxclient.protocol.Map2.COORD_OFFSET
int COORD_OFFSET
Offset for coordinate values in map2 command.
Definition: Map2.java:39
com.realtime.crossfire.jxclient.protocol.Map2.ANIM_RANDOM
int ANIM_RANDOM
Animation type: randomized animation.
Definition: Map2.java:124
com.realtime.crossfire.jxclient.protocol.Map2.COORD_LAYER8
int COORD_LAYER8
Face information for layer 8.
Definition: Map2.java:104
com.realtime.crossfire.jxclient.protocol.Map2.COORD_CLEAR_SPACE
int COORD_CLEAR_SPACE
Clear a square.
Definition: Map2.java:54
com.realtime.crossfire.jxclient.protocol.Map2.COORD_LAYER5
int COORD_LAYER5
Face information for layer 5.
Definition: Map2.java:89
com.realtime.crossfire.jxclient.protocol.Map2.ANIM_SYNC
int ANIM_SYNC
Animation type: synchronized animation.
Definition: Map2.java:130
com.realtime.crossfire.jxclient.protocol.Map2.ANIM_MASK
int ANIM_MASK
The mask for extracting the animation ID.
Definition: Map2.java:135
com.realtime.crossfire.jxclient.protocol.Map2.ANIM_NORMAL
int ANIM_NORMAL
Animation type: normal animation.
Definition: Map2.java:119
com.realtime.crossfire.jxclient.protocol.Map2.COORD_LAYER0
int COORD_LAYER0
Face information for layer 0.
Definition: Map2.java:64
com.realtime.crossfire.jxclient.protocol.Map2.TYPE_SCROLL
int TYPE_SCROLL
Scroll information.
Definition: Map2.java:49
com.realtime.crossfire.jxclient.protocol.Map2.ANIM_TYPE_SHIFT
int ANIM_TYPE_SHIFT
The lowest bit of the animation type.
Definition: Map2.java:140
com.realtime.crossfire.jxclient.protocol.Map2.COORD_LAYER3
int COORD_LAYER3
Face information for layer 3.
Definition: Map2.java:79
com.realtime.crossfire.jxclient.protocol.Map2.COORD_LAYER6
int COORD_LAYER6
Face information for layer 6.
Definition: Map2.java:94
com.realtime.crossfire.jxclient.protocol.Map2
Interface defining constants for the "map2" Crossfire protocol message.
Definition: Map2.java:29
com.realtime.crossfire.jxclient.protocol.Map2.TYPE_COORDINATE
int TYPE_COORDINATE
Normal coordinate.
Definition: Map2.java:44
com.realtime.crossfire.jxclient.protocol.Map2.COORD_LAYER7
int COORD_LAYER7
Face information for layer 7.
Definition: Map2.java:99
com.realtime.crossfire.jxclient.protocol.Map2.COORD_LAYER1
int COORD_LAYER1
Face information for layer 1.
Definition: Map2.java:69
com.realtime.crossfire.jxclient.protocol.Map2.COORD_LAYER2
int COORD_LAYER2
Face information for layer 2.
Definition: Map2.java:74
com.realtime.crossfire.jxclient.protocol.Map2.COORD_LAYER4
int COORD_LAYER4
Face information for layer 4.
Definition: Map2.java:84
com.realtime.crossfire.jxclient.protocol.Map2.NUM_LAYERS
int NUM_LAYERS
The total number of map layers to display.
Definition: Map2.java:34
com.realtime.crossfire.jxclient.protocol.Map2.FACE_ANIMATION
int FACE_ANIMATION
The bit value whether this is a face or an animation.
Definition: Map2.java:114
com.realtime.crossfire.jxclient.protocol.Map2.COORD_DARKNESS
int COORD_DARKNESS
Darkness information.
Definition: Map2.java:59
com.realtime.crossfire.jxclient.protocol.Map2.ANIM_TYPE_MASK
int ANIM_TYPE_MASK
The mask for extracting the animation type.
Definition: Map2.java:146
com.realtime.crossfire.jxclient.protocol.Map2.COORD_LAYER9
int COORD_LAYER9
Face information for layer 9.
Definition: Map2.java:109