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;
        }
Beispiel #2
0
 public FireArrow(Archer archerPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.archerPlayer = archerPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Beispiel #3
0
 public TwinStrike(Archer archerPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.archerPlayer = archerPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Beispiel #4
0
 public SteadyAim(Archer archerPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.archerPlayer = archerPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
 public PerfectShot(Archer archerPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.archerPlayer = archerPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
 public TotalDefense(Archer archerPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.archerPlayer = archerPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }
Beispiel #7
0
 public Recall(Archer archerPlayer, IBoardGame gameBoard, ITargetPlayer targetPlayer)
 {
     this.archerPlayer = archerPlayer;
     this.gameBoard = gameBoard;
     this.targetPlayer = targetPlayer;
 }