Beispiel #1
0
        public void AddSpellCast(string shortName, int x, int y, int time)
        {
            Spell sp = SpellBook.LookupSpell(shortName);

            if (sp != null)
            {
                SimpleGUI.SetCursorForSpellCast(_spellCasts.Count);
                Console.WriteLine($"Cast {sp.Description} at ({x},{y}) @{time}");

                SpellCast sc = new SpellCast(sp, x, y, time, _spellCasts.Count + 1);
                _gameWorld.Clock.Tick += sc.OnTick;
                _spellCasts.Add(sc);
            }
        }