Browse Source

Created mob class

remotes/origin/locations
David Hermann 2 years ago
parent
commit
9a6f804563
  1. 47
      src/main/java/org/bitbiome/classes/Mob.java

47
src/main/java/org/bitbiome/classes/Mob.java

@ -0,0 +1,47 @@
package org.bitbiome.classes;
public class Mob {
private String name;
private boolean isFriendly;
private float hp;
private float damage;
public Mob(String name, boolean isFriendly, float hp, float damage) {
this.name = name;
this.isFriendly = isFriendly;
this.hp = hp;
this.damage = damage;
}
public String getName() {
return name;
}
public boolean isFriendly() {
return isFriendly;
}
public float getHp() {
return hp;
}
public float getDamage() {
return damage;
}
public void setDamage(float damage) {
this.damage = damage;
}
public void setHp(float hp) {
this.hp = hp;
}
public void setFriendly(boolean isFriendly) {
this.isFriendly = isFriendly;
}
}
Loading…
Cancel
Save