Beispiel #1
0
 public void UpdateMoveList(Player.e_LocationOfThePlayer i_UpOrDownPlayer)
 {
     if (i_UpOrDownPlayer == Player.e_LocationOfThePlayer.UP)
     {
         UpdateMoveListOfPlayer1();
     }
     else
     {
         UpdateMoveListOfPlayer2();
     }
 }
Beispiel #2
0
        private bool optionMove(string i_MoveFrom, string i_MoveTo, Player.e_LocationOfThePlayer i_UpOrDownPlayer)
        {
            bool optionalMove = false;

            if (i_UpOrDownPlayer == Player.e_LocationOfThePlayer.UP)
            {
                if (ListContainTwoStringsInOneNode(r_MovesListOfPlayer1, i_MoveFrom, i_MoveTo))
                {
                    optionalMove = true;
                }
            }
            else
            {
                if (ListContainTwoStringsInOneNode(r_MovesListOfPlayer2, i_MoveFrom, i_MoveTo))
                {
                    optionalMove = true;
                }
            }

            return(optionalMove);
        }