Protected eingefügt

master
Jonathan Hager 6 years ago
parent b2ace3f2a9
commit 5ba4a09689

@ -3,12 +3,12 @@ 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;
protected int xPos;
protected int yPos;
protected int hp;
protected int maxhp;
protected int dmg;
protected int lvl;

@ -4,32 +4,7 @@ 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;
}
}
}

Loading…
Cancel
Save