public Behavior Jump(JumpHeight height) { if (height == JumpHeight.High) Tasks.Add(() => Console.WriteLine("jumped high")); else { Tasks.Add(() => Console.WriteLine("jumped low")); } return this; }
public Behavior Jump(JumpHeight high) { act.Add(()=>Console.WriteLine("Подпрыгнул")); return this; }
public Behavior Jump(JumpHeight jumpHeight) { Schedule.Add(new JumpBehavior(jumpHeight)); return this; }
public JumpBehavior(JumpHeight height) : base("Я "+(height==JumpHeight.High?"ПРЫГНУЛ":"УПАЛ" )+" НАКУЙ!") { Height = height; }
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); } }
public Behavior Jump(JumpHeight jh) { return new Behavior(actions.Add(() => Console.WriteLine(String.Format("Jump {0}!", jh)))); }