Ejemplo n.º 1
0
 public static List <GameVisitor> VisitorByLocation(this Game game, GameVisitorLocation location)
 {
     return(game.Visitors.Where(v => v.Location == location).ToList());
 }
Ejemplo n.º 2
0
 public static List <GameVisitor> VisitorByPlayerAndLocation(this Game game, PlayerColor color, GameVisitorLocation location)
 {
     return(game.Visitors.Where(v => v.PlayerGallery == color && v.Location == location).ToList());
 }
Ejemplo n.º 3
0
 public static List<GameVisitor> VisitorByPlayerAndLocation(this Game game, PlayerColor color, GameVisitorLocation location)
 {
     return game.Visitors.Where(v => v.PlayerGallery == color && v.Location == location).ToList();
 }
Ejemplo n.º 4
0
 public static List<GameVisitor> VisitorByLocation(this Game game, GameVisitorLocation location)
 {
     return game.Visitors.Where(v => v.Location == location).ToList();
 }
Ejemplo n.º 5
0
 public static void UpdateVisitorLocation(this IEnumerable<GameVisitor> list, GameVisitorLocation location, PlayerColor color)
 {
     foreach (GameVisitor v in list)
     {
         v.Location = location;
         v.PlayerGallery = color;
     }
 }
Ejemplo n.º 6
0
 public static void UpdateVisitorLocation(this IEnumerable<GameVisitor> list, GameVisitorLocation location)
 {
     foreach (GameVisitor v in list)
     {
         v.Location = location;
     }
 }
Ejemplo n.º 7
0
 public static void UpdateVisitorLocation(this GameVisitor visitor, GameVisitorLocation location, PlayerColor color)
 {
     visitor.Location = location;
     visitor.PlayerGallery = color;
 }