コード例 #1
0
 public GameStatusModel(HashSet <DominoModel> historySet, HashSet <DominoModel> playerSet, DominoModel leftDomino, DominoModel rightDomino, DominoModel upperDomino, DominoModel lowerDomino)
 {
     this.historySet  = historySet;
     this.playerSet   = playerSet;
     this.leftDomino  = leftDomino;
     this.rightDomino = rightDomino;
     this.upperDomino = upperDomino;
     this.lowerDomino = lowerDomino;
 }
コード例 #2
0
        public override bool Equals(object obj)
        {
            DominoModel item = obj as DominoModel;

            if (item == null)
            {
                return(false);
            }
            return(number1 == item.number1 && number2 == item.number2);
        }
コード例 #3
0
 public ChosenWayToPlayModel(DominoModel chosenDomino, DominoModel chosenPlace)
 {
     this.chosenDomino = chosenDomino;
     this.chosenPlace  = chosenPlace;
 }