Skip to content

Commit

Permalink
removed method getXshift in Zombie
Browse files Browse the repository at this point in the history
  • Loading branch information
sofialottii committed Feb 17, 2024
1 parent c28858c commit e31e83b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions src/main/java/pvzclone/model/api/Zombie.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ public interface Zombie extends ActiveEntities {
*/
void moveLeft();

/**
* @return delta, the shift of the Zombie in X axis.
*/
double getXShift();

/**
* Sets the boolean based on whether the Zombie can move or not.
*
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/pvzclone/model/impl/ZombieImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ public String getEntityName() {
return "Zombie";
}

@Override
public double getXShift() {
return this.xShift;
}

@Override
public long getCooldown() {
return this.cooldown;
Expand Down
1 change: 0 additions & 1 deletion src/test/java/pvzclone/ZombieTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ void isZombieAliveWithCorrectValues() {
assertTrue(zombie.isAlive());
assertEquals(MAX_LIFE, zombie.getRemainingLife());
assertEquals(ATK, zombie.getDamage());
assertEquals(X_SHIFT, zombie.getXShift());
assertEquals(COOLDOWN, zombie.getCooldown());
assertEquals("Zombie", zombie.getEntityName());
}
Expand Down

0 comments on commit e31e83b

Please sign in to comment.