-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
29 lines (25 loc) · 824 Bytes
/
Program.cs
File metadata and controls
29 lines (25 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
namespace StateAndCommand
{
class Program
{
static void Main(string[] args)
{
/*Game rpg = new Game("Curse of Strahd");
rpg.BuyGame();
rpg.InstallGame();
rpg.DeleteGame();
rpg.StartGame();*/
Game rpg = new Game("The Elder Scrolls 7: Revenge of the Todd");
Game action = new Game("Murder Rampage Killer Man 3: Blood Edition");
var oneclick = new OneClickPlay(rpg);
var buy = new BuyCommand(action);
var install = new InstallCommand(action);
var delete = new DeleteCommand(action);
oneclick.Execute();
buy.Execute();
install.Execute();
delete.Execute();
}
}
}