Example #1
0
 public Client()
 {
     this.invoker    = new Invoker();
     this.reciever   = new Reciever();
     this.onCommand  = new OnCommand(reciever);
     this.offCommand = new OffCommand(reciever);
     setCommands();
 }
Example #2
0
        public Client()
        {
            this.invoker     = new Invoker();
            this.reciever    = new Reciever();
            this.onCommand   = new OnCommand(reciever);
            this.offCommand  = new OffCommand(reciever);
            this.SlowCommand = new SlowCommand(reciever);

            commandList.Add(this.onCommand);
            commandList.Add(this.offCommand);
            commandList.Add(this.SlowCommand);


            this.partyCommand = new PartyCommand(this.commandList);
            setCommands();
        }
Example #3
0
 public MediumCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }
Example #4
0
 public OffCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }
Example #5
0
 public NullCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }
Example #6
0
 public SlowCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }
Example #7
0
 public HighCommand(Reciever reciever)
 {
     this.reciever = reciever;
 }