Commit 2d575008 authored by nargessalehi98's avatar nargessalehi98

Add javaDoc.

parent 765ef2aa
import java.awt.geom.Ellipse2D; /**
import java.awt.image.BufferedImage; * this class keeps bullet info
* @author narges salehi & sepehr tavakoli
* @version 1.1
* @since July 21 2020
*/
public class Bullet { public class Bullet {
//x of bullet
int x; int x;
//y of bullet
int y; int y;
//rotate amount of bullet
double rotateAmountBullet; double rotateAmountBullet;
//damage of bullet
int damage; int damage;
//existence of bullet
boolean alive; boolean alive;
/**
* create a new bullet with given value
* @param x of bullet
* @param y of bullet
* @param rotateAmountBullet of bullet
* @param damage of bullet
*/
public Bullet(int x, int y, double rotateAmountBullet, int damage) { public Bullet(int x, int y, double rotateAmountBullet, int damage) {
this.x = x; this.x = x;
this.y = y; this.y = y;
...@@ -17,6 +31,4 @@ public class Bullet { ...@@ -17,6 +31,4 @@ public class Bullet {
this.damage = damage; this.damage = damage;
alive=true; alive=true;
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment