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();
        }
示例#2
0
 public Monster(MyGame game, CModel model, Unit unit)
     : base(game, unit, model)
 {
     monsterModel = ((MonsterModel)cModel);
     monsterUnit  = ((MonsterUnit)unit);
 }
示例#3
0
 public Monster(MyGame game, CModel model, Unit unit)
     : base(game, unit, model)
 {
     monsterModel = ((MonsterModel)cModel);
     monsterUnit = ((MonsterUnit)unit);
 }