com.pegacat.vcf.data
Class OfflineLoader
java.lang.Object
|
+--com.pegacat.vcf.data.Loader
|
+--com.pegacat.vcf.data.OfflineLoader
- public class OfflineLoader
- extends Loader
Field Summary |
static boolean |
debug
|
Methods inherited from class com.pegacat.vcf.data.Loader |
getAllSurveys, getAllTech, getCargoReport, getCurrentTurnNo, getNewSurveys, getNewTech, getObjectTree, getPopSurveys, getRaceDesc, getRawStars, getReport, getStars, getSummary, loadAll, loadFinished, setWatcher |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
public static boolean debug
OfflineLoader
public OfflineLoader(java.io.File currentDirectory)
saveAll
public void saveAll(DataLayer data)
- Description copied from class:
Loader
- This method can be extended by loaders that can also save data, such as
the OfflineLoader which handles cached data...
- Overrides:
saveAll
in class Loader
saveReport
public void saveReport(VoyagerText text)
saveSummary
public void saveSummary(VoyagerText text)
savePopSurveys
public void savePopSurveys(VoyagerText text)
saveCargoReport
public void saveCargoReport(VoyagerText text)
saveAllSurveys
public void saveAllSurveys(VoyagerText text)
saveNewSurveys
public void saveNewSurveys(VoyagerText text)
saveAllTech
public void saveAllTech(VoyagerText text)
saveNewTech
public void saveNewTech(VoyagerText text)
saveRaceDesc
public void saveRaceDesc(VoyagerText text)
saveRawStars
public void saveRawStars(VoyagerText text)
saveObjectTree
public void saveObjectTree(VoyagerText text)
getStars
public Star[] getStars()
- Description copied from class:
Loader
- This method is inherited by WebLoader and OfflineLoader
to get and parse the star list.
- Overrides:
getStars
in class Loader
nextInt
protected int nextInt(java.util.StringTokenizer st)
- Overrides:
nextInt
in class Loader
getFile
public VoyagerText getFile(java.lang.String fileName)
- Description copied from class:
Loader
- This method is inherited by WebLoader and OfflineLoader
(and conceivably other loaders) to provide
their own way of getting the text file data...
- Overrides:
getFile
in class Loader
exists
public boolean exists()
- Returns whether this OfflineLoader has any valid files to parse
saveFile
protected void saveFile(VoyagerText text,
java.lang.String fileName)
getOfflineDirectory
public static java.io.File getOfflineDirectory(java.lang.String game,
java.lang.String turn)
- Returns, for a particular game (e.g. '17.22')
and turn (e.g. 6), the appropriate offline file (e.g. 'games/17.22T6').