Пример #1
0
        private EnemyShip ParseEnemy(string txt, PlayerShip p, Tier tier)
        {
            switch (txt)
            {
            case "Casual":
                return(new Enemies.CasualEnemy(new Vector(), tier));

            case "Frosty":
                return(new Enemies.FrostyEnemy(new Vector(), tier));

            case "Rocky":
                return(new Enemies.RockyEnemy(new Vector(), tier));

            case "Tricky":
                return(new Enemies.TrickyEnemy(p, new Vector(), tier));

            case "Stealthy":
                return(new Enemies.StealthyEnemy(new Vector(), tier));
            }
            return(null);
        }
Пример #2
0
 public ILevelBuilder SetPlayer(PlayerShip player)
 {
     this.lvl.Player = player;
     this.player     = player;
     return(this);
 }
Пример #3
0
 public ILevelBuilder SetPlayer(PlayerShip ship)
 {
     playersView = new EquipmentView();
     playersView.SetForAllItems(ship, 50);
     return(this);
 }
Пример #4
0
 public ILevelBuilder SetPlayer(PlayerShip ship)
 {
     level.Player = ship;
     return(this);
 }