X-Git-Url: https://deadsoftware.ru/gitweb?p=cavedroid.git;a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2Fgame%2Fobjects%2FDrop.java;h=fa60f6b60d67f9eec9385988f66da77537c7eed2;hp=d92b846250571521dfd33f3f85cd826a35f3f312;hb=be2690f1dee10f68a5ce6d576ace13c825ac5d15;hpb=18f9e2e6b8a17746e80f8332a7a57f6296678bdd diff --git a/core/src/ru/deadsoftware/cavecraft/game/objects/Drop.java b/core/src/ru/deadsoftware/cavecraft/game/objects/Drop.java index d92b846..fa60f6b 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/objects/Drop.java +++ b/core/src/ru/deadsoftware/cavecraft/game/objects/Drop.java @@ -8,11 +8,11 @@ import java.io.Serializable; public class Drop implements Serializable { private int id; public boolean pickedUp = false; - public Vector2 move, position; + public Vector2 move, pos; public Drop(float x, float y, int id) { this.id = id; - position = new Vector2(x, y); + pos = new Vector2(x, y); move = new Vector2(0, -1); } @@ -31,7 +31,7 @@ public class Drop implements Serializable { } public Rectangle getRect() { - return new Rectangle(position.x, position.y, 8, 8); + return new Rectangle(pos.x, pos.y, 8, 8); } }