Пример #1
0
        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;
            }
        }
Пример #2
0
        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;

        }
Пример #3
0
        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;
            }

        }
Пример #4
0
        public PropertyEditorForm()
        {
            InitializeComponent();


            this.farseerManager = FarseerManager.Main;
            setSelectedObject(farseerManager.world);

            

        }
Пример #5
0
        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();

        }
Пример #6
0
 public HazardManager(FarseerManager f, RagdollManager r)
 {
     this.farseerManager = f;
     this.ragdollManager = r;
 }
Пример #7
0
 protected Pickup(RagdollManager r, FarseerManager f) {
     this.ragdollManager = r;
     this.farseerManager = f;
 }
Пример #8
0
        public Powerup(RagdollManager r, FarseerManager f) : base(r, f)
        {

        }
Пример #9
0
        public Powerup(Body b, RagdollManager ragdollManager, FarseerManager farseerManager) : base(b, ragdollManager, farseerManager)
        {

        }
Пример #10
0
 public PowerupManager(RagdollManager r, FarseerManager f)
 {
     this.ragdollManager = r;
     this.farseerManager = f;
 }