moagg.model.object
Interface ActivatableObject

All Superinterfaces:
MoaggGameObject
All Known Implementing Classes:
Barrier, Blackhole, Fountain, Magnet, Thorn

public interface ActivatableObject
extends MoaggGameObject

Game objects that can be activated and deactivated have to implement this interface.


Method Summary
 void activate()
          Calling this method activates this object.
 void deactivate()
          Calling this method deactivates this object.
 boolean isActivated()
           
 void toggle()
          Calling this method toggles the object state between activated and deactivated.
 
Methods inherited from interface moagg.model.object.MoaggGameObject
getHeight, getID, getPositionRectangle, getSpeed, getWidth, getX, getY, hide, isVisible, setID, setSpeed, setSpeed, setX, setY, show
 

Method Detail

isActivated

boolean isActivated()
Returns:
true, if the object's current state is activated, else false.

activate

void activate()
Calling this method activates this object.


deactivate

void deactivate()
Calling this method deactivates this object.


toggle

void toggle()
Calling this method toggles the object state between activated and deactivated.



Copyright © 2008. All Rights Reserved.