Esempio n. 1
0
        public void WhenProcessingChain_IfChainMatchesAnyMonster_MonsterManagerProcesses()
        {
            MonsterManager.DoesMoveMatchAnyCurrentMonsters(Arg.Any <List <IGamePiece> >()).Returns(true);
            List <IGamePiece> chain = new List <IGamePiece>();

            systemUnderTest.Process(chain);

            MonsterManager.Received().ProcessPlayerMove(Arg.Any <IGamePlayer>(), chain);
        }
Esempio n. 2
0
 public void Process(List <IGamePiece> i_chain)
 {
     if (MonsterManager.DoesMoveMatchAnyCurrentMonsters(i_chain))
     {
         MonsterManager.ProcessPlayerMove(GamePlayer, i_chain);
         UsePiecesInChain(i_chain);
         RandomizeGameBoardIfNoMonsterCombosAvailable();
         Audio.PlayOneShot(CombatAudioKeys.CHAIN_COMPLETE);
     }
     else
     {
         MarkPiecesIncorrect(i_chain);
         Audio.PlayOneShot(CombatAudioKeys.CHAIN_BROKEN);
     }
 }