C# Class DND_Monster.AddActionForm

Inheritance: System.Windows.Forms.Form
Show file Open project: FallenWyvern/DnD-Monster-Generator Class Usage Examples

Public Properties

Property Type Description
ActionName System.Windows.Forms.Label
AttackAbilityDescription System.Windows.Forms.Label
AttackAbilityDescriptionField System.Windows.Forms.RichTextBox
AttackAbilityNameField System.Windows.Forms.TextBox
AttackBonusUpDown System.Windows.Forms.NumericUpDown
AttackHitEffect System.Windows.Forms.Label
AttackName System.Windows.Forms.Label
AttackNameField System.Windows.Forms.TextBox
AttackRange System.Windows.Forms.Label
AttackTarget System.Windows.Forms.Label
AttackToHitBonus System.Windows.Forms.Label
AttackType System.Windows.Forms.Label
AttackTypeDropdown System.Windows.Forms.ComboBox
DescriptionLabel System.Windows.Forms.Label
HitDamageEffect System.Windows.Forms.TextBox
HitDamageType System.Windows.Forms.ComboBox
HitDiceBonusDamage System.Windows.Forms.NumericUpDown
HitDiceType System.Windows.Forms.ComboBox
HitNumberOfDice System.Windows.Forms.NumericUpDown
NewAbility Ability
NewAttack Ability
NewReaction Ability
RangeUpDownClose System.Windows.Forms.NumericUpDown
RangeUpDownFar System.Windows.Forms.NumericUpDown
Reach System.Windows.Forms.Label
ReachUpDown System.Windows.Forms.NumericUpDown
ReactionDescription System.Windows.Forms.RichTextBox
ReactionName System.Windows.Forms.TextBox
ReactionNameLabel System.Windows.Forms.Label
ReactionSave System.Windows.Forms.Button
label1 System.Windows.Forms.Label
label2 System.Windows.Forms.Label
label8 System.Windows.Forms.Label
multiAttackDescription System.Windows.Forms.RichTextBox
tabControl1 System.Windows.Forms.TabControl
tabPage1 System.Windows.Forms.TabPage
tabPage2 System.Windows.Forms.TabPage
tabPage3 System.Windows.Forms.TabPage

Public Methods

Method Description
AddActionForm ( string currentCR = "" ) : System
LoadAction ( Ability values ) : void
LoadAttack ( Ability values ) : void
LoadReaction ( Ability values ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AddActionForm_Load ( object sender, EventArgs e ) : void
AverageDamage ( int numOfDie, string sizeOfDie, int bonus ) : int
ConfigureRange ( object sender, EventArgs e ) : void
DexterityAttackButton_Click ( object sender, EventArgs e ) : void
FillActionOnTabChange ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Save ( object sender, EventArgs e ) : void
StrengthAttackButton_Click ( object sender, EventArgs e ) : void
diceSize ( string sizeOfDie ) : int

Method Details

AddActionForm() public method

public AddActionForm ( string currentCR = "" ) : System
currentCR string
return System

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

LoadAction() public method

public LoadAction ( Ability values ) : void
values Ability
return void

LoadAttack() public method

public LoadAttack ( Ability values ) : void
values Ability
return void

LoadReaction() public method

public LoadReaction ( Ability values ) : void
values Ability
return void

Property Details

ActionName public property

public System.Windows.Forms.Label ActionName
return System.Windows.Forms.Label

AttackAbilityDescription public property

public System.Windows.Forms.Label AttackAbilityDescription
return System.Windows.Forms.Label

AttackAbilityDescriptionField public property

public System.Windows.Forms.RichTextBox AttackAbilityDescriptionField
return System.Windows.Forms.RichTextBox

AttackAbilityNameField public property

public System.Windows.Forms.TextBox AttackAbilityNameField
return System.Windows.Forms.TextBox

AttackBonusUpDown public property

public System.Windows.Forms.NumericUpDown AttackBonusUpDown
return System.Windows.Forms.NumericUpDown

AttackHitEffect public property

public System.Windows.Forms.Label AttackHitEffect
return System.Windows.Forms.Label

AttackName public property

public System.Windows.Forms.Label AttackName
return System.Windows.Forms.Label

AttackNameField public property

public System.Windows.Forms.TextBox AttackNameField
return System.Windows.Forms.TextBox

AttackRange public property

public System.Windows.Forms.Label AttackRange
return System.Windows.Forms.Label

AttackTarget public property

public System.Windows.Forms.Label AttackTarget
return System.Windows.Forms.Label

AttackToHitBonus public property

public System.Windows.Forms.Label AttackToHitBonus
return System.Windows.Forms.Label

AttackType public property

public System.Windows.Forms.Label AttackType
return System.Windows.Forms.Label

AttackTypeDropdown public property

public System.Windows.Forms.ComboBox AttackTypeDropdown
return System.Windows.Forms.ComboBox

DescriptionLabel public property

public System.Windows.Forms.Label DescriptionLabel
return System.Windows.Forms.Label

HitDamageEffect public property

public System.Windows.Forms.TextBox HitDamageEffect
return System.Windows.Forms.TextBox

HitDamageType public property

public System.Windows.Forms.ComboBox HitDamageType
return System.Windows.Forms.ComboBox

HitDiceBonusDamage public property

public System.Windows.Forms.NumericUpDown HitDiceBonusDamage
return System.Windows.Forms.NumericUpDown

HitDiceType public property

public System.Windows.Forms.ComboBox HitDiceType
return System.Windows.Forms.ComboBox

HitNumberOfDice public property

public System.Windows.Forms.NumericUpDown HitNumberOfDice
return System.Windows.Forms.NumericUpDown

NewAbility public property

public Ability,DND_Monster NewAbility
return Ability

NewAttack public property

public Ability,DND_Monster NewAttack
return Ability

NewReaction public property

public Ability,DND_Monster NewReaction
return Ability

RangeUpDownClose public property

public System.Windows.Forms.NumericUpDown RangeUpDownClose
return System.Windows.Forms.NumericUpDown

RangeUpDownFar public property

public System.Windows.Forms.NumericUpDown RangeUpDownFar
return System.Windows.Forms.NumericUpDown

Reach public property

public System.Windows.Forms.Label Reach
return System.Windows.Forms.Label

ReachUpDown public property

public System.Windows.Forms.NumericUpDown ReachUpDown
return System.Windows.Forms.NumericUpDown

ReactionDescription public property

public System.Windows.Forms.RichTextBox ReactionDescription
return System.Windows.Forms.RichTextBox

ReactionName public property

public System.Windows.Forms.TextBox ReactionName
return System.Windows.Forms.TextBox

ReactionNameLabel public property

public System.Windows.Forms.Label ReactionNameLabel
return System.Windows.Forms.Label

ReactionSave public property

public System.Windows.Forms.Button ReactionSave
return System.Windows.Forms.Button

label1 public property

public System.Windows.Forms.Label label1
return System.Windows.Forms.Label

label2 public property

public System.Windows.Forms.Label label2
return System.Windows.Forms.Label

label8 public property

public System.Windows.Forms.Label label8
return System.Windows.Forms.Label

multiAttackDescription public property

public System.Windows.Forms.RichTextBox multiAttackDescription
return System.Windows.Forms.RichTextBox

tabControl1 public property

public System.Windows.Forms.TabControl tabControl1
return System.Windows.Forms.TabControl

tabPage1 public property

public System.Windows.Forms.TabPage tabPage1
return System.Windows.Forms.TabPage

tabPage2 public property

public System.Windows.Forms.TabPage tabPage2
return System.Windows.Forms.TabPage

tabPage3 public property

public System.Windows.Forms.TabPage tabPage3
return System.Windows.Forms.TabPage