Implementing logical puzzles for Stendhal: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Hendrik Brummermann
No edit summary
imported>Storyteller
Adding different switch mechanisms.
Line 61: Line 61:
: required
: required
: The new value of the property of the target entity
: The new value of the property of the target entity

== Switch Mechanisms ==

=== Tap-On Switch ===
Tap-Switch, which is ''active'' when pushed continuously and ''inactive'' when released.

=== Toggle Switch ===
On/Off-Switch, which is ''active'' when pushed and stays ''active'' after releasing. Gets ''inactive'' when pushed again.

=== Linked-Toggle Switch ===
On/Off-Mechanism, works like a Toggle Switch, but has two seperated but linked switches which affects each other. One of the linked switches (the On-Switch) is ''inactive'', the other one (the Off-Switch) ''active'' by default. When switching the On-Switch to ''active'', the Off-Switch switches automatically to ''inactive''. Only the ''inactive'' switch can be pushed, pushing the ''active'' switch again has no effect.

=== Multi Switch ===
More-way-switch, is ''inactive'' in the default setting and can be pushed in different directions to change the ''output number''.

=== Incremental Switch ===
More-way-switch, is ''inactive'' in the default setting and increases the ''output number'' by 1, every time when pushed. After reaching the maximum ''output number'' it switches to ''inactive'' again.

=== Delay-On Switch ===
Time-delayed switch, delays the time before switching to ''active'' after pushing.

=== Delay-Off Switch ===
Time-delayed switch, switches immediately to ''active'' when pushed, but switches back to ''inactive'' after the delay.



== Backend implementation ==
== Backend implementation ==