From 9a6f804563ce36d12c3388c167b681534051515e Mon Sep 17 00:00:00 2001 From: David Hermann Date: Wed, 18 Jan 2023 18:12:17 +0100 Subject: [PATCH] Created mob class --- src/main/java/org/bitbiome/classes/Mob.java | 47 +++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/main/java/org/bitbiome/classes/Mob.java diff --git a/src/main/java/org/bitbiome/classes/Mob.java b/src/main/java/org/bitbiome/classes/Mob.java new file mode 100644 index 0000000..f214d90 --- /dev/null +++ b/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; + } + + +}