Esempio n. 1
0
 public Behavior Jump(JumpHeight height)
 {
     if (height == JumpHeight.High)
         Tasks.Add(() => Console.WriteLine("jumped high"));
     else
     {
         Tasks.Add(() => Console.WriteLine("jumped low"));
     }
     return this;
 }
Esempio n. 2
0
 public Behavior Jump(JumpHeight high)
 {
     act.Add(()=>Console.WriteLine("Подпрыгнул"));
     return this;
 }
Esempio n. 3
0
 public Behavior Jump(JumpHeight jumpHeight)
 {
     Schedule.Add(new JumpBehavior(jumpHeight));
     return this;
 }
Esempio n. 4
0
 public JumpBehavior(JumpHeight height)
     : base("Я "+(height==JumpHeight.High?"ПРЫГНУЛ":"УПАЛ" )+" НАКУЙ!")
 {
     Height = height;
 }
Esempio n. 5
0
 public Behavior Jump(JumpHeight height)
 {
     return Say(jumpPhrases[height]);
 }
 public static void LobbyJump(JumpHeight height)
 {
     byte[] buffer;
     if (height.ToString() == "Normal")
     {
         buffer = new byte[4];
         buffer[0] = 0x42;
         buffer[1] = 0x9c;
         PS3.SetMemory(0x19780, buffer);
     }
     if (height.ToString() == "High")
     {
         buffer = new byte[4];
         buffer[0] = 0x44;
         buffer[1] = 0xf9;
         PS3.SetMemory(0x19780, buffer);
     }
     if (height.ToString() == "Super")
     {
         buffer = new byte[4];
         buffer[0] = 70;
         PS3.SetMemory(0x19780, buffer);
     }
 }
Esempio n. 7
0
 public Behavior Jump(JumpHeight jh)
 {
     return new Behavior(actions.Add(() => Console.WriteLine(String.Format("Jump {0}!", jh))));
 }