Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
JTankTrouble
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9831111
JTankTrouble
Commits
2d575008
Commit
2d575008
authored
Aug 07, 2020
by
nargessalehi98
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add javaDoc.
parent
765ef2aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
Bullet.java
src/Bullet.java
+18
-6
No files found.
src/Bullet.java
View file @
2d575008
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
{
//x of bullet
int
x
;
//y of bullet
int
y
;
//rotate amount of bullet
double
rotateAmountBullet
;
//damage of bullet
int
damage
;
//existence of bullet
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
)
{
this
.
x
=
x
;
this
.
y
=
y
;
...
...
@@ -17,6 +31,4 @@ public class Bullet {
this
.
damage
=
damage
;
alive
=
true
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment