Skip to content

Commit

Permalink
fix: add FallingPlugin to 'default' movement plugin test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
skaldarnar authored and jdrueckert committed Feb 11, 2022
1 parent 3f1d33f commit bbe6ffd
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
import org.terasology.flexiblepathfinding.helpers.JPSTestHelper;
import org.terasology.flexiblepathfinding.helpers.MapWorldProvider;
import org.terasology.flexiblepathfinding.plugins.basic.CompositePlugin;
import org.terasology.flexiblepathfinding.plugins.basic.FallingPlugin;
import org.terasology.flexiblepathfinding.plugins.basic.LeapingPlugin;
import org.terasology.flexiblepathfinding.plugins.basic.WalkingPlugin;

public class WalkingLeapingJPSTest {
public class WalkingLeapingFallingJPSTest {
@Test
public void stairs2() throws InterruptedException {
executeExample(new String[]{
Expand Down Expand Up @@ -203,7 +204,8 @@ private void executeExample(String[] ground, String[] pathData) throws Interrupt
MapWorldProvider worldProvider = new MapWorldProvider(ground);
CompositePlugin plugin = new CompositePlugin(
new WalkingPlugin(worldProvider, 0.4f, 0.4f),
new LeapingPlugin(worldProvider, 0.4f, 0.4f)
new LeapingPlugin(worldProvider, 0.4f, 0.4f),
new FallingPlugin(worldProvider, 0.4f, 0.4f)
);

config.plugin = plugin;
Expand All @@ -217,7 +219,8 @@ private void executeFailingExample(String[] ground, String[] pathData) throws In
MapWorldProvider worldProvider = new MapWorldProvider(ground);
CompositePlugin plugin = new CompositePlugin(
new WalkingPlugin(worldProvider, 0.4f, 0.4f),
new LeapingPlugin(worldProvider, 0.4f, 0.4f)
new WalkingPlugin(worldProvider, 0.4f, 0.4f),
new FallingPlugin(worldProvider, 0.4f, 0.4f)
);

config.plugin = plugin;
Expand Down

0 comments on commit bbe6ffd

Please sign in to comment.