public DiceRoll(DiceKind type, int number, DiceRollCheckType checkType) { Type = type; CountOfInitialRoll = number; CheckType = checkType; if (checkType != DiceRollCheckType.Virtual) { SetSpawningPoint(); } GenerateDiceRoll(); }
// INITIALIZE public DiceRoll(DiceKind type, int countOfInitialRoll, DiceRollCheckType checkType, PlayerNo owner = PlayerNo.PlayerNone) { Type = type; CountOfInitialRoll = countOfInitialRoll; CheckType = checkType; Owner = owner; if (checkType != DiceRollCheckType.Virtual) { SetDiceSpawningPoint(); } GenerateDiceRoll(); }
public DiceRoll(DiceKind type, int number, DiceRollCheckType checkType, PlayerNo playerNo = PlayerNo.PlayerNone) { Type = type; CountOfInitialRoll = number; CheckType = checkType; PlayerNo = playerNo; ModifiedBy = new List <PlayerNo>(); if (checkType != DiceRollCheckType.Virtual) { SetSpawningPoint(); } GenerateDiceRoll(); }