public Spell(Controllers.Spell spellController, BattleEntities.Character characterBattle) { m_spellController = spellController; m_characterBattle = characterBattle; m_spellRange = new SpellRange(spellController.SpellRange, spellController, characterBattle); m_effectRange = new EffectRange(SpellController.EffectRange, spellController, characterBattle); }
public void AddSpell(Controllers.Spell spell) { if (m_characterTeamModel.Spells == null) { m_characterTeamModel.Spells = new List <string>(); } if (m_spells == null) { m_spells = new List <Spell>(); } if (m_spells.Contains(spell)) { return; } if (m_character.CharacterModel.SpellIds.Contains(spell.Id)) { m_characterTeamModel.Spells.Add(spell.Id); m_spells.Add(spell); } }
public EffectRange(Controllers.EffectRange range, Controllers.Spell spell, BattleEntities.Character character) : base(range, spell, character) { m_range = range; m_spell = spell; }
public Range(Controllers.Range range, Controllers.Spell spell, BattleEntities.Character character) { m_range = range; m_spell = spell; m_character = character; }
public void RemoveSpell(Controllers.Spell spell) { m_characterTeamModel.Spells.Remove(spell.Id); m_spells.Remove(spell); }