| | |
| | | |
| | | private int[][] mapMatrix; |
| | | |
| | | public static final Boolean CACHE_TURN_MATRIX = Boolean.FALSE; |
| | | public static final Boolean CACHE_TURN_MATRIX = Boolean.TRUE; |
| | | |
| | | private int[][] turnMatrix; |
| | | |
| | |
| | | } |
| | | |
| | | public String[][] initWaveMatrix(Integer lev) { |
| | | log.info("There is initializing Wave Matrix......"); |
| | | lev = Optional.ofNullable(lev).orElse(MAP_DEFAULT_LEV); |
| | | |
| | | String[][] codeMatrix = getCodeMatrix(lev); |
| | |
| | | } |
| | | |
| | | public synchronized DynamicNode[][] initDynamicMatrix(Integer lev) { |
| | | log.info("There is initializing Dynamic Matrix......"); |
| | | lev = Optional.ofNullable(lev).orElse(MAP_DEFAULT_LEV); |
| | | |
| | | String[][] codeMatrix = getCodeMatrix(lev); |
| | |
| | | } |
| | | |
| | | public synchronized String[][] initCdaMatrix(Integer lev) { |
| | | log.info("There is initializing Cda Matrix......"); |
| | | lev = Optional.ofNullable(lev).orElse(MAP_DEFAULT_LEV); |
| | | |
| | | String[][] codeMatrix = getCodeMatrix(lev); |
| | |
| | | } |
| | | |
| | | public synchronized int[][] initTurnMatrix(Integer lev) { |
| | | log.info("There is initializing Turn Matrix......"); |
| | | lev = Optional.ofNullable(lev).orElse(MAP_DEFAULT_LEV); |
| | | |
| | | String[][] codeMatrix = getCodeMatrix(lev); |
| | |
| | | |
| | | |
| | | public synchronized int[][] initMapMatrix(Integer lev) { |
| | | log.info("There is initializing Map Matrix......"); |
| | | lev = Optional.ofNullable(lev).orElse(MAP_DEFAULT_LEV); |
| | | |
| | | String[][] codeMatrix = getCodeMatrix(lev); |
| | |
| | | } |
| | | |
| | | public synchronized String[][] initCodeMatrix(Integer lev) { |
| | | log.info("【ASTAR】正在计算矩阵数据......"); |
| | | log.info("There is initializing Code Matrix......"); |
| | | lev = Optional.ofNullable(lev).orElse(MAP_DEFAULT_LEV); |
| | | List<Code> codeList = codeService.list(new LambdaQueryWrapper<Code>() |
| | | .eq(Code::getStatus, 1) |