Commit Graph

1391 Commits (0e2ff2c074433ed847404d5ab3f9d2a92c6ed9f8)

Author SHA1 Message Date
melvin 1eb221b525 replaced TextFile with FileIO 2011-08-05 12:27:01 +08:00
melvin 3fc0f5be2f use FileIO.close 2011-08-05 12:26:35 +08:00
melvin a0a4625615 read the whole file as a string and then parse it 2011-08-05 12:26:13 +08:00
melvin 69554037eb read the whole file as a string first and then process it 2011-08-05 12:25:23 +08:00
melvin e4dd45b93c use FileIO.close and FileIO.toStr 2011-08-05 12:24:37 +08:00
melvin 14bf574851 use FileIO.close instead of close() 2011-08-05 12:20:01 +08:00
melvin 5dd7a9070c use FileIO instead of ImageIO.read and close() 2011-08-05 12:19:34 +08:00
melvin f4e7307f0c use FileIO.toImg instead of ImageIO.read 2011-08-05 12:18:37 +08:00
melvin 3230db73c4 use FileIO.toImg instead of ImageIO.read 2011-08-05 12:18:07 +08:00
melvin 9ef0a7a935 use FileIO.close instead of close() 2011-08-05 12:17:20 +08:00
melvin c4fbe9e2ad use FileIO.close instead of close() 2011-08-05 12:17:05 +08:00
melvin edf7b5cd10 replaced TextFile with FileIO 2011-08-05 12:16:48 +08:00
melvin c89a90d995 use FileIO.close instead of close() 2011-08-05 12:16:22 +08:00
melvin ff206c22b7 use FileIO instead of ImageIO 2011-08-05 12:14:47 +08:00
melvin 5c3ed8ffa9 removed unused methods 2011-08-05 12:14:14 +08:00
melvin 1a1b1d7d53 renamed TextFile as FileIO 2011-08-05 12:13:57 +08:00
melvin 704c7f7170 renamed getContents to read and it now throws IOException 2011-08-05 10:43:10 +08:00
melvin 110455e644 check that there are enough spellCards 2011-08-04 15:36:45 +08:00
melvin 03390b6860 use TextFile and Scanner 2011-08-04 15:25:37 +08:00
melvin 344bb47eb7 use TextFile and Scanner 2011-08-04 15:25:25 +08:00
melvin 84c65e505e simplified error handling 2011-08-04 15:25:06 +08:00
melvin 355bee3333 use TextFile instead of ReadmeFile 2011-08-04 15:24:46 +08:00
melvin a22f3e9ddb print error message if exception throw during close 2011-08-04 15:24:30 +08:00
melvin f815a5b620 removed ReadMeFile, superceeded by magic.data.TextFile 2011-08-04 15:24:12 +08:00
melvin a6abbfb9c3 added helper methods for reading/writing text file 2011-08-04 15:20:18 +08:00
melvin c9faeac5a2 removed throws 2011-08-04 13:56:57 +08:00
melvin 0500754520 removed unnecessary throws clause 2011-08-04 13:56:40 +08:00
melvin cd7d35a16d make sure Exception are final and variable is named ex for consistency 2011-08-04 13:17:26 +08:00
melvin a476a468e0 show exception message in text area 2011-08-04 13:16:54 +08:00
melvin 51181c43b5 replaced new RuntimeException(ex.getMessage()) with new RuntimeException(ex) 2011-08-03 22:47:43 +08:00
melvin 9c434d4089 use library hash for shuffling and player hash, previously library size was used in both but it does not capture change in game state due to shuffle into library effects 2011-08-03 22:46:54 +08:00
melvin 94baaa990c exit game if controller thread throws an exception 2011-08-03 16:57:08 +08:00
melvin bf62624e9f setVisible must run from EDT 2011-08-03 15:48:27 +08:00
melvin a49cd5c346 replaced Exception with more specific subclass 2011-08-03 15:33:08 +08:00
melvin 94660c7586 removed catch all 2011-08-03 15:28:10 +08:00
melvin 62fec22d21 simplified logic 2011-08-03 15:27:54 +08:00
melvin 8fb0381363 catch all handler to build report if controller crashes 2011-08-03 15:27:34 +08:00
melvin fb4cddaa14 replaced Exception with final Exception 2011-08-03 15:27:03 +08:00
melvin ff46607cce replaced Exception with final Exception 2011-08-03 15:26:23 +08:00
melvin 20adb680ab replaced Exception with IOException 2011-08-03 15:25:42 +08:00
melvin 2f024b9395 replaced Exception with IOException 2011-08-03 15:25:35 +08:00
melvin 6a6888737a rethrow IOException as RuntimeException 2011-08-03 15:25:04 +08:00
melvin 012e51da13 replaced Error with ERROR 2011-08-03 15:24:28 +08:00
melvin c2fee56f69 replaced Exception with InterruptedException 2011-08-03 15:06:37 +08:00
melvin 3cf889d589 wrapped long lines 2011-08-03 15:06:18 +08:00
melvin fa59f027ec replaced Exception with specific subclass 2011-08-03 15:01:47 +08:00
melvin 8d32fde337 replaced Exception with specific subclass 2011-08-03 14:54:24 +08:00
melvin 91ee8d731d replaced Exception with more specfic subclass 2011-08-03 14:51:01 +08:00
melvin f679024bb7 replaced Exception with NumberFormatException 2011-08-03 14:46:45 +08:00
melvin 5c62a305d5 replaced Exception with IOException 2011-08-03 14:46:18 +08:00