예제 #1
0
 public static List <GameVisitor> VisitorByLocation(this Game game, GameVisitorLocation location)
 {
     return(game.Visitors.Where(v => v.Location == location).ToList());
 }
예제 #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());
 }
예제 #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();
 }
예제 #4
0
 public static List<GameVisitor> VisitorByLocation(this Game game, GameVisitorLocation location)
 {
     return game.Visitors.Where(v => v.Location == location).ToList();
 }
예제 #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;
     }
 }
예제 #6
0
 public static void UpdateVisitorLocation(this IEnumerable<GameVisitor> list, GameVisitorLocation location)
 {
     foreach (GameVisitor v in list)
     {
         v.Location = location;
     }
 }
예제 #7
0
 public static void UpdateVisitorLocation(this GameVisitor visitor, GameVisitorLocation location, PlayerColor color)
 {
     visitor.Location = location;
     visitor.PlayerGallery = color;
 }