示例#1
0
 public Wave(Texture2D EnemyTexture, Controller player, int WaveLevel, int EnemyCount, float Speed, int Coins, int HP, int AnimationFrameCount, float AnimationDelay, int AnimationWidth, int AnimationHeight, Map map)
     : this(EnemyTexture, player, WaveLevel, EnemyCount, Speed, Coins, HP, map)
 {
     this.AnimationHeight = AnimationHeight;
     this.AnimationWidth = AnimationWidth;
     this.AnimationDelay = AnimationDelay;
     this.AnimationFrameCount = AnimationFrameCount;
 }
示例#2
0
        public WaveMgr(Map map, Wave[] waves)
        {
            this.map = map;
            this.waveArray = waves;
            this.waveCount = waves.Count();

            foreach (Wave wave in waves)
            {
                this.waves.Enqueue(wave);
            }
        }
示例#3
0
 public Wave(Texture2D EnemyTexture, Controller player, int WaveLevel, int EnemyCount, float Speed, int Coins, int HP, Map map)
 {
     this.enemy = EnemyTexture;
     this.player = player;
     this.waveLevel = WaveLevel;
     this.enemyCount = EnemyCount;
     this.origEnemyCount = EnemyCount;
     this.map = map;
     this.speed = Speed;
     this.coins = Coins;
     this.hp = HP;
 }
示例#4
0
 public Controller(Map map, Texture2D[] towertextures, Texture2D[] bullettextures)
 {
     this.map = map;
     this.towertextures = towertextures;
     this.bullettextures = bullettextures;
 }
示例#5
0
 public Wave(string Name, Texture2D healthbartexture, Texture2D healthbarbackground, Texture2D EnemyTexture, Controller player, int WaveLevel, int EnemyCount, float Speed, int Coins, int HP, int AnimationFrameCount, float AnimationDelay, int AnimationWidth, int AnimationHeight, Map map)
     : this(Name, EnemyTexture, player, WaveLevel, EnemyCount, Speed, Coins, HP, AnimationFrameCount, AnimationDelay, AnimationWidth, AnimationHeight, map)
 {
     this.HealthBarTexture = healthbartexture;
     this.HealthBarBackground = healthbarbackground;
 }
示例#6
0
 public Wave(string Name, Texture2D EnemyTexture, Controller player, int WaveLevel, int EnemyCount, float Speed, int Coins, int HP, int AnimationFrameCount, float AnimationDelay, int AnimationWidth, int AnimationHeight, Map map)
     : this(EnemyTexture, player, WaveLevel, EnemyCount, Speed, Coins, HP, AnimationFrameCount, AnimationDelay, AnimationWidth, AnimationHeight, map)
 {
     this.description = Name + " " + HP + "hp, worth " + Coins + "g each.";
 }