|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectshoddybattle.PokemonSpeciesData
public class PokemonSpeciesData
Constructor Summary | |
---|---|
PokemonSpeciesData()
|
Method Summary | |
---|---|
void |
cacheMoveSets(MoveList moveList,
MoveSetData moveSet,
boolean requireImplementation)
Cache the move sets of all of the pokemon. |
boolean |
canLearn(int i,
java.lang.String move)
Return whether this species can learn a particular move. |
boolean |
canUseAbility(java.lang.String name,
java.lang.String ability)
Return whether a pokemon can have a particular ability. |
java.lang.String[] |
getAbilityNames(java.lang.String name)
Return an array of the names of the possible abilities a given pokemon can have. |
long |
getLastModified()
Get the date when the database was last modified. |
java.util.TreeSet |
getLearnableMoves(int i)
Return a TreeSet of moves that the pokemon can learn. |
int |
getPokemonByName(java.lang.String name)
Find a pokemon by name. |
java.util.SortedSet |
getPossibleAbilities(java.lang.String name)
Return a TreeSet of possible abilities. |
PokemonSpecies[] |
getSpecies()
Get the species database. |
PokemonSpecies |
getSpecies(int i)
Get a single species. |
int |
getSpeciesCount()
Return the number of species. |
java.lang.String[] |
getSpeciesNames()
Get the whole list of species names. |
boolean |
isAbilityImplemented(java.lang.String ability)
Return whether an ability is implemented. |
void |
loadSpeciesDatabase(java.io.File file)
Load a database of pokemon species in from a file, and require that abilities have been implemented. |
void |
loadSpeciesDatabase(java.io.File file,
boolean requireImplementation)
Load a database of pokemon species in from a file. |
void |
loadSpeciesDatabase(java.io.InputStream input,
boolean requireImplementation)
Load a database of pokemon species in from an input stream. |
void |
saveSpeciesDatabase(java.io.File f)
Save a database of pokemon species to a file. |
void |
saveSpeciesDatabase(java.io.OutputStream out,
boolean requireImplementation)
Save a database of pokemon speices to an arbitrary file. |
void |
setAbilities(java.lang.String name,
java.lang.String[] abilities,
boolean impl)
Add a pokemon's abilities to the HashMap. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PokemonSpeciesData()
Method Detail |
---|
public long getLastModified()
public void saveSpeciesDatabase(java.io.File f) throws java.io.IOException
java.io.IOException
public void saveSpeciesDatabase(java.io.OutputStream out, boolean requireImplementation) throws java.io.IOException
java.io.IOException
public void loadSpeciesDatabase(java.io.File file) throws java.io.IOException, java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundException
public void loadSpeciesDatabase(java.io.File file, boolean requireImplementation) throws java.io.IOException, java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundException
public void loadSpeciesDatabase(java.io.InputStream input, boolean requireImplementation) throws java.io.IOException
java.io.IOException
public void cacheMoveSets(MoveList moveList, MoveSetData moveSet, boolean requireImplementation)
public void setAbilities(java.lang.String name, java.lang.String[] abilities, boolean impl)
public boolean isAbilityImplemented(java.lang.String ability)
public boolean canUseAbility(java.lang.String name, java.lang.String ability)
public java.lang.String[] getAbilityNames(java.lang.String name)
public java.util.SortedSet getPossibleAbilities(java.lang.String name)
public PokemonSpecies[] getSpecies()
public PokemonSpecies getSpecies(int i) throws PokemonException
PokemonException
public java.lang.String[] getSpeciesNames()
public int getSpeciesCount()
public int getPokemonByName(java.lang.String name)
public java.util.TreeSet getLearnableMoves(int i)
public boolean canLearn(int i, java.lang.String move)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |