private Enemy.Action GetAction()
{
var action = new Enemy.Action();
if (this.checkBoxTurn.Checked)
{
action.condition_turn_a = (int)this.numericUpDownTurn.Value;
action.condition_turn_b = (int)this.numericUpDownTurnX.Value;
}
else
{
action.condition_turn_a = 0;
action.condition_turn_b = 1;
}
action.condition_hp = this.checkBoxHP.Checked ? (int)this.numericUpDownHP.Value : 100;
action.condition_level = this.checkBoxLevel.Checked ? (int)this.numericUpDownLevel.Value : 1;
action.condition_switch_id = this.checkBoxSwitch.Checked ?
this.comboBoxSwitch.SelectedIndex + 1 : 0;
action.kind = this.radioButtonBasic.Checked ? 0 : 1;
action.basic = this.comboBoxBasic.SelectedIndex;
action.skill_id = this.comboBoxSkill.SelectedIndex + 1;
action.rating = this.trackBarRating.Value;
return action;
}