/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { /*FileStream myStream = new FileStream("..\\..\\..\\Content\\testFormation.xml",FileMode.Open); * XmlReader reader = XmlReader.Create(myStream); * mTestFormation = IntermediateSerializer.Deserialize<Formation>(reader, null); * * reader.Close(); * myStream.Close();*/ mTestCharacter = Content.Load <Character>("TestCharacter"); mTestCharacter.ChargedAttackScript = new DefaultSuperAttack(); mPlayer = new Player(this, 0); mPlayer2 = new Player(this, 1); mPlayer2.Character = mTestCharacter; mPlayer.Character = mTestCharacter; Components.Add(mPlayer2); Components.Add(mPlayer); mTestFormation = Content.Load <Formation>("testFormation"); mLevel = new Level(); mLevel2 = new Level(); mLevel2.Formations.Add(mCopyContentManager[0].Load <Formation>("testFormation")); mLevel.Formations.Add(mTestFormation); mLevelFlow = new LevelFlow(mLevel, 0); mLevelFlow2 = new LevelFlow(mLevel2, 1); mCollisionManager = new CollisionManager(mPlayer, mLevelFlow, 0); mCollisionManager2 = new CollisionManager(mPlayer2, mLevelFlow2, 1); base.LoadContent(); }
public CollisionManager(Player aPlayer, LevelFlow aLevelFlow, int aNumPlayer) { mPlayer = aPlayer; mLevelFlow = aLevelFlow; mNumPlayer = aNumPlayer; }