- Timestamp:
- Feb 22, 2021, 2:07:11 AM (4 years ago)
- Branches:
- master
- Children:
- 3d64884
- Parents:
- b2d7893
- Location:
- main
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/LostHavenRPG.java
rb2d7893 r4d8825f 385 385 creatureMap = new HashMap<CreatureType, Creature>(); 386 386 try { 387 BufferedReader in = new BufferedReader(new FileReader("creatures.txt"));387 BufferedReader in = Utils.loadTextFile("creatures.txt"); 388 388 while (in.ready()) { 389 389 Creature cr = Creature.loadTemplate(in); … … 405 405 spawnPoints = new LinkedList<SpawnPoint>(); 406 406 try { 407 BufferedReader in = new BufferedReader(new FileReader("spawnPoints.txt"));407 BufferedReader in = Utils.loadTextFile("spawnPoints.txt"); 408 408 while (in.ready()) { 409 409 Creature type = creatureMap.get(CreatureType.valueOf(in.readLine())); … … 440 440 imgBow[6] = ImageIO.read(getClass().getResource("/images/projectiles/bowWW.png")); 441 441 imgBow[7] = ImageIO.read(getClass().getResource("/images/projectiles/bowNW.png")); 442 BufferedReader in = new BufferedReader(new FileReader("items.txt"));442 BufferedReader in = Utils.loadTextFile("items.txt"); 443 443 while (in.ready()) { 444 444 Item item; -
main/Map.java
rb2d7893 r4d8825f 68 68 } 69 69 } 70 BufferedReader in = new BufferedReader(new FileReader(structFile));70 BufferedReader in = Utils.loadTextFile(structFile); 71 71 String str; 72 72 while ((str = in.readLine()) != null) {
Note:
See TracChangeset
for help on using the changeset viewer.