public class EffectsBase
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Effect |
getEffect(EffectSource source,
java.lang.String id)
Returns new instance of effect with specified ID
|
static Effect |
getEffect(java.lang.String sourceOwnerId,
java.lang.String sourceId,
java.lang.String id)
Returns new instance of effect with specified ID and source to restore
|
static EffectPattern |
getPattern(java.lang.String id)
Returns pattern for effect with specified ID
|
static void |
load(java.lang.String skillsPath,
org.newdawn.slick.GameContainer gc)
Loads base
|
public static Effect getEffect(EffectSource source, java.lang.String id)
source
- Effect source, e.g. skill owner(can be null)id
- Effect IDpublic static Effect getEffect(java.lang.String sourceOwnerId, java.lang.String sourceId, java.lang.String id)
sourceOwnerId
- Saved source owner serial IDsourceId
- Saved source IDid
- Effect IDpublic static EffectPattern getPattern(java.lang.String id)
id
- Effect IDpublic static void load(java.lang.String skillsPath, org.newdawn.slick.GameContainer gc) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
skillsPath
- Path to skills directorygc
- Slick game containerorg.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException