RolePlayingDesign: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
Line 215: Line 215:


==RPZone==
==RPZone==
Objects must be stored somewhere, and we use Zones now to store them. A zone is just a container of Objects.
Objects must be stored somewhere, and we use Zones now to store them. A zone is just a container of Objects which has a name.

Each RPZone '''must''' have an unique name.


In order to improve the modifiability of the Marauroa platform we have made RPZone to be an interface so that if you want you can implement it as you think it is more efficient.
In order to improve the modifiability of the Marauroa platform we have made RPZone to be an interface so that if you want you can implement it as you think it is more efficient.


But on the usual case, if you think Delta<sup>2</sup> is fine and match your game style, you can use MarauroaRPZone that is our reference implementation of Delta<sup>2</sup> algorithm.
The actual Marauroa RP Zone consists of several data structures:

The actual Marauroa RPZone consists of several data structures:
* a HashMap of RPObject.ID to RPObject
* a HashMap of RPObject.ID to RPObject
* a List of RPObject
* a List of RPObject