// Path: src/main/java/com/pesegato/MonkeySheet/MSGlobals.java
// public static final int SPRITE_SIZE = 256;


import org.dyn4j.dynamics.Body;
import org.dyn4j.geometry.Transform;
import static com.pesegato.MonkeySheet.MSGlobals.SPRITE_SIZE;
package com.pesegato.MonkeySheet.actions;



@Deprecated
abstract public class MSBodyAction extends MSAction{
    protected Body body;
    public void setBody(Body body){
        this.body=body;
    }

    /**
     * This method moves the body by x * SPRITE_SIZE and y * SPRITE_SIZE
     *
     * @param x movement on the X
     * @param y movement on the Y
     */

    @Override
    protected void moveSprite(float x, float y) {
        Transform t=body.getTransform();
// Path: src/main/java/com/pesegato/MonkeySheet/MSGlobals.java
// public static final int SPRITE_SIZE = 256;


// Path: src/main/java/com/pesegato/MonkeySheet/actions/MSBodyAction.java
import org.dyn4j.dynamics.Body;
import org.dyn4j.geometry.Transform;
import static com.pesegato.MonkeySheet.MSGlobals.SPRITE_SIZE;

package com.pesegato.MonkeySheet.actions;



@Deprecated
abstract public class MSBodyAction extends MSAction{
    protected Body body;
    public void setBody(Body body){
        this.body=body;
    }

    /**
     * This method moves the body by x * SPRITE_SIZE and y * SPRITE_SIZE
     *
     * @param x movement on the X
     * @param y movement on the Y
     */

    @Override
    protected void moveSprite(float x, float y) {
        Transform t=body.getTransform();
        t.setTranslationX(t.getTranslationX()+(x * SPRITE_SIZE));