/// <summary> /// A hero interacted with a side of the block /// </summary> /// <param name="location">Location of the mouse</param> /// <param name="side">Wall side</param> /// <param name="button">Mouse buttons</param> /// <returns>True if the event is processed</returns> public bool OnClick(Point location, CardinalPoint side, MouseButtons button) { // Actor interaction if (Actor != null) { return(Actor.OnClick(location, side, button)); } // Decoration interaction Team team = GameScreen.Team; Decoration decoration = team.Maze.GetDecoration(team.FrontLocation.Coordinate, Compass.GetOppositeDirection(team.Direction)); if (decoration != null) { GameMessage.AddMessage("Decoration: OnClick()"); return(false); } return(false); }