Beispiel #1
0
 private void InitControls()
 {
     mLocalCommands.Add(Comands.Left, GeneralMove);
     mLocalCommands.Add(Comands.TenStepsLeft, GeneralMove);
     mLocalCommands.Add(Comands.Right, GeneralMove);
     mLocalCommands.Add(Comands.TenStepsRight, GeneralMove);
     mLocalCommands.Add(Comands.Up, GeneralMove);
     mLocalCommands.Add(Comands.TenStepsUp, GeneralMove);
     mLocalCommands.Add(Comands.Down, GeneralMove);
     mLocalCommands.Add(Comands.TenStepsDown, GeneralMove);
     mLocalCommands.Add(Comands.GenerateALotOfRooms, GenerateRooms);
     mLocalCommands.Add(Comands.GenerateOneRoom, GenerateRooms);
     mLocalCommands.Add(Comands.GenerateRandomPath, GeneratePath);
     foreach (KeyValuePair <Comands, Action <BaseCommand> > mComm in mLocalCommands)
     {
         Comand.Add(mComm.Key, mComm.Value);
     }
 }
Beispiel #2
0
 private void InitControls()
 {
     MLocalCommands.Add(Comands.Left, GeneralMove);
     MLocalCommands.Add(Comands.TenStepsLeft, GeneralMove);
     MLocalCommands.Add(Comands.Right, GeneralMove);
     MLocalCommands.Add(Comands.TenStepsRight, GeneralMove);
     MLocalCommands.Add(Comands.Up, GeneralMove);
     MLocalCommands.Add(Comands.TenStepsUp, GeneralMove);
     MLocalCommands.Add(Comands.Down, GeneralMove);
     MLocalCommands.Add(Comands.TenStepsDown, GeneralMove);
     MLocalCommands.Add(Comands.GenerateALotOfRooms, GenerateRooms);
     MLocalCommands.Add(Comands.GenerateOneRoom, GenerateRooms);
     MLocalCommands.Add(Comands.GenerateRandomPath, GeneratePath);
     foreach (var Comm in MLocalCommands)
     {
         Comand.Add(Comm.Key, Comm.Value);
     }
 }