public void enter(IsoGameCharacter owner) { if (!(owner instanceof IsoZombie)) owner.PlayAnim("Die"); else owner.PlayAnim("ZombieDeath"); owner.getStateMachine().Lock = true; SoundManager.instance.PlayWorldSound( "splat", owner.getCurrentSquare(), 0.4F, 10F, 0.6F, 2, false); }
public void execute(IsoGameCharacter owner) { if (owner.def.Frame == (float) (owner.sprite.CurrentAnim.Frames.size() - 1)) { if (owner == TutorialManager.instance.wife) owner.dir = IsoDirections.S; owner.RemoveAttachedAnims(); IsoFireManager.StartFire(owner.getCell(), owner.getCurrentSquare(), true, 60); if (owner instanceof IsoZombie) IsoWorld.instance.MetaCellGrid[IsoWorld.instance.x][IsoWorld.instance.y].zombieCount--; IsoDeadBody body = new IsoDeadBody(owner); } }
static String EscapeChar(IsoGameCharacter chr, String str) { str = str.replace("$FIRSTNAME$", chr.getDescriptor().getForename()); str = str.replace("$SURNAME$", chr.getDescriptor().getSurname()); return str; }
public void exit(IsoGameCharacter owner) { owner.setIgnoreMovementForDirection(false); }