public WristVelocityEquipment(RagdollMuscle ragdoll = null)
 {
     if (ragdoll != null)
     {
         Init(ragdoll);
     }
 }
예제 #2
0
 public JetPack(RagdollMuscle ragdoll = null)
 {
     
     if (ragdoll != null)
     {
         Init(ragdoll);
     }
 }
예제 #3
0
        //private RagdollMuscle ragdoll;

        public GrabHands(RagdollMuscle ragdoll, World world) : base(ragdoll)
        {
            this.world = world;
            //this.ragdoll = ragdoll;

            ragdoll.KnockOut += new EventHandler(ragdoll_KnockOut);

        }
예제 #4
0
        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;
            

        }
예제 #5
0
        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;
        }
예제 #6
0
        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);
        }
예제 #7
0
        public override void Init(RagdollMuscle ragdoll)
        {
            base.Init(ragdoll);

            this.world = KinectRagdollGame.Main.farseerManager.world;
        }
예제 #8
0
 public PunchEquipment(World world, int cooldown, RagdollMuscle ragdoll = null) : base(ragdoll)
 {
     //this.ragdoll = ragdoll;
     this.world = world;
     this.cooldown = cooldown;
 }
예제 #9
0
 public abstract void DoPickupAction(RagdollMuscle ragdoll);
예제 #10
0
        //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;
        }
예제 #11
0
 public PunchGuns(World world, int cooldown, RagdollMuscle ragdoll = null) : base(world, cooldown, ragdoll)
 {
    
 }
예제 #12
0
        public override void DoPickupAction(RagdollMuscle ragdoll)
        {
            ApplyPowerup(ragdoll);

            if (Song != null)
                Jukebox.Play(Song);
        }
예제 #13
0
 public void ApplyPowerup(RagdollMuscle ragdoll)
 {
     ragdoll.Equipment = Equipment;
 }
예제 #14
0
 public override void Init(RagdollMuscle ragdoll)
 {
     this.ragdoll = ragdoll;
     ragdoll.KnockOut += new EventHandler(ragdoll_KnockOut);
     this.world = KinectRagdollGame.Main.farseerManager.world;
 }
예제 #15
0
 public BubbleShield(RagdollMuscle r, World w)
 {
     this.world = w;
     Init(r);
 }
예제 #16
0
 public override void Init(RagdollMuscle ragdoll)
 {
     base.Init(ragdoll);
     ragdoll.KnockOut += new EventHandler(ragdoll_KnockOut);
 }
예제 #17
0
        //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);
 }
예제 #19
0
 public abstract void Init(RagdollMuscle ragdoll);
예제 #20
0
        public Flappers(RagdollMuscle ragdoll = null)
            : base(ragdoll)
        {

        }