moagg.model.object.sprite
Class Blackhole

java.lang.Object
  extended by com.golden.gamedev.object.Sprite
      extended by moagg.model.object.sprite.AbstractMoaggSprite
          extended by moagg.model.object.sprite.Blackhole
All Implemented Interfaces:
java.io.Serializable, ActivatableObject, MoaggGameObject

public class Blackhole
extends AbstractMoaggSprite
implements MoaggGameObject, ActivatableObject

See Also:
Serialized Form

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

Blackhole

public Blackhole()
Method Detail

isActivated

public boolean isActivated()
Specified by:
isActivated in interface ActivatableObject
Returns:
true, if the object's current state is activated, else false.

activate

public void activate()
Description copied from interface: ActivatableObject
Calling this method activates this object.

Specified by:
activate in interface ActivatableObject

deactivate

public void deactivate()
Description copied from interface: ActivatableObject
Calling this method deactivates this object.

Specified by:
deactivate in interface ActivatableObject

toggle

public void toggle()
Description copied from interface: ActivatableObject
Calling this method toggles the object state between activated and deactivated.

Specified by:
toggle in interface ActivatableObject

getGravity

public int getGravity()

setGravity

public void setGravity(int gravity)

setState

protected void setState(moagg.model.object.sprite.Blackhole.State state)

update

public void update(long elapsedTime)
Overrides:
update in class com.golden.gamedev.object.Sprite


Copyright © 2008. All Rights Reserved.