|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.b3dgs.lionengine.game.map.Border20Map
public class Border20Map
Represents a 20 Axis map, designed to perform linking between two differents areas. A good example is the fog of war, or a tree area inside a grass area. It supports until 20 links (verticals, horizontals, corners in/out, middle...). It has to be used with a tile based map.
Border20
Constructor Summary | |
---|---|
Border20Map(boolean middle)
Create a Border20Map map. |
Method Summary | |
---|---|
void |
checkAll(Border20[][] map,
int tx,
int ty,
int tw,
int th,
int ray)
Check all tiles arround the specified location using the specified ray (area). |
void |
create(TileBasedMap<?> map)
Create the Border20Map map. |
void |
finalCheck(Border20[][] map,
int y,
int x)
Usually called in case of matching error. |
Border20 |
get(Border20[][] map,
int v,
int h)
Get axis value of the specified location. |
void |
set(Border20[][] map,
int v,
int h,
Border20 axis)
Set an axis value. |
void |
updateExclude(Border20[][] map,
int tx,
int ty)
Special update routine for the outer area. |
void |
updateInclude(Border20[][] map,
int tx,
int ty,
int tw,
int th,
int ray)
Special update routine for the inner area. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Border20Map(boolean middle)
middle
- middle flag.Method Detail |
---|
public void create(TileBasedMap<?> map)
map
- map reference.public void updateInclude(Border20[][] map, int tx, int ty, int tw, int th, int ray)
map
- axis20 map reference (map which will contain axis data).tx
- tile x to check.ty
- tile y to check.tw
- width in tile to check.th
- height in tile to check.ray
- ray to check (in tile).public void updateExclude(Border20[][] map, int tx, int ty)
map
- axis20 map reference (map which will contain axis data).tx
- tile x to check.ty
- tile y to check.public void checkAll(Border20[][] map, int tx, int ty, int tw, int th, int ray)
map
- axis20 map reference (map which will contain axis data).tx
- tile x to check.ty
- tile y to check.tw
- width in tile to check.th
- height in tile to check.ray
- ray to check (in tile).public void finalCheck(Border20[][] map, int y, int x)
map
- axis20 map reference (map which will contain axis data).x
- tile x to check.y
- tile y to check.public void set(Border20[][] map, int v, int h, Border20 axis)
map
- map reference.v
- vertical tile.h
- horizontal tile.axis
- axis value.public Border20 get(Border20[][] map, int v, int h)
map
- map reference.v
- vertical tile.h
- horizontal tile.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |