Protected eingefügt

master
Jonathan Hager 6 years ago
parent b2ace3f2a9
commit 5ba4a09689

@ -3,12 +3,12 @@ package com.dungeoncrawler;
public abstract class Entity { public abstract class Entity {
private int xPos; protected int xPos;
private int yPos; protected int yPos;
private int hp; protected int hp;
private int maxhp; protected int maxhp;
private int dmg; protected int dmg;
private int lvl; protected int lvl;

@ -4,32 +4,7 @@ import com.dungeoncrawler.Entity;
public class Archer extends Entity{ public class Archer extends Entity{
public Archer(int ebene, int x, int y){ public Archer(int ebene, int x, int y){
this.hp = 10;
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