public override void Init(KinectRagdollGame g) { this.stopwatch = new Stopwatch(); body.OnCollision += ObjectiveTouched; base.Init(g); }
public ObjectiveManager(KinectRagdollGame game) { countdown = new Stopwatch(); countup = new Stopwatch(); bleedout = new Stopwatch(); this.game = game; }
public ObjectiveManager(KinectRagdollGame game) { countdown = new Stopwatch(); countup = new Stopwatch(); bleedout = new Stopwatch(); this.game = game; }
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 FarseerManager(bool main, KinectRagdollGame game) { //world.ContactManager = new ContactManager(); world = new World(new Vector2(0, -20)); debugview = new DebugViewXNA(world); debugview.Flags = FarseerPhysics.DebugViewFlags.TexturedShape | FarseerPhysics.DebugViewFlags.RagdollCustom; //World loaded = Serializer.readFromDataContract("graph.xml"); //world.JointList.AddRange(loaded.JointList); //world.BodyList.AddRange(loaded.BodyList); this.game = game; //world = new World(new Vector2(0, 0)); rand = new Random(); if (main) { Main = this; } }
public FarseerManager(bool main, KinectRagdollGame game) { //world.ContactManager = new ContactManager(); world = new World(new Vector2(0, -20)); debugview = new DebugViewXNA(world); debugview.Flags = FarseerPhysics.DebugViewFlags.TexturedShape | FarseerPhysics.DebugViewFlags.RagdollCustom; //World loaded = Serializer.readFromDataContract("graph.xml"); //world.JointList.AddRange(loaded.JointList); //world.BodyList.AddRange(loaded.BodyList); this.game = game; //world = new World(new Vector2(0, 0)); rand = new Random(); if (main) { Main = this; } }
public override void Init(KinectRagdollGame g) { this.stopwatch = new Stopwatch(); body.OnCollision += ObjectiveTouched; base.Init(g); }
public StopwatchObjective(KinectRagdollGame g, Body b) : base(g) { this.body = b; FarseerTextures.ApplyTexture(b, FarseerTextures.TextureType.Objective); Init(g); }
public StopwatchObjective(KinectRagdollGame g, Body b) : base(g) { this.body = b; FarseerTextures.ApplyTexture(b, FarseerTextures.TextureType.Objective); Init(g); }
//private int BUTTON_PADDING = 5; public Toolbox(KinectRagdollGame game) { this.game = game; toolMappings = new Dictionary <ToolboxButton, Tool>(); actionMappings = new Dictionary <ToolboxButton, ClickAction>(); buttons = new List <ToolboxButton>(); Position = new Vector2(0, 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; }
private static void KillMouseJoints(World w, KinectRagdollGame g) { List<FixedMouseJoint> mjs = new List<FixedMouseJoint>(); foreach (Joint j in w.JointList) { if (j is FixedMouseJoint) w.RemoveJoint(j); } w.ProcessChanges(); }
private static void KillMouseJoints(World w, KinectRagdollGame g) { List <FixedMouseJoint> mjs = new List <FixedMouseJoint>(); foreach (Joint j in w.JointList) { if (j is FixedMouseJoint) { w.RemoveJoint(j); } } w.ProcessChanges(); }
public static void Save(World w, KinectRagdollGame g, String filename) { KillMouseJoints(w, g); FileStream writer = new FileStream(filename, FileMode.Create); SaveFile sf = new SaveFile(); foreach (Body b in w.BodyList) { //if (!g.ragdollManager.OwnsBody(b)) //{ sf.bodyList.Add(b); //} } foreach (Joint j in w.JointList) { if (!g.ragdollManager.OwnsJoint(j)) { sf.jointList.Add(j); } } sf.gravity = w.Gravity; sf.ragdoll = g.ragdollManager.ragdoll; sf.objectives = g.objectiveManager.objectives; sf.powerups = g.powerupManager.Powerups; sf.hazards = g.hazardManager.Hazards; WriteSaveFile(writer, sf); }
public static void Save(World w, KinectRagdollGame g, String filename) { KillMouseJoints(w, g); FileStream writer = new FileStream(filename, FileMode.Create); SaveFile sf = new SaveFile(); foreach (Body b in w.BodyList) { //if (!g.ragdollManager.OwnsBody(b)) //{ sf.bodyList.Add(b); //} } foreach (Joint j in w.JointList) { if (!g.ragdollManager.OwnsJoint(j)) { sf.jointList.Add(j); } } sf.gravity = w.Gravity; sf.ragdoll = g.ragdollManager.ragdoll; sf.objectives = g.objectiveManager.objectives; sf.powerups = g.powerupManager.Powerups; sf.hazards = g.hazardManager.Hazards; WriteSaveFile(writer, sf); }
public RectangleTool(KinectRagdollGame game) : base(game) { }
public WallPopperTool(KinectRagdollGame game) : base(game) { }
public RectangleTool(KinectRagdollGame game) : base(game) { }
public PointerTool(KinectRagdollGame game, Texture2D selectionRec) : base(game) { this.selectionRec = selectionRec; game.farseerManager.world.FixtureRemoved += checkSavedFixtureRemoval; }
public JointTool(KinectRagdollGame game) : base(game) { }
public CircleTool(KinectRagdollGame game) : base(game) { }
public Objective(KinectRagdollGame g) { this.game = g; }
public PowerupForm() { InitializeComponent(); game = KinectRagdollGame.Main; }
//private DragArea d; public DraggedTool(KinectRagdollGame game) : base(game) { }
public PolygonTool(KinectRagdollGame game) : base(game) { }
public ActionCenter(KinectRagdollGame game) { this.game = game; }
public WallPopperTool(KinectRagdollGame game) : base(game) { }
/// <summary> /// Call this after you deserialize an objective. /// </summary> /// <param name="g"></param> public virtual void Init(KinectRagdollGame g) { this.game = g; }
public Objective(KinectRagdollGame g) { this.game = g; }
/// <summary> /// Call this after you deserialize an objective. /// </summary> /// <param name="g"></param> public virtual void Init(KinectRagdollGame g) { this.game = g; }
public PowerupForm() { InitializeComponent(); game = KinectRagdollGame.Main; }
public JointTool(KinectRagdollGame game) : base(game) { }
public InputManager(KinectRagdollGame game) { this.game = game; inputHelper = new InputHelper(); }
public RocketTurretTool(KinectRagdollGame game) : base(game) { }
public PointerTool(KinectRagdollGame game, Texture2D selectionRec) : base(game) { this.selectionRec = selectionRec; game.farseerManager.world.FixtureRemoved += checkSavedFixtureRemoval; }
public ObjectiveTool(KinectRagdollGame g) : base(g) { }
public RopeTool(KinectRagdollGame game) : base(game) { }
public Tool(KinectRagdollGame game) { this.game = game; }
public RopeTool(KinectRagdollGame game) : base(game) { }
public RocketTurretTool(KinectRagdollGame game) : base(game) { }
public GunTurretTool(KinectRagdollGame game) : base(game) { }
public InputManager(KinectRagdollGame game) { this.game = game; inputHelper = new InputHelper(); }
public LaserTurretTool(KinectRagdollGame game) : base(game) { }
public ActionCenter(KinectRagdollGame game) { this.game = game; }
public ObjectiveTool(KinectRagdollGame g) : base(g) { }
public NailTool(KinectRagdollGame game) : base(game) { }
public CircleTool(KinectRagdollGame game) : base(game) { }
public static void SetGame(KinectRagdollGame game) { FarseerTextures.game = game; }
public static void SetGame(KinectRagdollGame game) { FarseerTextures.game = game; }
public PolygonTool(KinectRagdollGame game) : base(game) { }