public FightController()
        {
            Write = Writter.GetInstance();

            PlayerLeft  = new Player(15, PlayerSide.Left);
            PlayerRight = new Player(102, PlayerSide.Right);
        }
Beispiel #2
0
        public Player(int initialPosition, PlayerSide Side)
        {
            Write = Writter.GetInstance();

            HealthPoints   = 9;
            Position       = initialPosition;
            AtkAvailable   = 3;
            DefAvailable   = 2;
            DefendingState = false;
            this.Side      = Side;

            AttackThread  = new Thread(GenerateAtk);
            DefenseThread = new Thread(GenerateDef);

            AttackThread.Name  = "GenarateAtk";
            DefenseThread.Name = "GenerateDef";

            AttackThread.Start();
            DefenseThread.Start();

            Write.StayNormal(ref _Position, Side);
        }