Exemplo n.º 1
0
        public Player BuildCharacter(string classType, string name)
        {
            Player player;
            switch (classType.ToLower())
            {

                case "archer":
                    player = new Archer(name);

                    break;
                case "cleric":
                    player = new Cleric(name);
                    break;
                case "thief":
                    player = new Thief(name);
                    break;
                case "paladin":
                    player = new Paladin(name);
                    break;
                case "warrior":
                    player = new Warrior(name);
                    break;
                case "wizard":
                    player = new Wizard(name);
                    break;
                default:
                    player = new Monster(name);
                    break;
            }
            return player;
        }
Exemplo n.º 2
0
 public MagicDefense(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Exemplo n.º 3
0
 public Remember(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Exemplo n.º 4
0
 public RejuvenatingStrike(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Exemplo n.º 5
0
 public SwordAttack(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Exemplo n.º 6
0
 public ShieldBlock(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Exemplo n.º 7
0
 public IntoTheFray(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Exemplo n.º 8
0
 public HeavyBlow(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Exemplo n.º 9
0
 public ShareTheLoad(Warrior warriorPlayer)
 {
     this.warriorPlayer = warriorPlayer;
 }