|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.games.mariogame.rules.Gravity
public class Gravity
Rule that applies gravity to the sprite groups listed in the level.xml document
Constructor Summary | |
---|---|
Gravity()
|
Method Summary | |
---|---|
void |
enforce(SpriteGroup... groups)
add SpriteGroups that this Rule applies to |
boolean |
isSatisfied(SpriteGroup... groups)
|
static void |
reset()
|
static void |
setGravityCoef(double coef)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Gravity()
Method Detail |
---|
public void enforce(SpriteGroup... groups)
Rule
enforce
in interface Rule
public boolean isSatisfied(SpriteGroup... groups)
isSatisfied
in interface Rule
public static void setGravityCoef(double coef)
public static void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |