-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPosPair.java
31 lines (30 loc) · 1.03 KB
/
PosPair.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
public class PosPair{
//The place where fireballs, bullets and very dangerous weapons are stored
private final int ANGLE, Type, dmg = 350;
private double X,Y, origX, origY;
// x,y, original position of the bullet, degree bullet/fireball will travel
public PosPair(int x,int y,int deg,int type)//type is type of bullet or fireball
{
X=x;
Y=y;
origX = x;
origY = y;
ANGLE = deg;
Type = type;
}
//////////getter/setters/////////////////
public int getX(){return (int)X;}
public int getY(){return (int)Y;}
public int getdmg(){return dmg;}
public int getType(){return Type;}
public int getorigX(){return (int)origX;}
public int getorigY(){return (int)origY;}
public double getDX(){return X;}
public double getDY(){return Y;}
public int getANGLE(){return ANGLE;}
public int getTYPE(){return Type;} //type of item flying and moving (Ex. fireball, bullets, etc.)
public void setPos(double x, double y){
X = x;
Y = y;
}
}