private void AddTask(TaskDBEntry _dbTask) { //Task _task = new Task(_dbTask, _dbTask.ToolbarSlotHex, _dbTask.BuffHex, _dbTask.OnOccurence, _dbTask.TaskType, _dbTask.SendDelay, _dbTask.WithClick, _dbTask.ClickDelay, this, _dbTask.ToolbarSlotHex2, _dbTask.PauseBetweenSkills); switch (_dbTask.TaskType) { case TaskType.Hold: { TaskHold _task = new TaskHold(_dbTask, this, _dbTask.ToolbarSlotHex, _dbTask.SendDelay, _dbTask.WithClick, _dbTask.ClickDelay); _tasks.Add(_task); break; } case TaskType.Buff: { TaskBuff _task = new TaskBuff(_dbTask, this, _dbTask.ToolbarSlotHex, _dbTask.BuffHex, _dbTask.SendDelay, _dbTask.WithClick, _dbTask.ClickDelay, _dbTask.OnOccurence); _tasks.Add(_task); break; } case TaskType.Toggle: { TaskToggle _task = new TaskToggle(_dbTask, this, _dbTask.ToolbarSlotHex, _dbTask.SendDelay, _dbTask.WithClick, _dbTask.ClickDelay); _tasks.Add(_task); break; } } }
public TaskHold(TaskDBEntry _taskDBEntry, Character _parentChar, String _skillHex, int _sendDelay, bool _withClick, int _clickDelay) : base(_taskDBEntry, _parentChar) { this._skillHex = _skillHex; this._sendDelay = _sendDelay; this._withClick = _withClick; this._clickDelay = _clickDelay; AddTrigger(); }
public TaskBase(TaskDBEntry _taskDBEntry, Character _parentChar) { this._taskDBEntry = _taskDBEntry; this._parentChar = _parentChar; _taskWindow = new TaskWindow(); _taskWindow.labelPlay.Click += PauseTaskFromGui; _taskWindow.labelRemove.Click += RemoveTask; _taskWindow.SetPause(TaskPause); _taskWindow.SetSkill(_taskDBEntry.Name); _taskWindow.SetStatus(0); _parentChar.CharWindow.AddTaskWindow(_taskWindow); }
public TaskBuff(TaskDBEntry _taskDBEntry, Character _parentChar, String _skillHex, String _buffHex, int _sendDelay, bool _withClick, int _clickDelay, bool _onAppearence) : base(_taskDBEntry, _parentChar) { this._skillHex = _skillHex; this._buffHex = _buffHex; this._sendDelay = _sendDelay; this._withClick = _withClick; this._clickDelay = _clickDelay; this._onAppearence = _onAppearence; AddTrigger(); }
public TaskToggle(TaskDBEntry _taskDBEntry, Character _parentChar, String _skillHex, int _sendDelay, bool _withClick, int _clickDelay) : base(_taskDBEntry, _parentChar, _skillHex, _sendDelay, _withClick, _clickDelay) { }