Exemplo n.º 1
0
 public bool checkMe_Dynamic(Spaceobject possibleTarget)
 {
     if (possibleTarget.getType() == targetType)
     {
         if (targetType == "planet")
         {
             Planet planet = new Planet();
             planet.loadMe(possibleTarget.getPath());
             return(checkPlanet(planet));
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 public bool targetTypeValidation()
 {
     return(validTargetTypes.Contains(myHost.getType()));
 }