That dynamic is a mix of roleplaying rules (levels, experience points, etc) with wait-or-pay rules (energy, building with clicks, paying to shortcut) and guided goals through a repetitive activity (digging, questing, item assemblage).
FORBES: EA Sues Zynga, But Deeper Social Issues Threaten