package com.bitdecay.jump.leveleditor.example.game;

import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.bitdecay.jump.BitBody;
import com.bitdecay.jump.collision.ContactAdapter;
import com.bitdecay.jump.level.builder.LevelObject;

/**
 * Created by Monday on 11/22/2015.
 */
public class GravityField extends GameObject {
    @Override
    public BitBody build(LevelObject template) {
        BitBody body = template.buildBody();
        body.addContactListener(new ContactAdapter() {
            @Override
            public void contactStarted(BitBody other) {
                other.props.gravityModifier = -1;
            }

            @Override
            public void contactEnded(BitBody other) {
                other.props.gravityModifier = 1;
            }
        });
        return body;
    }

    @Override
    public void update(float delta) {

    }

    @Override
    public void render(SpriteBatch batch) {

    }
}

@@ -234,16 +234,65 @@
 bject;%0A%0A
+import java.util.Arrays;%0Aimport java.util.List;%0A%0A
 /**%0A * C
@@ -399,23 +399,29 @@
  public 
+List%3C
 BitBody
+%3E
  build(L
@@ -852,20 +852,35 @@
  return 
+Arrays.asList(
 body
+)
 ;%0A    %7D%0A

Fix bad signature