Crossfire JXClient, Trunk  R20561
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-2011 Andreas Kirschbaum.
20  */
21 
22 package com.realtime.crossfire.jxclient.protocol;
23 
28 public interface Map2 {
29 
33  int NUM_LAYERS = 10;
34 
38  int COORD_OFFSET = 15;
39 
43  int TYPE_COORDINATE = 0;
44 
48  int TYPE_SCROLL = 1;
49 
54 
58  int COORD_DARKNESS = 1;
59 
63  int COORD_LAYER0 = 0x10;
64 
68  int COORD_LAYER1 = 0x11;
69 
73  int COORD_LAYER2 = 0x12;
74 
78  int COORD_LAYER3 = 0x13;
79 
83  int COORD_LAYER4 = 0x14;
84 
88  int COORD_LAYER5 = 0x15;
89 
93  int COORD_LAYER6 = 0x16;
94 
98  int COORD_LAYER7 = 0x17;
99 
103  int COORD_LAYER8 = 0x18;
104 
108  int COORD_LAYER9 = 0x19;
109 
113  int FACE_ANIMATION = 0x8000;
114 
118  int ANIM_NORMAL = 0;
119 
123  int ANIM_RANDOM = 1;
124 
129  int ANIM_SYNC = 2;
130 
134  int ANIM_MASK = 0x1FFF;
135 
139  int ANIM_TYPE_SHIFT = 13;
140 
145  int ANIM_TYPE_MASK = 3;
146 
147 }
int COORD_LAYER3
Face information for layer 3.
Definition: Map2.java:78
int COORD_LAYER7
Face information for layer 7.
Definition: Map2.java:98
int COORD_LAYER6
Face information for layer 6.
Definition: Map2.java:93
int TYPE_COORDINATE
Normal coordinate.
Definition: Map2.java:43
int COORD_LAYER1
Face information for layer 1.
Definition: Map2.java:68
int COORD_LAYER2
Face information for layer 2.
Definition: Map2.java:73
int FACE_ANIMATION
Bit value whether this is a face or an animation.
Definition: Map2.java:113
int COORD_LAYER4
Face information for layer 4.
Definition: Map2.java:83
int COORD_DARKNESS
Darkness information.
Definition: Map2.java:58
int NUM_LAYERS
The total number of map layers to display.
Definition: Map2.java:33
int ANIM_TYPE_MASK
The mask for extracting the animation type.
Definition: Map2.java:145
Interface defining constants for the "map2" Crossfire protocol message.
Definition: Map2.java:28
int COORD_LAYER9
Face information for layer 9.
Definition: Map2.java:108
int COORD_OFFSET
Offset for coordinate values in map2 command.
Definition: Map2.java:38
int COORD_LAYER8
Face information for layer 8.
Definition: Map2.java:103
int ANIM_SYNC
Animation type: synchronized animation.
Definition: Map2.java:129
int ANIM_RANDOM
Animation type: randomized animation.
Definition: Map2.java:123
int COORD_LAYER5
Face information for layer 5.
Definition: Map2.java:88
int ANIM_MASK
The mask for extracting the animation ID.
Definition: Map2.java:134
int TYPE_SCROLL
Scroll information.
Definition: Map2.java:48
int ANIM_NORMAL
Animation type: normal animation.
Definition: Map2.java:118
int ANIM_TYPE_SHIFT
The lowest bit of the animation type.
Definition: Map2.java:139
int COORD_LAYER0
Face information for layer 0.
Definition: Map2.java:63