示例#1
0
    public DiceRoll(DiceKind type, int number, DiceRollCheckType checkType)
    {
        Type = type;
        CountOfInitialRoll = number;
        CheckType          = checkType;

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

        GenerateDiceRoll();
    }
示例#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();
    }
示例#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();
    }