public override AcceptanceReport AllowAction(EventPack ep) { if (ep.Tag == "Designate-Wall") { return(TutorUtility.EventCellsAreWithin(ep, this.cachedEdgeCells)); } return(base.AllowAction(ep)); }
public override AcceptanceReport AllowAction(EventPack ep) { if (ep.Tag == "Designate-Sandbags") { return(TutorUtility.EventCellsAreWithin(ep, sandbagCells)); } return(base.AllowAction(ep)); }
public override AcceptanceReport AllowAction(EventPack ep) { if (ep.Tag == "Designate-Door") { return(TutorUtility.EventCellsAreWithin(ep, allowedPlaceCells)); } return(base.AllowAction(ep)); }
public override AcceptanceReport AllowAction(EventPack ep) { AcceptanceReport result; if (ep.Tag == "Designate-Door") { result = TutorUtility.EventCellsAreWithin(ep, this.allowedPlaceCells); } else { result = base.AllowAction(ep); } return(result); }