@Test public void testGetTile() { final Tile t = new Tile(true, true, false, Trigger.NONE, null, null, null); final Tile t2 = new Tile(false, true, false, Trigger.NONE, null, null, null); final Tile t3 = new Tile(true, true, false, Trigger.NONE, null, null, null); map = new WorldMap("foo", 1, (short) 1, new Tile[] {t, t2, t3}); assertEquals(map.getTile(0, 0), t); assertEquals(map.getTile(1, 0), t2); assertEquals(map.getTile(2, 0), t3); }
public Tile getTile(int x, int y) { return tiles[WorldMap.getTileKey(x, y)]; }
WorldMap { public Tile getTile(int x, int y) { return tiles[WorldMap.getTileKey(x, y)]; } }
WorldMap { public Tile getTile(int x, int y) { return tiles[WorldMap.getTileKey(x, y)]; } WorldMap(final String name, final int id, final short version, final Tile[] tiles); }
WorldMap { public Tile getTile(int x, int y) { return tiles[WorldMap.getTileKey(x, y)]; } WorldMap(final String name, final int id, final short version, final Tile[] tiles); short getVersion(); Tile getTile(int x, int y); static int getTileKey(final int x, final int y); String getName(); int getId(); List<Character> getCharactersNearby(int x, int y); void putCharacterAtPos(Character chara, byte x, byte y); @Override int hashCode(); @Override boolean equals(Object obj); Tile getNearestAvailableTile(byte x, byte y, byte maxDistance, boolean includeGroundTiles,
			boolean includeWaterTiles, boolean includeLavaTiles, boolean includeExitTiles); boolean isTileAvailable(byte x, byte y, boolean canBeGround, boolean canBeWater, boolean canBeLava,
			boolean canBeExitTile); void moveCharacterTo(final Character character, final byte x, final byte y); }
WorldMap { public Tile getTile(int x, int y) { return tiles[WorldMap.getTileKey(x, y)]; } WorldMap(final String name, final int id, final short version, final Tile[] tiles); short getVersion(); Tile getTile(int x, int y); static int getTileKey(final int x, final int y); String getName(); int getId(); List<Character> getCharactersNearby(int x, int y); void putCharacterAtPos(Character chara, byte x, byte y); @Override int hashCode(); @Override boolean equals(Object obj); Tile getNearestAvailableTile(byte x, byte y, byte maxDistance, boolean includeGroundTiles,
			boolean includeWaterTiles, boolean includeLavaTiles, boolean includeExitTiles); boolean isTileAvailable(byte x, byte y, boolean canBeGround, boolean canBeWater, boolean canBeLava,
			boolean canBeExitTile); void moveCharacterTo(final Character character, final byte x, final byte y); static final int MAP_WIDTH; static final int MAP_HEIGHT; static final int VISIBLE_AREA_WIDTH; static final int VISIBLE_AREA_HEIGHT; static final int MAX_DISTANCE; static final int MAX_X; static final int MAX_Y; static final int MIN_X; static final int MIN_Y; }