Ejemplo n.º 1
0
	public Effect GetEffect(EffectSchool schl) {
		foreach (var eff in activeEffects) {
			if (eff.School == schl)
				return eff;
		}

		return null;
	}
Ejemplo n.º 2
0
	public List<Effect> GetAllEffects(EffectSchool schl) {
		List<Effect> effcts = new List<Effect> ();

		foreach (var eff in activeEffects) {
			if (eff.School == schl)
				effcts.Add (eff);
		}

		return effcts;
	}
Ejemplo n.º 3
0
	public bool HasEffect(EffectSchool schl)
	{
		foreach (var eff in activeEffects) {
			if (eff.School == schl)
				return true;
		}

		return false;
	}