moagg.model.object
Interface MoaggGameObject

All Known Subinterfaces:
ActivatableObject, ControllableObject, DestroyableObject, LandableObject, OrientationObject, ShootableObject, ShootableWithWarheadObject, ShooterObject
All Known Implementing Classes:
Barrier, Blackhole, Crate, DestroyableTile, Fountain, GhostShip, Grenade, Grinder, Laser, Magnet, Missile, Mortar, Particle, Platform, Projectile, Sam, Ship, Switch, Tank, Thorn, Tile, Turret

public interface MoaggGameObject

Common interface that all game objects must implement.


Method Summary
 int getHeight()
           
 int getID()
           
 Rectangle getPositionRectangle()
           
 Vector getSpeed()
           
 int getWidth()
           
 double getX()
           
 double getY()
           
 void hide()
          Calling this method hides this object.
 boolean isVisible()
           
 void setID(int id)
           
 void setSpeed(double vx, double vy)
           
 void setSpeed(Vector speed)
           
 void setX(double x)
           
 void setY(double y)
           
 void show()
          Calling this method makes this object visible.
 

Method Detail

setID

void setID(int id)

getID

int getID()

setX

void setX(double x)

getX

double getX()

setY

void setY(double y)

getY

double getY()

getWidth

int getWidth()

getHeight

int getHeight()

getPositionRectangle

Rectangle getPositionRectangle()

setSpeed

void setSpeed(Vector speed)

setSpeed

void setSpeed(double vx,
              double vy)

getSpeed

Vector getSpeed()

isVisible

boolean isVisible()
Returns:
true, if this object is currently visible, else false.

show

void show()
Calling this method makes this object visible.


hide

void hide()
Calling this method hides this object.



Copyright © 2008. All Rights Reserved.