jmmk / clash-attack-sim

https://jmmk.github.io/clash-attack-sim/
Other
3 stars 1 forks source link

Instead of changing the "state" of a component, add and remove components instead #8

Closed jmmk closed 9 years ago

jmmk commented 9 years ago

moving vs attacking would be a component and instead of the system checking the state of a component, it would only check for the presence of a component. The technique is outlined here: http://www.richardlord.net/blog/finite-state-machines-with-ash#more-1064