|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.golden.gamedev.object.Sprite moagg.model.object.sprite.AbstractMoaggSprite moagg.model.object.sprite.Blackhole
public class Blackhole
Field Summary |
---|
Fields inherited from class com.golden.gamedev.object.Sprite |
---|
defaultCollisionShape, height, width |
Constructor Summary | |
---|---|
Blackhole()
|
Method Summary | |
---|---|
void |
activate()
Calling this method activates this object. |
void |
deactivate()
Calling this method deactivates this object. |
int |
getGravity()
|
boolean |
isActivated()
|
void |
setGravity(int gravity)
|
protected void |
setState(moagg.model.object.sprite.Blackhole.State state)
|
void |
toggle()
Calling this method toggles the object state between activated and deactivated. |
void |
update(long elapsedTime)
|
Methods inherited from class moagg.model.object.sprite.AbstractMoaggSprite |
---|
addSpeed, getPositionRectangle, getRGB, getSpeed, hide, isVisible, setRGB, setSpeed, setVisible, show |
Methods inherited from class com.golden.gamedev.object.Sprite |
---|
addHorizontalSpeed, addVerticalSpeed, forceX, forceY, getBackground, getCenterX, getCenterY, getDataID, getDefaultCollisionShape, getDistance, getHeight, getHorizontalSpeed, getID, getImage, getLayer, getOldX, getOldY, getScreenX, getScreenY, getVerticalSpeed, getWidth, getX, getY, isActive, isImmutable, isOnScreen, isOnScreen, move, moveTo, moveX, moveY, render, render, setActive, setBackground, setDataID, setHorizontalSpeed, setID, setImage, setImmutable, setLayer, setLocation, setMovement, setSpeed, setVerticalSpeed, setX, setY, updateMovement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Blackhole()
Method Detail |
---|
public boolean isActivated()
isActivated
in interface ActivatableObject
public void activate()
ActivatableObject
activate
in interface ActivatableObject
public void deactivate()
ActivatableObject
deactivate
in interface ActivatableObject
public void toggle()
ActivatableObject
toggle
in interface ActivatableObject
public int getGravity()
public void setGravity(int gravity)
protected void setState(moagg.model.object.sprite.Blackhole.State state)
public void update(long elapsedTime)
update
in class com.golden.gamedev.object.Sprite
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |