Site hosted by Angelfire.com: Build your free website today!

 

Package  

 Class 

Tree 

Deprecated 

Index 

Help 

 

 PREV CLASS   NEXT CLASS

FRAMES    NO FRAMES    

 

SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

 

size=2 width="100%" align=center>

Class MovingObject

 
java.lang.Object
  extended byMovingObject

All Implemented Interfaces:

Movable

Direct Known Subclasses:

Debris, ExplodingObject, Floater, Projectile


public abstract class MovingObject

extends java.lang.Object

implements Movable

 


Field Summary

static int

SECTOR
           

 

Constructor Summary

MovingObject()
           

 

 

Method Summary

 void

die()
           

 void

fadeInOut()
           

 java.awt.Point

getCenter()
           

 java.awt.Color

getColor()
           

 double

getDeltaX()
           

 double

getDeltaY()
           

 int

getDie()
           

 java.awt.Dimension

getDim()
           

 byte

getFriend()
           

 int

getOrientation()
           

 int

getRadius()
           

 boolean

isExploding()
           

 int

points()
           

 void

setCenter(java.awt.Point pntParam)
           

 void

setColor(java.awt.Color c)
           

 void

setDeltaX(double dSet)
           

 void

setDeltaY(double dSet)
           

 void

setDie(int n)
          THE MOVABLE INTERFACE METHODS //for the game to draw public void move(); public void draw(Graphics g); //for collisions public byte getFriend (); public void setVisible ( boolean b ); //mark for removal next iteration public boolean getVisible (); //if invisible then marked for removal this iteration.

 void

setDim(java.awt.Dimension dim)
           

 void

setFriend(byte y)
           

 void

setOrientation(int n)
           

 void

setRadius(int n)
           

 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface Movable

draw, move

 

Field Detail

SECTOR

 
public static final int SECTOR

See Also:

Constant Field Values

Constructor Detail

MovingObject

 
public MovingObject()

Method Detail

setDie

 
public void setDie(int n)

THE MOVABLE INTERFACE METHODS //for the game to draw public void move(); public void draw(Graphics g); //for collisions public byte getFriend (); public void setVisible ( boolean b ); //mark for removal next iteration public boolean getVisible (); //if invisible then marked for removal this iteration. public int getSector(); public int[] getNeighboringSectors(); public Point getCenter(); public int getRadius(); //for short-lasting objects only like powerUps, special weapons and UFOs public void die (); //integer that clicks down public boolean isDead ();


getColor

 
public java.awt.Color getColor()

setColor

 
public void setColor(java.awt.Color c)

points

 
public int points()

Specified by:

points in interface Movable


getDie

 
public int getDie()

isExploding

 
public boolean isExploding()

Specified by:

isExploding in interface Movable


die

 
public void die()

Specified by:

die in interface Movable


fadeInOut

 
public void fadeInOut()

Specified by:

fadeInOut in interface Movable


getOrientation

 
public int getOrientation()

setOrientation

 
public void setOrientation(int n)

setDeltaX

 
public void setDeltaX(double dSet)

setDeltaY

 
public void setDeltaY(double dSet)

getDeltaY

 
public double getDeltaY()

getDeltaX

 
public double getDeltaX()

getRadius

 
public int getRadius()

Specified by:

getRadius in interface Movable


setRadius

 
public void setRadius(int n)

getDim

 
public java.awt.Dimension getDim()

setDim

 
public void setDim(java.awt.Dimension dim)

getCenter

 
public java.awt.Point getCenter()

Specified by:

getCenter in interface Movable


setCenter

 
public void setCenter(java.awt.Point pntParam)

getFriend

 
public byte getFriend()

Specified by:

getFriend in interface Movable


setFriend

 
public void setFriend(byte y)
size=2 width="100%" align=center>

 

Package  

 Class 

Tree 

Deprecated 

Index 

Help 

 

 PREV CLASS   NEXT CLASS

FRAMES    NO FRAMES    

 

SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

 

size=2 width="100%" align=center>