This class represent monster model that can run differet animations so inherent from AnimatedModel
Inheritance: AnimatedModel
        public Monster(Game1 game, SkinnedModel skinnedModel, Unit unit)
            : base(game, unit, new MonsterModel(game, skinnedModel))
        {
            monsterModel = ((MonsterModel)cModel);
            monsterUnit = ((MonsterUnit)unit);

            foreach (ModelMesh mesh in skinnedModel.Model.Meshes)
                foreach (SkinnedEffect effect in mesh.Effects)
                    effect.EnableDefaultLighting();
        }
Beispiel #2
0
 public Monster(MyGame game, CModel model, Unit unit)
     : base(game, unit, model)
 {
     monsterModel = ((MonsterModel)cModel);
     monsterUnit  = ((MonsterUnit)unit);
 }
 public Monster(MyGame game, CModel model, Unit unit)
     : base(game, unit, model)
 {
     monsterModel = ((MonsterModel)cModel);
     monsterUnit = ((MonsterUnit)unit);
 }