jingyuyao / tactical-adventure

A turn based strategy game inspired by Fire Emblem and Advance Wars
MIT License
1 stars 0 forks source link

Action tracking #178

Closed jingyuyao closed 7 years ago

jingyuyao commented 7 years ago

We can generalize the actions that affects the game in a more formal way. Currently, the state and model objects invokes functions that changes the world. The result of these functions are not documented. There is no way to easily track and see what happened.

Proposal: Create a system where all the actions that affects the world happen in one place, in sequence and logged. World, WorldState and model classes should produce action that can be executed by the action system. The script can also generate actions. Script should be run on client for single player and on server for multi-player.

Result:

Requirements:

Problems:

jingyuyao commented 7 years ago

Blocked by #179

jingyuyao commented 7 years ago

Running action should also trigger save event

jingyuyao commented 7 years ago

As I have recently learned, we should not do any issue that is not part of a usable feature. This issue does not add anything for the user and this should not be completed. Our game probably will never have multiplayer so this is really is over engineering.