Esempio n. 1
0
    public DiceRoll(DiceKind type, int number, DiceRollCheckType checkType)
    {
        Type = type;
        CountOfInitialRoll = number;
        CheckType          = checkType;

        if (checkType != DiceRollCheckType.Virtual)
        {
            SetSpawningPoint();
        }

        GenerateDiceRoll();
    }
Esempio n. 2
0
    // 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();
    }
Esempio n. 3
0
    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();
    }