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; }
public override bool Equals(object obj) { DominoModel item = obj as DominoModel; if (item == null) { return(false); } return(number1 == item.number1 && number2 == item.number2); }
public ChosenWayToPlayModel(DominoModel chosenDomino, DominoModel chosenPlace) { this.chosenDomino = chosenDomino; this.chosenPlace = chosenPlace; }