repo.or.cz
/
rmh3093.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
at end of trial select a random target and make it blink
[rmh3093.git]
/
motsim
/
Target.java
blob
48f54f5dbbed2a7f7c00eda22fd8c6e45b7cf847
1
import
java
.
awt
.
Color
;
2
3
/**
4
* Target.java
5
* motsim
6
*/
7
8
public class
Target
{
9
10
String callsign
;
11
int
moveAngle
;
12
double
x
,
y
;
13
double
velX
,
velY
;
14
int
string_width
;
15
int
font_size
;
16
boolean
remove
;
17
double
velocityMOD
;
18
boolean
move
;
19
int
steps
;
20
21
public
Target
(
String callsign
,
double
x
,
double
y
,
22
int
moveAngle
,
double
velX
,
double
velY
,
double
velocityMOD
) {
23
this
.
callsign
=
callsign
;
24
this
.
x
=
x
;
25
this
.
y
=
y
;
26
this
.
moveAngle
=
moveAngle
;
27
this
.
velX
=
velX
;
28
this
.
velY
=
velY
;
29
this
.
remove
=
false
;
30
this
.
velocityMOD
=
velocityMOD
;
31
move
=
false
;
32
steps
=
0
;
33
}
34
35
}