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;
        }
Example #2
0
 public MagicDefense(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Example #3
0
 public Remember(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
 public RejuvenatingStrike(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Example #5
0
 public SwordAttack(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Example #6
0
 public ShieldBlock(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Example #7
0
 public IntoTheFray(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Example #8
0
 public HeavyBlow(Warrior warriorPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.warriorPlayer = warriorPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Example #9
0
 public ShareTheLoad(Warrior warriorPlayer)
 {
     this.warriorPlayer = warriorPlayer;
 }