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

fix: missing getter in player class

parent b61fb8be
No related branches found
No related tags found
3 merge requests!74V1,!73Initial commit,!71Merge DataBase into Development
......@@ -116,4 +116,9 @@ public class Explosion implements IEntity {
}
@Override
public int getHealth() {
return 0;
}
}
......@@ -146,4 +146,9 @@ public class Bomb implements IEntity {
OBJECT_STATUS = objectStatus;
}
@Override
public int getHealth() {
return 0;
}
}
......@@ -124,4 +124,9 @@ public class Heart implements IEntity {
OBJECT_STATUS = objectStatus;
}
@Override
public int getHealth() {
return 0;
}
}
\ No newline at end of file
......@@ -43,4 +43,6 @@ public interface IEntity {
ObjectStatus getOBJECT_STATUS();
void setObjectStatus(ObjectStatus objectStatus);
int getHealth();
}
\ No newline at end of file
......@@ -116,4 +116,9 @@ class NetworkPlayerTwo implements IEntity{
}
@Override
public int getHealth() {
return 0;
}
}
\ No newline at end of file
......@@ -574,6 +574,7 @@ class Player implements IEntity {
public void setObjectStatus(ObjectStatus objectStatus) {
}
@Override
public int getHealth() {
return health;
}
......
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