X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavedroid%2Fgame%2Fmobs%2FFallingSand.java;h=7186b3a1ff13ee0af1375eb65fd6b2aba9cc202d;hb=9f899928ab57fc6c2c6151023190ef8d7c3eac03;hp=07cd8cdd84e3ddf8249be1964681b2a422c09b63;hpb=2aa65a4cdb47df8014f28342d460fc6639bed885;p=cavedroid.git diff --git a/core/src/ru/deadsoftware/cavedroid/game/mobs/FallingSand.java b/core/src/ru/deadsoftware/cavedroid/game/mobs/FallingSand.java index 07cd8cd..7186b3a 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/mobs/FallingSand.java +++ b/core/src/ru/deadsoftware/cavedroid/game/mobs/FallingSand.java @@ -19,10 +19,20 @@ public class FallingSand extends Mob { * @param y Y in pixels */ public FallingSand(float x, float y) { - super(x, y, 16, 16, Direction.LEFT, Type.SAND); + super(x, y, 16, 16, Direction.LEFT, Type.SAND, Integer.MAX_VALUE); mVelocity = new Vector2(0, 1); } + @Override + public float getSpeed() { + return 0; + } + + @Override + public void jump() { + // no-op + } + @Override public void ai(GameWorld gameWorld, float delta) { if (mVelocity.isZero()) {