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()); }
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(); }