|
|
@ -10,7 +10,6 @@ package engine.wpak; |
|
|
|
|
|
|
|
|
|
|
|
import engine.gameManager.ConfigManager; |
|
|
|
import engine.gameManager.ConfigManager; |
|
|
|
import engine.wpak.data.PowerActionEntry; |
|
|
|
import engine.wpak.data.PowerActionEntry; |
|
|
|
import engine.wpak.data.PowerEntry; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.nio.file.Files; |
|
|
|
import java.nio.file.Files; |
|
|
@ -44,12 +43,12 @@ public class PowerActionParser { |
|
|
|
|
|
|
|
|
|
|
|
while (matcher.find()) { |
|
|
|
while (matcher.find()) { |
|
|
|
|
|
|
|
|
|
|
|
PowerEntry powerEntry = parsePowerActionEntry(matcher.group().trim()); |
|
|
|
PowerActionEntry powerActionEntry = parsePowerActionEntry(matcher.group().trim()); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static PowerActionEntry parsePowerEntry(String powerData) { |
|
|
|
private static PowerActionEntry parsePowerActionEntry(String powerActionData) { |
|
|
|
|
|
|
|
|
|
|
|
PowerActionEntry powerActionEntry = new PowerActionEntry(); |
|
|
|
PowerActionEntry powerActionEntry = new PowerActionEntry(); |
|
|
|
|
|
|
|
|
|
|
|