public
Description:
Homepage: http://tjgames.org
Clone URL: git://github.com/ComputerDruid/gwar.git
gwar / SpeedBumper.java
100644 24 lines (23 sloc) 0.517 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
public class SpeedBumper extends Bumper
{
double xVel,yVel;
public SpeedBumper(double x, double y, double width, double height, double xV, double yV)
{
super(x,y,width,height);
xVel = xV;
yVel = yV;
}
public SpeedBumper(double x, double y, double width, double height, double xV, double yV, boolean pass){
super(x,y,width,height,pass);
xVel = xV;
yVel = yV;
}
public double getXVelocity()
{
return xVel;
}
public double getYVelocity()
{
return yVel;
}
}