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