Elin Modding Docs Doc
Loading...
Searching...
No Matches
Dice Class Reference

Public Member Functions

 Dice (int _num=0, int _sides=0, int _bonus=0, Card _card=null)
 
int Roll ()
 
int RollMax ()
 
override string ToString ()
 

Static Public Member Functions

static int Roll (int num, int sides, int bonus=0, Card card=null)
 
static int RollMax (int num, int sides, int bonus=0)
 
static int rnd (int a)
 
static Dice Parse (string raw)
 
static Dice Create (Element ele, Card c)
 
static Dice Create (string id, int power, Card c=null, Act act=null)
 

Public Attributes

int num
 
int sides
 
int bonus
 
Card card
 

Static Public Attributes

static Dice Null = new Dice(0, 0, 0, null)
 

Detailed Description

Definition at line 6 of file Dice.cs.

Constructor & Destructor Documentation

◆ Dice()

Dice.Dice ( int _num = 0,
int _sides = 0,
int _bonus = 0,
Card _card = null )

Definition at line 48 of file Dice.cs.

Member Function Documentation

◆ Create() [1/2]

static Dice Dice.Create ( Element ele,
Card c )
static

Definition at line 93 of file Dice.cs.

◆ Create() [2/2]

static Dice Dice.Create ( string id,
int power,
Card c = null,
Act act = null )
static

Definition at line 121 of file Dice.cs.

◆ Parse()

static Dice Dice.Parse ( string raw)
static

Definition at line 57 of file Dice.cs.

◆ rnd()

static int Dice.rnd ( int a)
static

Definition at line 42 of file Dice.cs.

◆ Roll() [1/2]

int Dice.Roll ( )

Definition at line 75 of file Dice.cs.

◆ Roll() [2/2]

static int Dice.Roll ( int num,
int sides,
int bonus = 0,
Card card = null )
static

Definition at line 9 of file Dice.cs.

◆ RollMax() [1/2]

int Dice.RollMax ( )

Definition at line 81 of file Dice.cs.

◆ RollMax() [2/2]

static int Dice.RollMax ( int num,
int sides,
int bonus = 0 )
static

Definition at line 36 of file Dice.cs.

◆ ToString()

override string Dice.ToString ( )

Definition at line 87 of file Dice.cs.

Member Data Documentation

◆ bonus

int Dice.bonus

Definition at line 171 of file Dice.cs.

◆ card

Card Dice.card

Definition at line 174 of file Dice.cs.

◆ Null

Dice Dice.Null = new Dice(0, 0, 0, null)
static

Definition at line 162 of file Dice.cs.

◆ num

int Dice.num

Definition at line 165 of file Dice.cs.

◆ sides

int Dice.sides

Definition at line 168 of file Dice.cs.


The documentation for this class was generated from the following file: