diff --git a/core/src/ru/deadsoftware/cavedroid/game/mobs/Mob.java b/core/src/ru/deadsoftware/cavedroid/game/mobs/Mob.java
index bcab5867bc4e8ee9186543eebd206e4733437b86..32c63cc26514d674c777f6f5a777104c68508fe4 100644 (file)
public static final int LEFT = 0;
public static final int RIGHT = 1;
public static final int LEFT = 0;
public static final int RIGHT = 1;
- private float width, height;
+ private final float width;
+ private final float height;
private int dir;
public boolean flyMode;
private int dir;
public boolean flyMode;
- public Vector2 pos;
+ public final Vector2 pos;
public Vector2 mov;
private boolean dead;
public Vector2 mov;
private boolean dead;
* @param dir integer representing a direction where 0 is left and 1 is right.
* You should use {@link #LEFT} and {@link #RIGHT} constants
*/
* @param dir integer representing a direction where 0 is left and 1 is right.
* You should use {@link #LEFT} and {@link #RIGHT} constants
*/
- public Mob(float x, float y, float width, float height, int dir) {
+ protected Mob(float x, float y, float width, float height, int dir) {
pos = new Vector2(x, y);
mov = new Vector2(0, 0);
this.width = width;
pos = new Vector2(x, y);
mov = new Vector2(0, 0);
this.width = width;