Data class for actors.
Наследование: IRpgObject
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="actor">Reference to an <see cref="RPG.Actor"/> object.</param>
 /// <param name="paramIndex">Index of the parameter to change</param>
 public ParamGenerateCurveDialog(ref Actor actor, int paramIndex)
 {
     this.InitializeComponent();
     var max = Project.Settings.GetMaxValue(paramIndex);
     this.numericInitial.Maximum = max;
     this.numericFinal.Maximum = max;
     this.numericFinal.Value = actor.parameters[paramIndex, actor.final_level];
     this.numericInitial.Value = actor.parameters[paramIndex, actor.initial_level];
 }
 /// <summary>
 /// Changes the form's associated <see cref="RPG.Actor"/> to represent.
 /// </summary>
 /// <param name="actor">RPG.Actor instance</param>
 public void ChangeActor(Actor actor)
 {
     this._actor = actor;
     this.listBoxExperience.ColumnWidth = this._actor.final_level <= 100 ? 96 : 136;
     this._expList = new long[this._actor.final_level + 1];
     this.trackBarBasis.Value = this._actor.exp_basis;
     this.trackBarInflation.Value = this._actor.exp_inflation;
     this._startValues = new[] { this._actor.exp_basis, this._actor.exp_inflation };
 }
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="actor">Actor to associate with this control.</param>
 /// <param name="index">Index of the parameter to activate on the control.</param>
 public ActorParametersForm(Actor actor, int index)
 {
     this.InitializeComponent();
     this.numericValue.Maximum = Project.Settings.GetMaxValue(index);
     this._actor = actor;
     this.numericLevel.Minimum = this._actor.initial_level;
     this.numericLevel.Maximum = this._actor.final_level;
     TabText = String.Format("Parameters: {0}", this._actor.name);
     this.GenerateCharts();
     Windows.ChartSettingsForm.SetCharts(ref this._charts);
     this.tabControlParameters.SelectedIndex = index;
 }
Пример #4
0
 /// <summary>
 /// Changes the actor the chart is displaying information of.
 /// </summary>
 /// <param name="actor"></param>
 public void ChangeActor(Actor actor)
 {
     this._actor = actor;
     this.RefreshChart();
 }
 private void RefreshActor(Actor actor)
 {
     this._suppressEvent = true;
     this._actor = actor;
     this.numericLevel.Minimum = this._actor.initial_level;
     this.numericLevel.Maximum = this._actor.final_level;
     TabText = String.Format("Parameters: {0}", this._actor.name);
     this.RefreshChart(this.tabControlParameters.SelectedIndex);
 }