コード例 #1
0
 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);
 }
コード例 #2
0
 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);
   }
 }
コード例 #3
0
 static String EscapeChar(IsoGameCharacter chr, String str) {
   str = str.replace("$FIRSTNAME$", chr.getDescriptor().getForename());
   str = str.replace("$SURNAME$", chr.getDescriptor().getSurname());
   return str;
 }
コード例 #4
0
 public void exit(IsoGameCharacter owner) {
   owner.setIgnoreMovementForDirection(false);
 }