mirror of
https://github.com/Klagarge/PokeHES.git
synced 2025-04-04 23:46:03 +00:00
38 lines
677 B
Java
38 lines
677 B
Java
package Entity;
|
|
|
|
import com.badlogic.gdx.math.Vector2;
|
|
|
|
public class Enemy extends Character{
|
|
|
|
|
|
|
|
public Enemy(String name, int x, int y, String img, String map, int pv) {
|
|
super(name, x, y, img, map);
|
|
//generate his text
|
|
|
|
this.map = map;
|
|
|
|
turn(Character.Direction.DOWN);
|
|
|
|
this.pv = pv;
|
|
|
|
|
|
}
|
|
|
|
public void setPosition(int x, int y, String map){
|
|
position.set(x, y);
|
|
this.map = map;
|
|
}
|
|
|
|
public void setPosition(Vector2 vPosition, String map){
|
|
setPosition((int)vPosition.x, (int)vPosition.y, map);
|
|
}
|
|
|
|
@Override
|
|
public void removedPv(int pv) {
|
|
this.pv -= pv;
|
|
|
|
}
|
|
|
|
}
|