Exemplo n.º 1
0
 public InitiativeEntry(string name, int init, removeDelegate rem)
 {
     InitializeComponent();
     EntryName.Text       = name;
     EntryInitiative.Text = init.ToString();
     remDel = rem;
 }
Exemplo n.º 2
0
        public InitiativeEntry(IMob ms, removeDelegate rem)
        {
            IStats stats = (IStats)ms.getComponent(typeof(IStats));

            InitializeComponent();
            EntryName.Text   = ms.Name;
            EntryNumber.Text = ms.Number.ToString();
            int initiative = MobRollHelper.roll(1, 20) + Convert.ToInt32(Math.Floor((stats.Dexterity - 10.0) / 2.0));

            EntryInitiative.Text = initiative.ToString();
            remDel = rem;
        }