public WristVelocityEquipment(RagdollMuscle ragdoll = null) { if (ragdoll != null) { Init(ragdoll); } }
public JetPack(RagdollMuscle ragdoll = null) { if (ragdoll != null) { Init(ragdoll); } }
//private RagdollMuscle ragdoll; public GrabHands(RagdollMuscle ragdoll, World world) : base(ragdoll) { this.world = world; //this.ragdoll = ragdoll; ragdoll.KnockOut += new EventHandler(ragdoll_KnockOut); }
public void CreateNewRagdoll(KinectRagdollGame game) { ragdoll = new RagdollMuscle(game.farseerManager.world, Vector2.Zero); ragdoll.Equipment.Add(new StabilizedJetpack(ragdoll)); ragdoll.Equipment.Add(new BubbleShield(ragdoll, game.farseerManager.world)); CameraShouldTrack = true; }
public override void Init(FarseerPhysics.Dynamics.World w, Kinect.RagdollManager r) { world = w; target = r.ragdoll; body.setWorld(w); body.OnCollision += new OnCollisionEventHandler(body_OnCollision); world.ProcessChanges(); IsOperational = true; }
public override void Init(RagdollMuscle ragdoll) { rand = new Random(); this.ragdoll = ragdoll; ragdoll.KnockOut += new EventHandler(ragdoll_KnockOut); soundTimer = new Timer(100); soundTimer.Elapsed -= new ElapsedEventHandler(soundTimer_Elapsed); soundTimer.Elapsed += new ElapsedEventHandler(soundTimer_Elapsed); }
public override void Init(RagdollMuscle ragdoll) { base.Init(ragdoll); this.world = KinectRagdollGame.Main.farseerManager.world; }
public PunchEquipment(World world, int cooldown, RagdollMuscle ragdoll = null) : base(ragdoll) { //this.ragdoll = ragdoll; this.world = world; this.cooldown = cooldown; }
public abstract void DoPickupAction(RagdollMuscle ragdoll);
//private const float SPEED_THRESHOLD = .6f; //private const float SPEED_THRESHOLD = .6f; //private const float EXTENSION_THRESHOLD = 2.3f; public SpideySilk(World world, int cooldown, int range, RagdollMuscle ragdoll = null) : base(world, cooldown, ragdoll) { this.range = range; }
public PunchGuns(World world, int cooldown, RagdollMuscle ragdoll = null) : base(world, cooldown, ragdoll) { }
public override void DoPickupAction(RagdollMuscle ragdoll) { ApplyPowerup(ragdoll); if (Song != null) Jukebox.Play(Song); }
public void ApplyPowerup(RagdollMuscle ragdoll) { ragdoll.Equipment = Equipment; }
public override void Init(RagdollMuscle ragdoll) { this.ragdoll = ragdoll; ragdoll.KnockOut += new EventHandler(ragdoll_KnockOut); this.world = KinectRagdollGame.Main.farseerManager.world; }
public BubbleShield(RagdollMuscle r, World w) { this.world = w; Init(r); }
public override void Init(RagdollMuscle ragdoll) { base.Init(ragdoll); ragdoll.KnockOut += new EventHandler(ragdoll_KnockOut); }
//protected float angularStabilizationTorque; public StabilizedJetpack(RagdollMuscle ragdoll = null) : base(ragdoll) { }
public override void Init(RagdollMuscle ragdoll) { this.ragdoll = ragdoll; ragdoll.WakeUp += new EventHandler(Reset); ragdoll.PossessedByPlayer += new EventHandler(Reset); }
public abstract void Init(RagdollMuscle ragdoll);
public Flappers(RagdollMuscle ragdoll = null) : base(ragdoll) { }