Marauroa Core API: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hendrik Brummermann |
imported>Blacklads Undo revision 11663 by Ufizavipupu (Talk) |
||
| (38 intermediate revisions by 3 users not shown) | |||
| Line 3: | Line 3: | ||
Marauroa exposes a very simplified and reduced API so you can easily develop your own games. A nightly build [http:// |
Marauroa exposes a very simplified and reduced API so you can easily develop your own games. A nightly build [http://stendhalgame.org/hudson/job/marauroa_HEAD/javadoc/ JavaDoc API Documentation] is available, too. |
||
== Content == |
== Content == |
||
[[Image:Classdiagram_marauroa.common.game_rp_stubs.png|thumb|Class Diagram of RP* classes]] |
|||
The main entities you should know about are: |
The main entities you should know about are: |
||
* Attributes |
* Attributes |
||
| Line 209: | Line 211: | ||
Now for the complex part. Where it all becomes a little nuts!: IRPZone and IRPRuleProcessor interfaces |
Now for the complex part. Where it all becomes a little nuts!: IRPZone and IRPRuleProcessor interfaces |
||
=RPWorld= |
==RPWorld== |
||
This class is just a container of zones. |
This class is just a container of zones. |
||
| Line 248: | Line 250: | ||
</source> |
</source> |
||
=IRPZone= |
==IRPZone== |
||
IRPZone is the interface that handles the world content and the perceptions. In most cases you should use the implementation MarauroaRPZone and extend it. |
IRPZone is the interface that handles the world content and the perceptions. In most cases you should use the implementation MarauroaRPZone and extend it. |
||
| Line 298: | Line 300: | ||
* buildMapObjectsList |
* buildMapObjectsList |
||
=IRPRuleProcessor= |
==IRPRuleProcessor== |
||
This class must be implemented fully, but it is a childs toy compared to IRPZone :). This is where you code all your games rules.<br> |
This class must be implemented fully, but it is a childs toy compared to IRPZone :). This is where you code all your games rules.<br> |
||
The API is as follows: |
The API is as follows: |
||
| Line 336: | Line 338: | ||
[[Category:Marauroa]] |
[[Category:Marauroa]] |
||
{{#breadcrumbs: [[Marauroa]] | [[Navigation for Marauroa Users|Using]] | [[Marauroa Core API|Core API]]}} |
|||