Point, direction: Direction) -> Bool { let numberOfSquares: Int = map.count let charaIndex: Int = characterPoint.x + characterPoint.y * numberOfSquares var mapIntArray: [Int32] = [] for y in 0..<numberOfSquares { for x in 0..<numberOfSquares { mapIntArray.append(map[y][x]) } } return LogicUtil.isStep(UnsafeMutablePointer<Int32>(mapIntArray), numOfSquares: Int32(numberOfSquares), charaIndex: Int32(charaIndex), direction: Int32(direction.rawValue)) } }
Point, direction: Direction) -> Bool { let numberOfSquares: Int = map.count let charaIndex: Int = characterPoint.x + characterPoint.y * numberOfSquares var mapIntArray: [Int32] = [] for y in 0..<numberOfSquares { for x in 0..<numberOfSquares { mapIntArray.append(map[y][x]) } } return LogicUtil.isStep(UnsafeMutablePointer<Int32>(mapIntArray), numOfSquares: Int32(numberOfSquares), charaIndex: Int32(charaIndex), direction: Int32(direction.rawValue)) } }