Menu

Commit [r1430]  Maximize  Restore  History

Trunk 1.1: new API reengineering

- fix drop item
- crack item reengineering:
- renamed to it_crack_i, it_crack_s, it_crack_m, it_crack_l
- state attribute with values INVISIBLE, SMALL, MEDIUM, LARGE
- attribute "fragility" as probability to crack, floor attribute "fragility"
as default, global attribute "Fragility" as backup which defaults itself
to 0.5
- message "crack" and and actor entering do crack with the given probability
in case the floor is destructable (water, abyss are not)
- message "toggle" cracks unconditional
- attribute "spreading" with default of global attribute "CrackSpreading"
(0.5) as probability that an actor entering a crack will cause direct
neighboring floors to start cracking with an it_crack_i, too.
- spreaded cracks do inherit fragility and spreading attributes

ral 2009-01-05

changed /trunk/data/api1init.lua
changed /trunk/data/api2init.lua
changed /trunk/data/models-2d.lua
changed /trunk/data/schemas/objects.xml
changed /trunk/src/Makefile.am
changed /trunk/src/WorldProxy.cc
changed /trunk/src/items.cc
changed /trunk/src/items.hh
added /trunk/src/items/Crack.cc
added /trunk/src/items/Crack.hh
changed /trunk/src/ox_extra.cc
changed /trunk/src/ox_magnum.cc
changed /trunk/src/ox_oxyd1.cc
changed /trunk/src/ox_peroxyd.cc
changed /trunk/src/server.cc
changed /trunk/src/server.hh
changed /trunk/src/world.cc
/trunk/data/api1init.lua Diff Switch to side-by-side view
Loading...
/trunk/data/api2init.lua Diff Switch to side-by-side view
Loading...
/trunk/data/models-2d.lua Diff Switch to side-by-side view
Loading...
/trunk/data/schemas/objects.xml Diff Switch to side-by-side view
Loading...
/trunk/src/Makefile.am Diff Switch to side-by-side view
Loading...
/trunk/src/WorldProxy.cc Diff Switch to side-by-side view
Loading...
/trunk/src/items.cc Diff Switch to side-by-side view
Loading...
/trunk/src/items.hh Diff Switch to side-by-side view
Loading...
/trunk/src/items/Crack.cc Diff Switch to side-by-side view
Loading...
/trunk/src/items/Crack.hh Diff Switch to side-by-side view
Loading...
/trunk/src/ox_extra.cc Diff Switch to side-by-side view
Loading...
/trunk/src/ox_magnum.cc Diff Switch to side-by-side view
Loading...
/trunk/src/ox_oxyd1.cc Diff Switch to side-by-side view
Loading...
/trunk/src/ox_peroxyd.cc Diff Switch to side-by-side view
Loading...
/trunk/src/server.cc Diff Switch to side-by-side view
Loading...
/trunk/src/server.hh Diff Switch to side-by-side view
Loading...
/trunk/src/world.cc Diff Switch to side-by-side view
Loading...