Beispiel #1
0
 public IEnumerable <IntVector2> Predict(Entity actor, IntVector2 direction, PredictionTargetInfo info)
 {
     foreach (var action in actions)
     {
         if (action is IPredictable predictable)
         {
             foreach (var position in predictable.Predict(actor, direction, info))
             {
                 yield return(position);
             }
         }
     }
 }
Beispiel #2
0
 public IEnumerable <IntVector2> Predict(Entity actor, PredictionTargetInfo info)
 {
     return(actor.GetComponent(activateableId).Predict(actor, info));
 }
Beispiel #3
0
 public IEnumerable <IntVector2> Predict(Entity actor, IntVector2 direction, PredictionTargetInfo info) => Predict(actor, info);
Beispiel #4
0
 public IEnumerable <IntVector2> Predict(Entity actor, PredictionTargetInfo info)
 {
     return(PredictFunc(actor, info));
 }
Beispiel #5
0
 IEnumerable <IntVector2> IPredictable.Predict(Entity actor, IntVector2 direction, PredictionTargetInfo info)
 {
     return(Predict(actor, info));
 }
Beispiel #6
0
 public Predictor(World world, Layers targetedLayer, Faction targetedFaction)
 {
     this.world          = world;
     this.predictionInfo = new PredictionTargetInfo(targetedLayer, targetedFaction);
 }