Exemplo n.º 1
0
        public static void GetStatsForTowerType(TowerTypes type, out TowerStats[] towerStats, out WeaponStats[] weaponStats)
        {
            switch (type)
            {
                case TowerTypes.Lawyer://Base cost 15 min delay is 4
                    towerStats = new TowerStats[7] {new TowerStats(15, 150, 25), new TowerStats(12, 160, 50), new TowerStats(9, 170, 90),
                         new TowerStats(7, 180, 200), new TowerStats(6, 190, 450),new TowerStats(5, 195, 700),new TowerStats(4, 200, -1) };
                    weaponStats = new WeaponStats[7] { new WeaponStats(5, 10, 1), new WeaponStats(18, 10, 1), new WeaponStats(40, 10, 1),
                         new WeaponStats(120, 10, 1), new WeaponStats(500, 10, 1),new WeaponStats(1500, 10, 1),new WeaponStats(3000, 10, 1) };
                break;
                //case TowerTypes.Splash:
                case TowerTypes.Teacher://base 20
                    Debuff slow = new Debuff(CreepStats.Speed, 1, 10);
                    Debuff slow2 = new Debuff(CreepStats.Speed, 2, 20);
                towerStats = new TowerStats[5] { new TowerStats(70, 140, 40), new TowerStats(50, 150, 60),
                    new TowerStats(30, 150, 100), new TowerStats(20, 160, 200), new TowerStats(10, 170, -1) };
                weaponStats = new WeaponStats[5] { new WeaponStats(20, 6, 1, slow), new WeaponStats(40, 6, 1, slow),
                    new WeaponStats(80, 6, 1, slow), new WeaponStats(200, 6, 1, slow2), new WeaponStats(500, 6, 1, slow2) };
                break;
                //case TowerTypes.Gavel:

                default: //normal for now (judge) Base 10;
                towerStats = new TowerStats[6] { new TowerStats(13, 160, 30), new TowerStats(12, 170, 50), new TowerStats(10, 190, 100),
                    new TowerStats(10, 210, 180), new TowerStats(9, 230, 400), new TowerStats(8, 250, -1) };
                weaponStats = new WeaponStats[6] { new WeaponStats(5, 10, 1), new WeaponStats(20, 10, 1), new WeaponStats(50, 10, 1),
                    new WeaponStats(150, 10, 1), new WeaponStats(700, 10, 1), new WeaponStats(2000, 10, 1) };
                break;
            }
        }
Exemplo n.º 2
0
 public Tower(TowerStats[] tStats, WeaponStats[] wStats, MEDIA_ID textureID, Vector2 startPosition, TowerTypes type)
 {
     towerStats = tStats;
     weaponStats = wStats;
     Level = 0;
     NextFire = 0;
     this._position = startPosition;
     Type = type;
     TextureID = textureID;
 }
Exemplo n.º 3
0
 public static void GetStatsForTowerType(TowerTypes type, out TowerStats[] towerStats, out WeaponStats[] weaponStats)
 {
     //switch (type)
     //{
     //    case TowerTypes.Fast:
     //    case TowerTypes.Slow:
     //    case TowerTypes.Splash:
     //    case TowerTypes.Normal:
     //    case default :
             towerStats = new TowerStats[5] { new TowerStats(20, 5, 5), new TowerStats(15, 6, 10), new TowerStats(13, 7, 20), new TowerStats(11, 8, 40), new TowerStats(10, 9, -1) };
             weaponStats = new WeaponStats[5] { new WeaponStats(10, 10, 1), new WeaponStats(20, 10, 1), new WeaponStats(40, 10, 1), new WeaponStats(80, 10, 1), new WeaponStats(200, 10, 1) };
             //break;
     //}
 }