- package asteroids;
- import java.awt.Rectangle;
- public class Bullet extends BaseVectorShape {
- public Bullet() {
- // TODO Auto-generated constructor stub
- setShape(new Rectangle(0,0,1,1));
- setAlive(false);
- }
- public Rectangle getBounds(){
- Rectangle r;
- r=new Rectangle((int)getX(),(int)getY(),1,1);
- return r;
- }
- }