edited the fire, adjusted the rocket_size,added the models in j3o files, adjusted the Gamesound, added the artefacts
This commit is contained in:
@@ -11,10 +11,9 @@ public class Shell implements Item {
|
||||
private static final Logger LOGGER = System.getLogger(Shell.class.getName());
|
||||
|
||||
/**
|
||||
* the Target, the Shell will hit, displayed through: x,y
|
||||
* the Target, the Shell will hit
|
||||
*/
|
||||
private int x;
|
||||
private int y;
|
||||
private IntPoint target;
|
||||
|
||||
/**
|
||||
* the constructor for this class
|
||||
@@ -22,8 +21,7 @@ public class Shell implements Item {
|
||||
* @param target the target, the shell is fired at
|
||||
*/
|
||||
public Shell(IntPoint target) {
|
||||
this.x = target.getX();
|
||||
this.y = target.getY();
|
||||
this.target = target;
|
||||
LOGGER.log(Level.INFO, "Shell has been initialized");
|
||||
}
|
||||
|
||||
@@ -49,14 +47,13 @@ public void accept(VoidVisitor visitor) {
|
||||
visitor.visit(this);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getter for the x coordinate
|
||||
*
|
||||
* @return int x coordinate
|
||||
*/
|
||||
public int getX() {
|
||||
return x;
|
||||
return target.getX();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -65,24 +62,6 @@ public int getX() {
|
||||
* @return int y coordinate
|
||||
*/
|
||||
public int getY() {
|
||||
return y;
|
||||
}
|
||||
|
||||
/**
|
||||
* setter for x coordinate
|
||||
*
|
||||
* @param x the new value of x coordinate
|
||||
*/
|
||||
public void setX(int x) {
|
||||
this.x = x;
|
||||
}
|
||||
|
||||
/**
|
||||
* setter for y coordinate
|
||||
*
|
||||
* @param y the new value of y coordinate
|
||||
*/
|
||||
public void setY(int y) {
|
||||
this.y = y;
|
||||
return target.getY();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user