nix klappt lol

master
GammelJan 6 years ago
parent c0d8ad723e
commit b2ace3f2a9

@ -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;
}
}

@ -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;
}
}
}

@ -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 {
}

@ -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 {
}
Loading…
Cancel
Save