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 KinectRagdollGame() { Main = this; graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = WIDTH; graphics.PreferredBackBufferHeight = HEIGHT; Content.RootDirectory = "Content"; FarseerTextures.Init(); FarseerTextures.SetGame(this); kinectManager = new KinectManager(); farseerManager = new FarseerManager(true, this); ragdollManager = new RagdollManager(); actionCenter = new ActionCenter(this); inputManager = new InputManager(this); //spriteHelper = new SpriteHelper(); objectiveManager = new ObjectiveManager(this); powerupManager = new PowerupManager(ragdollManager, farseerManager); jukebox = new Jukebox(); hazardManager = new HazardManager(farseerManager, ragdollManager); particleEffectManager = new ParticleEffectManager(graphics, ref farseerProjection); toolbox = new Toolbox(this); this.IsMouseVisible = true; bkColor = Color.CornflowerBlue; }
public PropertyEditorForm() { InitializeComponent(); this.farseerManager = FarseerManager.Main; setSelectedObject(farseerManager.world); }
internal Pickup(Body b, RagdollManager ragdollManager, FarseerManager farseerManager) : this(ragdollManager, farseerManager) { this.Body = b; foreach (Fixture f in b.FixtureList) { f.BeforeCollision += new BeforeCollisionEventHandler(f_BeforeCollision); } ApplyTexture(); }
public HazardManager(FarseerManager f, RagdollManager r) { this.farseerManager = f; this.ragdollManager = r; }
protected Pickup(RagdollManager r, FarseerManager f) { this.ragdollManager = r; this.farseerManager = f; }
public Powerup(RagdollManager r, FarseerManager f) : base(r, f) { }
public Powerup(Body b, RagdollManager ragdollManager, FarseerManager farseerManager) : base(b, ragdollManager, farseerManager) { }
public PowerupManager(RagdollManager r, FarseerManager f) { this.ragdollManager = r; this.farseerManager = f; }