Exemple #1
0
        public void Dice()
        {
            RollingDice rollingDice = new RollingDice();

            rollingDice.Roll();
            Assert.InRange(rollingDice.Result, 1, 6);
        }
Exemple #2
0
 private void Start()
 {
     redHome            = GetComponentInParent <RedHome>();
     redHomeRollingDice = GetComponentInParent <RedHome>().rollingDice;
     aiManager          = GetComponentInParent <AIManager>();
     diceManager        = GameObject.Find("DiceManager").GetComponent <DiceManager>();
 }
Exemple #3
0
 private void Start()
 {
     // _aiTurn = false;
     _BlueHome           = GameObject.Find("BlueHome").GetComponent <BlueHome>();
     _RedHome            = GameObject.Find("RedHome").GetComponent <RedHome>();
     blueHomeRollingDice = GameObject.Find("BlueHome").GetComponent <BlueHome>().rollingDice;
     redHomeRollingDice  = GameObject.Find("RedHome").GetComponent <RedHome>().rollingDice;
 }
Exemple #4
0
 private void Start()
 {
     temp                = GetComponent <PlayerPiece>();
     _movePcOnce         = true;
     blueHome            = GetComponentInParent <BlueHome>();
     blueHomeRollingDice = blueHome.rollingDice;
     diceManager         = GameObject.Find("DiceManager").GetComponent <DiceManager>();
 }
Exemple #5
0
        public void AttackMonsterTest()
        {
            RollingDice     rollingDice     = new RollingDice();
            Player          player          = new Player(2);
            BattleProcessor battleProcessor = new BattleProcessor();
            Monster         monster         = new Yeti(1);

            monster.Attack = 100;
            battleProcessor.MonsterAttack(player, monster);
            Assert.False(battleProcessor.CheckPlayerAlive(player));
        }
 private void Start()
 {
     orangeHomeRollingDice = GetComponentInParent <OrangeHome>().rollingDice;
 }
Exemple #7
0
 private void Start()
 {
     greenHomeRollingDice = GetComponentInParent <GreenHome>().rollingDice;
 }
Exemple #8
0
 private void Start()
 {
     yellowHomeRollingDice = GetComponentInParent <YellowHome>().rollingDice;
 }
Exemple #9
0
 void Start()
 {
     _skipTurn   = true;
     rollingDice = GetComponentInChildren <RollingDice>();
 }
Exemple #10
0
 private void Start()
 {
     violetHomeRollingDice = GetComponentInParent <VioletHome>().rollingDice;
 }
 private void Start()
 {
     roseHomeRollingDice = GetComponentInParent <RoseHome>().rollingDice;
 }
 private void Start()
 {
     blueHomeRollingDice = GetComponentInParent <BlueHome>().rollingDice;
 }