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