Visitor – implementace C# class CollisionVisitor : IVisitor { private Hero hero; // whether hero collides private bool status; public void Visit(IElement element) { if(!(hero.x + hero.width < element.x || hero.x > element.x + element.width) || !(hero.y + hero.height < element.y || hero.y > element.y + element.height)){ status = false; } }...
{}