Esempio n. 1
0
 public VideoGame(VideoGameBuilder builder) : base(builder.GetName(), builder.GetPrice(), builder.GetManufacturerName(), builder.GetAgeLimit())
 {
     platform = builder.GetPlatform();
     genre    = builder.GetGenre();
     mode     = builder.GetMode();
     style    = builder.GetStyle();
 }
Esempio n. 2
0
 VideoGame(string name, double price, string manufacturerName, int ageLimit, EnGamePlatform platform,
           EnGenreVideoGame genre, EnGameMode mode, EnStylistic style) : base(name, price, manufacturerName, ageLimit)
 {
     this.platform = platform;
     this.genre    = genre;
     this.mode     = mode;
     this.style    = style;
 }
Esempio n. 3
0
 public VideoGameBuilder SetPlatform(EnGamePlatform platform)
 {
     this.platform = platform; return(this);
 }