Esempio n. 1
0
 public virtual bool TemplateEquals(SpellGlyph other)
 {
     if (object.ReferenceEquals(other, this))
     {
         return(true);
     }
     if (object.ReferenceEquals(other, null))
     {
         return(false);
     }
     return(other.GetType() == this.GetType());
 }
Esempio n. 2
0
        public void Advance()
        {
            if (this.HasEnded)
            {
                return;
            }

            SpellGlyph current = this.CurrentGlyph;

            Log.Game.Write("[ {0}, {1}] {2}",
                           this.pos.X.ToString().PadRight(3),
                           this.pos.Y.ToString().PadRight(3),
                           current.GetType().Name);
            Log.Game.PushIndent();
            if (current.Activate(this))
            {
                this.pos.X += 1;
            }
            Log.Game.PopIndent();
        }