Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public ILevelBuilder SetPlayer(PlayerShip player)
 {
     this.lvl.Player = player;
     this.player     = player;
     return(this);
 }
Ejemplo n.º 3
0
 public ILevelBuilder SetPlayer(PlayerShip ship)
 {
     playersView = new EquipmentView();
     playersView.SetForAllItems(ship, 50);
     return(this);
 }
Ejemplo n.º 4
0
 public ILevelBuilder SetPlayer(PlayerShip ship)
 {
     level.Player = ship;
     return(this);
 }