Stendhal/Creature Organization: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>AntumDeluge |
imported>AntumDeluge |
||
| Line 7: | Line 7: | ||
<creatures> |
<creatures> |
||
<skeleton> |
<subclass value="skeleton"> |
||
<creature name="skeleton"> |
<creature name="skeleton"> |
||
| Line 14: | Line 14: | ||
<creature name="warrior skeleton"> |
<creature name="warrior skeleton"> |
||
</creature> |
</creature> |
||
| ⚫ | |||
</skeleton> |
|||
< |
</subclass> |
||
| ⚫ | |||
<subclass value="zombie"> |
|||
<creature name="zombie"> |
<creature name="zombie"> |
||
| Line 25: | Line 25: | ||
</creature> |
</creature> |
||
</ |
</subclass> |
||
</creatures> |
</creatures> |
||
Revision as of 15:10, 4 May 2013
Goals
- Organize creatures with class and sub-class. This can be done using the filename to determine creature class and a tag for subclass.
Example: undead.xml
<creatures>
<subclass value="skeleton">
<creature name="skeleton">
</creature>
<creature name="warrior skeleton">
</creature>
</subclass>
<subclass value="zombie">
<creature name="zombie">
</creature>
<creature name="rotten zombie">
</creature>
</subclass>
</creatures>
In the above example creatures skeleton & warrior skeleton would be of class undead and subclass skeleton while zombie & rotten zombie would be class undead and subclass zombie.
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.