67df9f7198fac95681fef3b508f099f202c2e0f8
1 package ru
.deadsoftware
.cavecraft
.game
.mobs
;
3 import com
.badlogic
.gdx
.graphics
.g2d
.SpriteBatch
;
4 import com
.badlogic
.gdx
.math
.Rectangle
;
5 import com
.badlogic
.gdx
.math
.Vector2
;
7 import java
.io
.Serializable
;
9 public abstract class Mob
implements Serializable
{
11 public int ANIM_SPEED
= 6;
14 public int width
, height
, dir
, anim
;
15 public boolean canJump
;
18 public abstract void ai();
20 public abstract void changeDir();
22 public abstract void draw(SpriteBatch spriteBatch
, float x
, float y
);
24 public abstract Rectangle
getRect();
26 public abstract int getType(); //0 - mob, 10 - sand, 11 - gravel