Skip to content

Action system

Wilson Kazuo Mizutani requested to merge action-system into master

A step towards #27 (closed)

Actions are now structs which must first be prepared, then applied. This separates code that checks if preconditions are valid, from code that incurs in state changes. An invariant is present that assures instantiated actions are immediately appliable, since they can only be obtained from Action::prepare() methods. When prepared, actions carry all the information they need to perform themselves.

Merge request reports