monster #20
@@ -98,9 +98,6 @@ public class Troll extends Monster implements CanMove, CanAttack {
|
|||||||
if (isDead()) {
|
if (isDead()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (playerIsAtPosition(destination, world)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (tileHasWrongHabitat(destination, world)) {
|
if (tileHasWrongHabitat(destination, world)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import static org.hamcrest.MatcherAssert.*;
|
|||||||
import static org.hamcrest.Matchers.*;
|
import static org.hamcrest.Matchers.*;
|
||||||
import static org.mockito.Mockito.*;
|
import static org.mockito.Mockito.*;
|
||||||
|
|
||||||
|
|
||||||
public class MonsterTest {
|
public class MonsterTest {
|
||||||
|
|
||||||
private Shade defaultShade;
|
private Shade defaultShade;
|
||||||
|
|||||||
Reference in New Issue
Block a user