Skip to content
Snippets Groups Projects
Commit be79c8fd authored by Scherbaum Maximilian's avatar Scherbaum Maximilian
Browse files

fix: missing getter in player class

parent 2704746f
No related branches found
Tags v0.2.0
3 merge requests!74V1,!73Initial commit,!71Merge DataBase into Development
......@@ -121,4 +121,9 @@ public class Explosion implements IEntity {
return 0;
}
@Override
public int getMaxEntityHealth() {
return 0;
}
}
......@@ -151,4 +151,9 @@ public class Bomb implements IEntity {
return 0;
}
@Override
public int getMaxEntityHealth() {
return 0;
}
}
......@@ -129,4 +129,9 @@ public class Heart implements IEntity {
return 0;
}
@Override
public int getMaxEntityHealth() {
return 0;
}
}
\ No newline at end of file
......@@ -45,4 +45,5 @@ public interface IEntity {
void setObjectStatus(ObjectStatus objectStatus);
int getHealth();
int getMaxEntityHealth();
}
\ No newline at end of file
......@@ -118,6 +118,11 @@ class NetworkPlayerTwo implements IEntity{
@Override
public int getHealth() {
return health;
}
@Override
public int getMaxEntityHealth() {
return 0;
}
......
......@@ -578,4 +578,11 @@ class Player implements IEntity {
public int getHealth() {
return health;
}
@Override
public int getMaxEntityHealth() {
return maxPlayerHealth;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment