|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.haphazard.gui.engine.GlobalEffects
GlobalEffects is a singleton to be used for effects as snow, rain and attacks
Method Summary | |
void |
displayEffect(java.awt.Graphics2D g,
java.lang.String effectKey,
int windowWidth,
int windowHeight)
|
void |
displayEffectOnTile(java.lang.String effect,
Point3D tileCoordinate,
Map map)
This display one effect on a tile on a map. |
static GlobalEffects |
getInstance()
Returns the statical instance of this object |
void |
loadGraphicalObject(java.io.InputStream stream)
The GlobalEffects contains a GraphicalObject that has several sprites. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static GlobalEffects getInstance()
public void loadGraphicalObject(java.io.InputStream stream)
stream
- The stream to be loadedpublic void displayEffectOnTile(java.lang.String effect, Point3D tileCoordinate, Map map)
effect
- the name of the effect. This must be spriteKey in the GraphicalObject.tileCoordinate
- the coordinate of this effectmap
- on what map the effect should be onpublic void displayEffect(java.awt.Graphics2D g, java.lang.String effectKey, int windowWidth, int windowHeight)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |