public override string Render(RenderArguments args) { var PathAndQuery = args.PathAndQuery; var w = new StringBuilder(); w.AppendLine("This is a deep link into a game either a room inside a game or a multiplayer session."); w.AppendLine("<hr />"); var WebTitle = PathAndQuery.Skip(Pattern.Length + 1); var Location = ""; var i = WebTitle.IndexOf("/"); if (i > 0) { Location = WebTitle.Skip(i + 1); WebTitle = WebTitle.Take(i); } w.AppendLine(Location); var Game = GameReferenceExtensions.Default.FirstOrDefault(r => r.GetWebTitle() == WebTitle); if (Game != null) { w.AppendLine("<center>"); w.AppendLine(Game.Embed.ToFlashContainer(int.Parse(Game.Width), int.Parse(Game.Height))); w.AppendLine("</center>"); } return(w.ToString()); }
public override string Render(RenderArguments args) { var PathAndQuery = args.PathAndQuery; var w = new StringBuilder(); w.AppendLine(@" <link rel='shortcut icon' href='/favicon.ico' /> <link rel='alternate' type='application/rss+xml' title='Games' href='http://zproxy.appspot.com/promotion.xml' /> <link rel='alternate' type='application/rss+xml' title='Blog' href='http://zproxy.wordpress.com/feed' /> <style> body { background: gray url('/assets/Bulldog/bg.png'); color: white; } a img { border: 0; } a:hover { color: #0000ff; } a { color: #ffff00; } </style> <title>zproxy games - " + PathAndQuery + @"</title>"); //w.Append("<center>"); //w.Append("<div style='height: 64px;'>"); //w.Append("/assets/Bulldog/CarouselFlash.swf".ToTransparentFlashContainer(800, 300)); //w.Append("</div>"); //w.Append("</center>"); @" <img src='/assets/Bulldog/jsc.png' /> This page will take multiplayer game development on Nonoba to the next level! ".WriteTo(w); return(w.ToString()); }
public override string Render(RenderArguments args) { var PathAndQuery = args.PathAndQuery; var w = new StringBuilder(); w.AppendLine(@" <link rel='shortcut icon' href='/favicon.ico' /> <link rel='alternate' type='application/rss+xml' title='Games' href='http://zproxy.appspot.com/promotion.xml' /> <link rel='alternate' type='application/rss+xml' title='Blog' href='http://zproxy.wordpress.com/feed' /> <style> body { background: gray url('/assets/Bulldog/bg.png'); color: white; } a img { border: 0; } a:hover { color: #0000ff; } a { color: #ffff00; } </style> <title>zproxy games - " + PathAndQuery + @"</title>"); //w.Append("<center>"); //w.Append("<div style='height: 64px;'>"); //w.Append("/assets/Bulldog/CarouselFlash.swf".ToTransparentFlashContainer(800, 300)); //w.Append("</div>"); //w.Append("</center>"); @" <img src='/assets/Bulldog/jsc.png' /> This page will take multiplayer game development on Nonoba to the next level! ".WriteTo(w); return w.ToString(); }
internal static void DrawAllGrass(ref RenderArguments renderArgs) { System.Collections.Generic.List <FPGrass> allEnabledFPGrass = AllEnabledFPGrass; AllEnabledFPGrassInstancesSwap.AddRange(allEnabledFPGrass); AllEnabledFPGrass = AllEnabledFPGrassInstancesSwap; AllEnabledFPGrassInstancesSwap = allEnabledFPGrass; try { foreach (FPGrass grass in AllEnabledFPGrassInstancesSwap) { grass.Render(ref renderArgs); } } finally { AllEnabledFPGrassInstancesSwap.Clear(); } }
private void Render(ref RenderArguments renderArgs) { if (base.enabled) { foreach (FPGrassLevel level in this.children) { if (level.enabled) { if (!renderArgs.immediate) { level.UpdateLevel(renderArgs.center, renderArgs.terrain); } if (level.enabled) { level.Render(ref renderArgs); } } } } }
protected override void doGet(HttpServletRequest req, HttpServletResponse resp) { try { resp.setContentType("text/html"); var a = new RenderArguments { PathAndQuery = req.GetPathAndQuery(), ServerName = req.getServerName() }; resp.getWriter().println(Render(a)); resp.getWriter().flush(); } catch (csharp.ThrowableException ex) { // either swallow of throw a runtime exception ((java.lang.Throwable)(object) ex).printStackTrace(); } }
protected override void doGet(HttpServletRequest req, HttpServletResponse resp) { try { resp.setContentType("text/html"); var a = new RenderArguments { PathAndQuery = req.GetPathAndQuery(), ServerName = req.getServerName() }; resp.getWriter().println(Render(a)); resp.getWriter().flush(); } catch (csharp.ThrowableException ex) { // either swallow of throw a runtime exception ((java.lang.Throwable)(object)ex).printStackTrace(); } }
// http://www.oreillynet.com/onlamp/blog/2002/11/selling_open_source_to_managem.html public override string Render(RenderArguments args) { if (args.ServerName.StartsWith("musi.")) { var ww = new StringBuilder(); ww.Append( "<center>" + "/assets/Bulldog/musi.swf".ToFlashContainer(800, 500) + "</center>" ); return(ww.ToString()); } if (args.ServerName.StartsWith("nonoba.")) { return(new NonobaServlet().Render(args)); } var PathAndQuery = args.PathAndQuery; var w = new StringBuilder(); w.AppendLine(@" <link rel='shortcut icon' href='/favicon.ico' /> <link rel='alternate' type='application/rss+xml' title='Blog' href='http://zproxy.wordpress.com/feed' /> <link rel='alternate' type='application/rss+xml' title='Games' href='http://services.zproxybuzz.info/promotion.xml' /> <style> body { font-family: 'Verdana'; background: gray url('/assets/Bulldog/bg.png'); color: white; } a img { border: 0; } a:hover { color: #0000ff; } a { color: #ffff00; } </style> <title>zproxy solutions - " + args.ServerName + " - " + PathAndQuery + @"</title> <a href='http://zproxy.wordpress.com'> <img src='/assets/Bulldog/jsc.png' />Visit our development blog</a> <br /> <br /> "); w.Append( "<center>" + "/assets/Bulldog/AvalonExampleGalleryFlash.swf".ToFlashContainer(800, 640) + "</center>" ); w.AppendLine(@" <br /> <br /> <br /> <p><a href='http://blog.zproxybuzz.info'>Blog</a> | Terms | <a href='mailto:[email protected]'>Jobs</a> | <a href='mailto:[email protected]'>Sales</a> | <a href='mailto:[email protected]'>Support</a> | <a href='/home'>Home</a> | Watch Demo | About | <a href='http://news.zproxybuzz.info'>News</a> | <a href='http://jsc.zproxybuzz.info'>Technolodgy</a> | <a href='http://services.zproxybuzz.info'>Services</a> | <a href='http://lobby.zproxybuzz.info'>Lobby</a> | <a href='http://games.zproxybuzz.info'>Games</a> </p>" ); return(w.ToString()); }
public override string Render(RenderArguments args) { var PathAndQuery = args.PathAndQuery; var w = new StringBuilder(); w.AppendLine(@" <link rel='shortcut icon' href='/favicon.ico' /> <link rel='alternate' type='application/rss+xml' title='Games' href='http://zproxy.appspot.com/promotion.xml' /> <link rel='alternate' type='application/rss+xml' title='Blog' href='http://zproxy.wordpress.com/feed' /> <style> body { background: gray url('/assets/Bulldog/bg.png'); color: white; } a img { border: 0; } a:hover { color: #0000ff; } a { color: #ffff00; } </style> <title>zproxy games - " + PathAndQuery + @"</title>"); w.Append("<center>"); w.Append("<div style='height: 64px;'>"); w.Append("/assets/Bulldog/CarouselFlash.swf".ToTransparentFlashContainer(800, 300)); w.Append("</div>"); w.Append("</center>"); w.AppendLine(@" <img src='/assets/Bulldog/jsc.png' /> <h2>Service by this server</h2> <ul> <li><s>List recent games made by zproxy.wordpress.com via YAML</s></li> <li>Provide source code generation for ScriptCoreLib</li> <li>Provide multiplayer lobby service</li> <li>Provide user generated content storage and raiting</li> <li>Provide playback recording to resume play at any point</li> </ul> <div><a href='/crossdomain.xml'>crossdomain.xml</a></div> <div><a href='" + AdSenseServlet.Path + @"'>adsense</a></div> <div><a href='" + GameReferenceExtensions.Path + @"'>promotion</a></div> <div><a href='" + PromotionZIPServlet.Path + @"'>promotion zip</a></div> <div><a href='" + BuyLevelEditorServlet.Path + @"'>buy level editor</a></div> <div><a href='" + DonationServlet.Path + @"'>support indie game development</a></div> "); w.Append("<center>"); w.Append("/assets/Bulldog/VerticalScrollerLoader.swf".ToFlashContainer(120, 90)); foreach (var k in GameReferenceExtensions.Default) { w.Append( //(k.Link).ToLink(k.Image.ToImage(k.Title)) (Promotion.PromotionLobbyServlet.Pattern + "/" + k.GetWebTitle()).ToLink(k.Image.ToImage(k.Title)) ); } w.Append("/assets/Bulldog/VerticalScrollerFlash.swf".ToFlashContainer(120, 90)); w.Append("</center>"); w.Append( (JavaCodeGeneratorServlet.UrlPattern + "/" + "org.w3c.dom.Document").ToLink("org.w3c.dom.Document") ); "<p>Blog | Terms | Home | Watch Demo | About</p>".WriteTo(w); return w.ToString(); }
public abstract string Render(RenderArguments args);
public abstract string Render(RenderArguments args);
// http://www.oreillynet.com/onlamp/blog/2002/11/selling_open_source_to_managem.html public override string Render(RenderArguments args) { if (args.ServerName.StartsWith("musi.")) { var ww = new StringBuilder(); ww.Append( "<center>" + "/assets/Bulldog/musi.swf".ToFlashContainer(800, 500) + "</center>" ); return ww.ToString(); } if (args.ServerName.StartsWith("nonoba.")) { return new NonobaServlet().Render(args); } var PathAndQuery = args.PathAndQuery; var w = new StringBuilder(); w.AppendLine(@" <link rel='shortcut icon' href='/favicon.ico' /> <link rel='alternate' type='application/rss+xml' title='Blog' href='http://zproxy.wordpress.com/feed' /> <link rel='alternate' type='application/rss+xml' title='Games' href='http://services.zproxybuzz.info/promotion.xml' /> <style> body { font-family: 'Verdana'; background: gray url('/assets/Bulldog/bg.png'); color: white; } a img { border: 0; } a:hover { color: #0000ff; } a { color: #ffff00; } </style> <title>zproxy solutions - " + args.ServerName + " - " + PathAndQuery + @"</title> <a href='http://zproxy.wordpress.com'> <img src='/assets/Bulldog/jsc.png' />Visit our development blog</a> <br /> <br /> "); w.Append( "<center>" + "/assets/Bulldog/AvalonExampleGalleryFlash.swf".ToFlashContainer(800, 640) + "</center>" ); w.AppendLine(@" <br /> <br /> <br /> <p><a href='http://blog.zproxybuzz.info'>Blog</a> | Terms | <a href='mailto:[email protected]'>Jobs</a> | <a href='mailto:[email protected]'>Sales</a> | <a href='mailto:[email protected]'>Support</a> | <a href='/home'>Home</a> | Watch Demo | About | <a href='http://news.zproxybuzz.info'>News</a> | <a href='http://jsc.zproxybuzz.info'>Technolodgy</a> | <a href='http://services.zproxybuzz.info'>Services</a> | <a href='http://lobby.zproxybuzz.info'>Lobby</a> | <a href='http://games.zproxybuzz.info'>Games</a> </p>" ); return w.ToString(); }
public override string Render(RenderArguments args) { var PathAndQuery = args.PathAndQuery; var w = new StringBuilder(); w.AppendLine(@" <link rel='shortcut icon' href='/favicon.ico' /> <link rel='alternate' type='application/rss+xml' title='Games' href='http://zproxy.appspot.com/promotion.xml' /> <link rel='alternate' type='application/rss+xml' title='Blog' href='http://zproxy.wordpress.com/feed' /> <style> body { background: gray url('/assets/Bulldog/bg.png'); color: white; } a img { border: 0; } a:hover { color: #0000ff; } a { color: #ffff00; } </style> <title>zproxy games - " + PathAndQuery + @"</title>"); w.Append("<center>"); w.Append("<div style='height: 64px;'>"); w.Append("/assets/Bulldog/CarouselFlash.swf".ToTransparentFlashContainer(800, 300)); w.Append("</div>"); w.Append("</center>"); w.AppendLine(@" <img src='/assets/Bulldog/jsc.png' /> <h2>Service by this server</h2> <ul> <li><s>List recent games made by zproxy.wordpress.com via YAML</s></li> <li>Provide source code generation for ScriptCoreLib</li> <li>Provide multiplayer lobby service</li> <li>Provide user generated content storage and raiting</li> <li>Provide playback recording to resume play at any point</li> </ul> <div><a href='/crossdomain.xml'>crossdomain.xml</a></div> <div><a href='" + AdSenseServlet.Path + @"'>adsense</a></div> <div><a href='" + GameReferenceExtensions.Path + @"'>promotion</a></div> <div><a href='" + PromotionZIPServlet.Path + @"'>promotion zip</a></div> <div><a href='" + BuyLevelEditorServlet.Path + @"'>buy level editor</a></div> <div><a href='" + DonationServlet.Path + @"'>support indie game development</a></div> "); w.Append("<center>"); w.Append("/assets/Bulldog/VerticalScrollerLoader.swf".ToFlashContainer(120, 90)); foreach (var k in GameReferenceExtensions.Default) { w.Append( //(k.Link).ToLink(k.Image.ToImage(k.Title)) (Promotion.PromotionLobbyServlet.Pattern + "/" + k.GetWebTitle()).ToLink(k.Image.ToImage(k.Title)) ); } w.Append("/assets/Bulldog/VerticalScrollerFlash.swf".ToFlashContainer(120, 90)); w.Append("</center>"); w.Append( (JavaCodeGeneratorServlet.UrlPattern + "/" + "org.w3c.dom.Document").ToLink("org.w3c.dom.Document") ); "<p>Blog | Terms | Home | Watch Demo | About</p>".WriteTo(w); return(w.ToString()); }