Implementing logical puzzles for Stendhal

From Arianne
Revision as of 07:23, 20 January 2016 by imported>Hendrik Brummermann (Created page with "{{Stendhal code design}}{{Navigation for Stendhal Top|Developing}}__NOTOC__ This page describes a concept for implementing logical puzzles in Stendhal. {{Future Concept}} =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Stendhal code design


This page describes a concept for implementing logical puzzles in Stendhal.

This article describes a future concept. It may still have some open issues and it was not decided, yet, whether to implement it in this way.

Basic Objectives

  • It should be easy for content creators to define logical puzzles.
  • Puzzles should consists of basic building blocks (such as switches, doors)

Entities

Entities are basic building blocks that can be used by puzzle creators.

General properties

All entities have these general properties:

active
values: true, false
default: false
An entity may be activated. For example a player activate a pressure plate by stepping on it, which in turn activates (opens) a door.
enabled
values: true, false
default: true
An entity only reacts to input, if it is enabled. For example a switch will ignore all player actions, if it is disabled. A door will ignore the state of its associated switches, if it is disabled. Entities should indicate disabled state visibly and/or audibly.

Pressure plate

Wall switch

Door