diff --git a/core/src/com/dungeoncrawler/Entity.java b/core/src/com/dungeoncrawler/Entity.java new file mode 100644 index 0000000..0ef0fd3 --- /dev/null +++ b/core/src/com/dungeoncrawler/Entity.java @@ -0,0 +1,78 @@ +package com.dungeoncrawler; + + +public abstract class Entity { + + private int xPos; + private int yPos; + private int hp; + private int maxhp; + private int dmg; + private int lvl; + + + + public void attack(){ + + } + public void update(){ + + } + public void die(){ + + } + public void move(int movementX, int movementY){ + + } + + + public int getxPos() { + return xPos; + } + + public void setxPos(int xPos) { + this.xPos = xPos; + } + + public int getyPos() { + return yPos; + } + + public void setyPos(int yPos) { + this.yPos = yPos; + } + + public int getHp() { + return hp; + } + + public void setHp(int hp) { + this.hp = hp; + } + + public int getMaxhp() { + return maxhp; + } + + public void setMaxhp(int maxhp) { + this.maxhp = maxhp; + } + + public int getDmg() { + return dmg; + } + + public void setDmg(int dmg) { + this.dmg = dmg; + } + + public int getLvl() { + return lvl; + } + + public void setLvl(int lvl) { + this.lvl = lvl; + } + + +} \ No newline at end of file diff --git a/core/src/com/dungeoncrawler/entities/Archer.java b/core/src/com/dungeoncrawler/entities/Archer.java new file mode 100644 index 0000000..281e9f5 --- /dev/null +++ b/core/src/com/dungeoncrawler/entities/Archer.java @@ -0,0 +1,35 @@ +package com.dungeoncrawler.entities; +import com.dungeoncrawler.Entity; + +public class Archer extends Entity{ + + public Archer(int ebene, int x, int y){ + + switch(ebene){ + case 0: + this.hp = 10; + break; + case 1: + + break; + case 2: + + break; + case 3: + + break; + case 4: + + break; + case 5: + + break; + case 6: + + break; + } + + + } + +} diff --git a/core/src/com/dungeoncrawler/entities/Player.java b/core/src/com/dungeoncrawler/entities/Player.java new file mode 100644 index 0000000..5a951eb --- /dev/null +++ b/core/src/com/dungeoncrawler/entities/Player.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package com.dungeoncrawler.entities; + +/** + * + * @author Jan + */ +public class Player { + +} diff --git a/core/src/com/dungeoncrawler/entities/Swordsman.java b/core/src/com/dungeoncrawler/entities/Swordsman.java new file mode 100644 index 0000000..cc9aedb --- /dev/null +++ b/core/src/com/dungeoncrawler/entities/Swordsman.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package com.dungeoncrawler.entities; + +/** + * + * @author Jan + */ +public class Swordsman { + +}