package com.norwand.game.management.gamedata.environement.entities.monsters;

/**
 * Created by V-SSK on 17/05/2016.
 */
public class SoldierDungeon {
}

@@ -75,79 +75,1915 @@
 s;%0A%0A
-/**%0A * Created by V-SSK on 17/05/2016.%0A */%0Apublic class SoldierDungeon %7B
+import com.badlogic.gdx.graphics.Pixmap;%0Aimport com.norwand.game.management.gamedata.GameData;%0Aimport com.norwand.game.management.gamedata.environement.Floor;%0Aimport com.norwand.game.management.gamedata.environement.entities.Monster;%0Aimport com.norwand.game.resources.ImagesHolder;%0Aimport com.norwand.game.utility.objects.DoubleRectangle;%0Aimport com.norwand.game.utility.objects.MathVector;%0Aimport com.norwand.game.utility.objects.Position;%0A%0A/**%0A * Created by V-SSK on 17/05/2016.%0A */%0Apublic class SoldierDungeon  extends Monster%7B%0A    public SoldierDungeon(Floor roompointer, double x, double y) %7B%0A        super(roompointer, x, y);%0A    %7D%0A    private int spritecounter = 10;%0A    private MathVector direction;%0A%0A    @Override%0A    public void update() %7B%0A%0A        direction = new MathVector(GameData.get().player.x - posX, GameData.get().player.y - posY);%0A        if (direction.getBasicLength() %3C 2)%7B%0A            Position temp = direction.getFixedTranslation(posX, posY, (spritecounter%3E33)?0.03:0.08);%0A            posX = temp.x;%0A            posY = temp.y;%0A        %7D else if (direction.getBasicLength() %3C 2 &&  GameData.get().player.info.health %3C 3)%7B%0A            Position temp = direction.getFixedTranslation(posX, posY, (spritecounter%3E33)?0.05:0.11);%0A            posX = temp.x;%0A            posY = temp.y;%0A        %7D%0A%0A        --spritecounter;%0A        if (spritecounter %3C 0 )%0A            spritecounter = 40;%0A        if(knockback())%0A            GameData.get().player.info.health -= 0.50;%0A%0A    %7D%0A%0A    @Override%0A    public Pixmap getCurrentSprite() %7B%0A        return ImagesHolder.entityset.getTile((spritecounter %3C 25) ? 947 : 955);%0A    %7D%0A%0A    @Override%0A    public void onAct() %7B%0A%0A    %7D%0A%0A    @Override%0A    public DoubleRectangle getHitbox(double posX, double posY) %7B%0A        return new DoubleRectangle(posX - 0.35, posY - 0.35, 0.7, 0.7);%0A    %7D%0A%0A    @Override%0A    public void onhit(double damage) %7B%0A        kill();%0A    %7D
 %0A%7D%0A

change to SoldierDungeon