Пример #1
0
        public EnemyModel BuildGenericEnemyModel(string type, string texture, double startTime, double stopTime,
                                                 Point position, int health, double rate)
        {
            var bm = new EnemyModel(position, rate, MainContent.Textures[texture]);

            bm.SetHealth(health);
            TimeToLiveTagged(startTime, stopTime, bm, bm);
            bm.SetLifespan(startTime, stopTime);
            return(bm);
        }