Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            PrimaryPlayer player = PrimaryPlayer.Instance;

            Console.WriteLine($"{player.Name} - lvl {player.Level}");
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        public Gameboard()
        {
            _player        = PrimaryPlayer.Instance;
            _player.Weapon = new Sword(12, 8);
            Console.WriteLine($"Name: {_player.Name}, Level: {_player.Level}");

            PlayArea(1);
        }
 static PrimaryPlayer()
 {
     _instance = new PrimaryPlayer()
     {
         Name = "Raptor",
         Level = 1
     };
 }
Ejemplo n.º 4
0
 static PrimaryPlayer()
 {
     _instance = new PrimaryPlayer
     {
         Name   = "Player-001",
         Level  = 1,
         Armor  = 25,
         Health = 100,
     };
 }
 static PrimaryPlayer()
 {
     _instance = new PrimaryPlayer()
     {
         Name   = "Raptor",
         Level  = 1,
         Armor  = 25,
         Health = 100
     };
 }
Ejemplo n.º 6
0
 static PrimaryPlayer()
 {
     Console.Write("Your name: ");
     Instance = new PrimaryPlayer()
     {
         Name   = Console.ReadLine(),
         Level  = 1,
         Health = 100,
         Armor  = 25,
     };
 }
Ejemplo n.º 7
0
        static void Main(string[] args)
        {
            // The code provided will print ‘Hello World’ to the console.
            // Press Ctrl+F5 (or go to Debug > Start Without Debugging) to run your app.
            PrimaryPlayer player  = PrimaryPlayer.Instance;
            PrimaryPlayer player2 = PrimaryPlayer.Instance2;

            Console.WriteLine($"{player.Name} -lvl {player.Level}");
            Console.WriteLine($"{player2.Name} -lv2 {player2.Level}");
            Console.ReadKey();

            // Go to http://aka.ms/dotnet-get-started-console to continue learning how to build a console app!
        }
Ejemplo n.º 8
0
        static PrimaryPlayer()
        {
            _instance = new PrimaryPlayer()
            {
                Name  = "Raptor",
                Level = 1
            };

            _instance2 = new PrimaryPlayer()
            {
                Name  = "rutha",
                Level = 2
            };
        }
        public async Task Play(PrimaryPlayer player, int areaLevel)
        {
            _player    = player;
            _areaLevel = areaLevel;
            ConfigurePlayerWeapon();
            await AddPlayerCards();

            LoadZombies(areaLevel);
            LoadWerewolves(areaLevel);
            LoadGiants(areaLevel);
            // Begin Playing Logic
            this.StartTurns();
            // if (areaLevel == 1) this.PlayFirstLevel();
        }
Ejemplo n.º 10
0
 public void Defend(PrimaryPlayer player)
 {
     Console.WriteLine($"Zombie tries to defend from {player.Name}");
     Health += 3;
 }
Ejemplo n.º 11
0
 public void Defend(PrimaryPlayer player)
 {
     Console.WriteLine($"Werewolf is defending from {player.Name}");
     Health += 7;
 }
Ejemplo n.º 12
0
 public Gameboard()
 {
     _player        = PrimaryPlayer.Instance;
     _player.Weapon = new Sword(12, 8);
 }
Ejemplo n.º 13
0
 public void Attack(PrimaryPlayer player)
 {
     Console.WriteLine($"Zombie attacks {player.Name}");
     player.Health -= 5;
 }
Ejemplo n.º 14
0
 public void Attack(PrimaryPlayer player)
 {
     Console.WriteLine($"Giant is attacking {player.Name}");
     player.Health -= 10;
 }
Ejemplo n.º 15
0
 public GameBoard()
 {
     _player          = PrimaryPlayer.Instance;
     _gameBoardFacade = new GameBoardFacade();
 }
Ejemplo n.º 16
0
 public void Defend(PrimaryPlayer player)
 {
     Console.WriteLine($"Giant is defending from {player.Name}");
     Health += 5;
 }
Ejemplo n.º 17
0
 public void Attack(PrimaryPlayer player)
 {
     Console.WriteLine($"Werewolf is attacking {player.Name}");
     player.Health -= 3;
 }
 public Gameboard()
 {
     _player = PrimaryPlayer.Instance;
 }