Changeset 4d8825f in lost-haven
- Timestamp:
- Feb 22, 2021, 2:07:11 AM (4 years ago)
- Branches:
- master
- Children:
- 3d64884
- Parents:
- b2d7893
- Files:
-
- 1 added
- 3 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) { -
makefile
rb2d7893 r4d8825f 1 1 GAMEGUI_DEPS = gamegui/Align.class gamegui/Animation.class gamegui/Button.class gamegui/Label.class gamegui/Listable.class gamegui/Member.class gamegui/MultiTextbox.class gamegui/ScrollBar.class gamegui/ScrollList.class gamegui/Textbox.class gamegui/Window.class 2 2 3 MAIN_DEPS = main/Action.class main/AreaOfEffect.class main/ArtifactPoint.class main/AttackType.class main/Attribute.class main/AuxState.class main/ChangeDamage.class main/Confuse.class main/Creature.class main/CreatureType.class main/Damage.class main/Direction.class main/Disable.class main/GameState.class main/Effect.class main/EffectType.class main/EquippedWeapon.class main/Gem.class main/Item.class main/ItemDrop.class main/ItemType.class main/Land.class main/LandType.class main/Location.class main/LostHavenRPG.class main/ManaDrain.class main/Map.class main/MapElement.class main/Model.class main/MoveSpeed.class main/Penetrate.class main/Player.class main/Point.class main/ProjectileSpeed.class main/RespawnPoint.class main/Skill.class main/SpawnPoint.class main/Structure.class main/StructureType.class main/TargetType.class main/TimedEffect.class main/ Weapon.class3 MAIN_DEPS = main/Action.class main/AreaOfEffect.class main/ArtifactPoint.class main/AttackType.class main/Attribute.class main/AuxState.class main/ChangeDamage.class main/Confuse.class main/Creature.class main/CreatureType.class main/Damage.class main/Direction.class main/Disable.class main/GameState.class main/Effect.class main/EffectType.class main/EquippedWeapon.class main/Gem.class main/Item.class main/ItemDrop.class main/ItemType.class main/Land.class main/LandType.class main/Location.class main/LostHavenRPG.class main/ManaDrain.class main/Map.class main/MapElement.class main/Model.class main/MoveSpeed.class main/Penetrate.class main/Player.class main/Point.class main/ProjectileSpeed.class main/RespawnPoint.class main/Skill.class main/SpawnPoint.class main/Structure.class main/StructureType.class main/TargetType.class main/TimedEffect.class main/Utils.class main/Weapon.class 4 4 5 5 GAMEGUI_INNER_DEPS = gamegui/Button\$$1.class gamegui/Label\$$1.class … … 9 9 10 10 IMAGE_FILE_DEPS = images/*.png images/*/*.png images/*/*/*.png 11 MAP_FIL_DEPS = 11 DATA_FILE_DEPS = creatures.txt items.txt spawnPoints.txt structInfo2.txt 12 12 13 13 CLASS_DEPS = $(MAIN_DEPS) $(GAMEGUI_DEPS) 14 FILE_DEPS = $(IMAGE_FILE_DEPS) $( MAP_FILE_DEPS)14 FILE_DEPS = $(IMAGE_FILE_DEPS) $(DATA_FILE_DEPS) 15 15 16 16 LostHaven: $(CLASS_DEPS) $(FILE_DEPS)
Note:
See TracChangeset
for help on using the changeset viewer.