|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.deckbuilder.MdbLoader
public final class MdbLoader
Set of tools to manipulate the MDB format : load headers, finding cards,...
Field Summary | |
---|---|
static java.lang.String |
artURL
Indicates where to find the art from a URL |
static java.lang.String |
author
The current TBS comment |
static java.lang.String |
backPicture
Indicates the picture name of the back picture. |
static java.lang.String[] |
coloredBigManas
This is the defined small colorled mana file names without basename. |
static java.lang.String |
coloredManaBigURL
This is the web basename where big colorled mana pictures can be found. |
static java.lang.String |
coloredManaSmlURL
This is the web basename where small colorled mana pictures can be found. |
static java.lang.String[] |
coloredSmlManas
This is the defined small colorled mana file names without basename. |
static java.lang.String[] |
coloredSmlManasHtml
This the HTML representation of defined small colorled manas. |
static java.lang.String |
colorlessBigURL
This is the filename without basename corresponding to the big colorless picture. |
static java.lang.String[] |
colorlessSmlManas
This is the defined colorless mana file names without basename. |
static java.lang.String[] |
colorlessSmlManasHtml
This the HTML representation of defined small colorless manas. |
static java.lang.String |
colorlessURL
This is the web basename where colorless mana pictures can be found. |
static java.lang.String |
damagePicture
Indicates the picture name of the damage picture. |
static java.lang.String |
disclaimer
The current TBS disclaimer |
static java.io.FileInputStream |
lastMdbStream
The last opened stream of the current MDB. |
static java.lang.String |
moreInfo
The current TBS more information text |
static java.lang.String |
tbsFullName
The current full name of selected TBS |
static java.lang.String |
unknownSmlMana
The picture used for unknown mana cost value. |
static java.lang.String |
unknownSmlManaHtml
The picture used for unknown mana cost value. |
static java.lang.String |
version
The ciurrent TBS version |
Method Summary | |
---|---|
static void |
closeMdb()
Close the current TBS. |
static java.io.FileInputStream |
loadHeader(java.lang.String dbFile)
Load author, tbs name,... |
static java.io.FileInputStream |
loadMDB(java.lang.String dbFile,
int firstPlayer)
Load author, tbs name,... |
static void |
loadTBSSettings()
Loading the settings corresponding to the current TBS |
static java.io.FileInputStream |
openMdb(java.lang.String dbStream,
boolean forceRecheck)
Check the given MDB file and update it if needed. |
static java.io.FileInputStream |
resetMdb()
Reset the given MDB stream to the first offset of card references. |
static void |
saveTBSSettings()
Save the settings corresponding to the current TBS |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String tbsFullName
public static java.lang.String disclaimer
public static java.lang.String moreInfo
public static java.lang.String author
public static java.lang.String version
public static java.lang.String artURL
public static java.lang.String backPicture
public static java.lang.String damagePicture
public static java.lang.String[] colorlessSmlManas
colorlessURL
and the local basename is
tbs/TBS_NAME/images/mana/colorless/
colorlessSmlManas
public static java.lang.String[] colorlessSmlManasHtml
colorlessSmlManas
public static java.lang.String colorlessBigURL
colorlessURL
and the local
basename is tbs/TBS_NAME/images/mana/colorless/big/
public static java.lang.String[] coloredSmlManas
coloredManaSmlURL
and the local
basename is tbs/TBS_NAME/images/mana/colored/small/
coloredManaSmlURL
public static java.lang.String[] coloredSmlManasHtml
colorlessSmlManas
public static java.lang.String[] coloredBigManas
coloredManaBigURL
and the local
basename is tbs/TBS_NAME/images/mana/colored/big/
coloredManaBigURL
public static java.lang.String colorlessURL
public static java.lang.String coloredManaSmlURL
public static java.lang.String coloredManaBigURL
public static java.lang.String unknownSmlManaHtml
public static java.lang.String unknownSmlMana
public static java.io.FileInputStream lastMdbStream
Method Detail |
---|
public static java.io.FileInputStream loadMDB(java.lang.String dbFile, int firstPlayer) throws java.io.IOException
dbFile
- the mdb file containing rules.firstPlayer
- the index of first player.
java.io.IOException
- If some other I/O error occurspublic static java.io.FileInputStream resetMdb()
public static java.io.FileInputStream openMdb(java.lang.String dbStream, boolean forceRecheck) throws java.io.IOException
dbStream
- the mdb file containing rules.forceRecheck
- if true, all files are checked even if it has already been done.
java.io.IOException
- If some other I/O error occurspublic static java.io.FileInputStream loadHeader(java.lang.String dbFile) throws java.io.IOException
dbFile
- the mdb file containing rules.
java.io.IOException
- If some other I/O error occurspublic static void saveTBSSettings()
public static void loadTBSSettings()
public static void closeMdb()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |