Menu

Commit [r1443]  Maximize  Restore  History

Trunk 1.1: new API reengineering

- fix missing backward compatibility fl_metal_7n model alias
- add group method sort():
- group:sort() without argument returns a new group sorted lexical by object
names
- group:sort("circular") returns a new group with objects sorted around their
geometrical center. This allows authors to simply add circular oxyd
shuffle rules like:
wo:shuffleOxyd({no["o#*"]:sort("circular"), circular = true})
Note:
- just Grid based objects like stones, items, floors are supported,
- no two objects should be at the same angle from the common center
- concave aligned objects can always be sorted circular
- in case of violations to these rules the resulting group may miss
objects

ral 2009-01-10

changed /trunk/data/models-2d.lua
changed /trunk/src/lua.cc
/trunk/data/models-2d.lua Diff Switch to side-by-side view
Loading...
/trunk/src/lua.cc Diff Switch to side-by-side view
Loading...