Ejemplo n.º 1
0
 public override bool execute(Fusion.GameTime gameTime)
 {
     ((Submarine)Entity).damage();
     ((Team)Entity.Parent).AI.NotifyMineDamage((Submarine)Entity);
     if (Entity.ToRemove)
     {
         ActionsQueue.deleteAllFor(Entity);
     }
     return(true);
 }
Ejemplo n.º 2
0
 public override bool execute(Fusion.GameTime gameTime)
 {
     if (Entity.Cell == sub1.Cell)
     {
         ((Submarine)Entity).damage();
         ((Team)Entity.Parent).AI.NotifyAccident((Submarine)Entity);
         ActionsQueue.Field.addNewNoise(Entity.Cell, Config.NOISE_ACCIDENT);
         if (Entity.ToRemove)
         {
             ActionsQueue.deleteAllFor(Entity);
         }
     }
     return(true);
 }