Lab2 Done
This commit is contained in:
parent
dc8923d850
commit
b76c220516
@ -1,6 +1,5 @@
|
|||||||
public interface IMoveableObject {
|
public interface IMoveableObject {
|
||||||
ObjectParameters getObjectPosition();
|
ObjectParameters getObjectPosition();
|
||||||
|
|
||||||
int getStep();
|
int getStep();
|
||||||
boolean checkCanMove(DirectionType direction);
|
boolean checkCanMove(DirectionType direction);
|
||||||
void moveObject(DirectionType direction);
|
void moveObject(DirectionType direction);
|
||||||
|
@ -9,7 +9,6 @@ public class ObjectParameters {
|
|||||||
public int getDownBorder() {return POS_Y + HEIGHT;}
|
public int getDownBorder() {return POS_Y + HEIGHT;}
|
||||||
public int getObjectMiddleHorizontal() {return POS_X + this.WIDTH / 2;}
|
public int getObjectMiddleHorizontal() {return POS_X + this.WIDTH / 2;}
|
||||||
public int getObjectMiddleVertical() {return POS_Y + this.HEIGHT / 2;}
|
public int getObjectMiddleVertical() {return POS_Y + this.HEIGHT / 2;}
|
||||||
|
|
||||||
public ObjectParameters(int x, int y, int width, int height)
|
public ObjectParameters(int x, int y, int width, int height)
|
||||||
{
|
{
|
||||||
POS_X = x;
|
POS_X = x;
|
||||||
|
@ -2,5 +2,4 @@ public enum Status {
|
|||||||
NOT_INIT,
|
NOT_INIT,
|
||||||
IN_PROGRESS,
|
IN_PROGRESS,
|
||||||
FINISH
|
FINISH
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user