<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://game.etao.net/w/index.php?action=history&amp;feed=atom&amp;title=Stendhal_code_design</id>
	<title>Stendhal code design - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://game.etao.net/w/index.php?action=history&amp;feed=atom&amp;title=Stendhal_code_design"/>
	<link rel="alternate" type="text/html" href="https://game.etao.net/w/index.php?title=Stendhal_code_design&amp;action=history"/>
	<updated>2026-05-06T07:16:50Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://game.etao.net/w/index.php?title=Stendhal_code_design&amp;diff=48&amp;oldid=prev</id>
		<title>imported&gt;Test：​创建页面，内容为“{{Stendhal code design}}{{Navigation for Stendhal Top|Developing}}__NOTOC__ This page gives a little overview about the Stendhal code.  == Development Environment ==…”</title>
		<link rel="alternate" type="text/html" href="https://game.etao.net/w/index.php?title=Stendhal_code_design&amp;diff=48&amp;oldid=prev"/>
		<updated>2018-12-14T06:36:03Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{Stendhal code design}}{{Navigation for Stendhal Top|Developing}}__NOTOC__ This page gives a little overview about the Stendhal code.  == Development Environment ==…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Stendhal code design}}{{Navigation for Stendhal Top|Developing}}__NOTOC__&lt;br /&gt;
This page gives a little overview about the Stendhal code.&lt;br /&gt;
&lt;br /&gt;
== Development Environment ==&lt;br /&gt;
&lt;br /&gt;
Stendhal is completely open source. So you can [http://arianne.sourceforge.net/download/stendhal-src.tar.gz download the source code] and have a look. If you plan to modify it and contribute to the project, we suggest that you use the Eclipse IDE and checkout the latest development state from our version control system.&lt;br /&gt;
&lt;br /&gt;
There are good [[Configure a development environment (IDE)|tutorials]] to get you started with Eclipse.&lt;br /&gt;
&lt;br /&gt;
== Finding your way around the Code ==&lt;br /&gt;
&lt;br /&gt;
The next step is to find your way around the code. The Stendhal code base is roughly divided into the server, client and a little code that is used by both:&lt;br /&gt;
&lt;br /&gt;
* [[Finding your way around the Stendhal Server Code]]&lt;br /&gt;
* [[Finding your way around the Stendhal Client Code]]&lt;br /&gt;
* [[Finding your way around the Stendhal Web Client Code]] (early development)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Coding Standards ==&lt;br /&gt;
&lt;br /&gt;
We try to follow [http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html SUN Java code convention], in order to create code that feels familiar to many developers.&lt;br /&gt;
&lt;br /&gt;
Despite this:&lt;br /&gt;
&lt;br /&gt;
* We use tab for all indentation. (One tab is equivalent to 4 spaces for display purpose.)&lt;br /&gt;
* We do not stick too closely to line length.&lt;br /&gt;
&lt;br /&gt;
* We always use blocks in if-statements and loops, even if the block only consists of one single statement:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 if (condition) {&lt;br /&gt;
     method();&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Avoid evaluation and assignment in the same line like:&lt;br /&gt;
&lt;br /&gt;
* ternary operators, for example in:&lt;br /&gt;
  &amp;lt;code&amp;gt;String y = x==null ? &amp;quot;NULL&amp;quot;: x.toString();&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* post-increment/decrement operators as in:&lt;br /&gt;
  if (idx++ == 10) {&lt;br /&gt;
    ...&lt;br /&gt;
  }&lt;/div&gt;</summary>
		<author><name>imported&gt;Test</name></author>
	</entry>
</feed>