public HUDElement_SpellCastText(Scene scene_current, float x = 0, float y = 0, SpellInformation spellCast = null) : base(scene_current)
 {
     X = x;
     Y = y;
     LifeSpan = 45f * 2; // Only last for 45 frames -- begin fading out 
     if (spellCast != null)
     {
         spellName = spellCast.spellName;
     }
     else
     {
         spellName = "Not a Spell!";
         textCol = Color.Red;
     }
 }
Ejemplo n.º 2
0
		// Allows on-the-fly spell additions.
		public void AddSpell( String comboAdd, SpellInformation newSpell )
		{
			spellDictionary.Add( comboAdd, newSpell );
		}