public RoadAndWallMapperSystem() { m_wallMapper = new WallMapper(); m_roadMapper = new RoadMapper(); }
private void updateTilemapUsingRoadmap(Tilemap p_tilemap, Tilemap p_roadMap, RoadMapper p_roadMapper) { for (int y = 0; y < p_roadMap.getRows(); y++) { for (int x = 0; x < p_roadMap.getColumns(); x++) { if (p_roadMap.getState(x, y) >= 0) { p_tilemap.setState(x, y, p_roadMapper.getContactType(x, y, p_roadMap)); } else if (p_roadMap.getState(x, y) == -1) { p_tilemap.setState(x, y, 31); } } } }