File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,13 @@ public int getHitpoints() {
2424
2525 public void attackCreature (Creature creature ) {
2626 creature .hitpoints -= this .attackValue ;
27- System .out .println (this .name + " greift " + creature .name + " an und erzielt " + this .attackValue + " Schaden" );
27+ System .out .println (
28+ this .name
29+ + " greift "
30+ + creature .name
31+ + " an und erzielt "
32+ + this .attackValue
33+ + " Schaden" );
2834 System .out .println (creature .name + " hat noch " + creature .hitpoints + " Lebenspunkte" );
2935 }
30-
3136}
Original file line number Diff line number Diff line change @@ -8,6 +8,5 @@ public static void main(String[] args) {
88 vampire .attackCreature (zombie );
99 zombie .attackCreature (vampire );
1010 vampire .attackCreature (zombie );
11-
1211 }
1312}
You can’t perform that action at this time.
0 commit comments