Stendhal/Creature Organization: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hendrik Brummermann No edit summary |
imported>AntumDeluge |
||
| Line 1: | Line 1: | ||
== Goals == |
== Goals == |
||
* Use filename to determine creature class and tag for subclass: |
|||
... |
|||
Example: undead.xml |
|||
<pre> |
|||
<creatures> |
|||
<skeleton> |
|||
<creature name="skeleton"> |
|||
</creature> |
|||
<creature name="warrior skeleton"> |
|||
</creature> |
|||
</skeleton> |
|||
<zombie> |
|||
<creature name="zombie"> |
|||
</creature> |
|||
<creature name="rotten zombie"> |
|||
</creature> |
|||
</zombie> |
|||
</creatures> |
|||
</pre> |
|||
== Requirements == |
== Requirements == |
||
Revision as of 14:26, 4 May 2013
Goals
- Use filename to determine creature class and tag for subclass:
Example: undead.xml
<creatures>
<skeleton>
<creature name="skeleton">
</creature>
<creature name="warrior skeleton">
</creature>
</skeleton>
<zombie>
<creature name="zombie">
</creature>
<creature name="rotten zombie">
</creature>
</zombie>
</creatures>
Requirements
- Consistency
- Compatibility
Affected Aspects
- Server
- Creature xml definitions are organized by creature class
- Creature logic tileset is organized by creature class
- Client
- Sprite location depends on creature class
- Drawing size of the creature was derived from the creature class, there might still be code left which does that
- Website
Examples
Please see Stendhal/Creature Organization/Examples for examples of reorganisations.