Exemplo n.º 1
0
 /// <summary>
 /// Does this entity have any valid actions?
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public bool HasValidPlays(GameEntity entity)
 {
     if (validPlays == null)
     {
         return(false);
     }
     // If we have a command filter, that can override this (in the negative):
     if (commandFilter != null)
     {
         if (!commandFilter.HasValidPlays(entity))
         {
             return(false);
         }
     }
     return(validPlays.HasValidPlays(entity));
 }