diff --git a/core/src/ru/deadsoftware/cavedroid/game/mobs/Mob.java b/core/src/ru/deadsoftware/cavedroid/game/mobs/Mob.java
index 723a9298acc5d066dd5ada8b3dc01a99ad1a5bcf..5f73a6b4720af3ad3f185a81d6ec47fb65ac06de 100644 (file)
protected Vector2 move;
protected Type type;
+ protected int animDelta = 6;
+ protected int anim;
private Direction dir;
-
+ private boolean dead;
+ private boolean canJump, flyMode;
/**
* @param x in pixels
* @param y in pixels
this.type = type;
}
- private boolean dead;
-
- private boolean canJump, flyMode;
- protected int animDelta = 6;
- protected int anim;
-
protected static Direction randomDir() {
return MathUtils.randomBoolean(.5f) ? Direction.LEFT : Direction.RIGHT;
}
}
/**
- *
* @return The Y coordinate if mob's vertical center in blocks
*/
public final int getMiddleMapY() {
}
/**
- *
* @return The Y coordinate of mob's legs in blocks
*/
public final int getLowerMapY() {
}
}
+ public abstract void draw(SpriteBatch spriteBatch, float x, float y);
+
+ public abstract void ai();
+
+ public abstract void changeDir();
+
public enum Type {
MOB,
SAND,
LEFT,
RIGHT
}
-
- public abstract void draw(SpriteBatch spriteBatch, float x, float y);
-
- public abstract void ai();
-
- public abstract void changeDir();
}