I try to create a Application based on PureMVC.
The Application is a Simulation of the Football European Championship 2008.
The Application was developt a year ago and now i try to port it to as3.
It don't want to create a 1:1 copy of the as2 version, so i decided to
create it from scratch with a better architecture.
I have problems to create a good structure of the data that is involved. I have
data from an XML that describes the tournament with teams, rounds and the dependencies between these
rounds ( for example: the opponents of the first quarter final are the winner of group A and the second of group B).
My Data Chunks are matches, groups (that contains specific matches), KO-Rounds.
I decided to create VOs for all the chunks.
Now i have much Domain Logic that works with these chunks of data, for example calculating the group-table. The Matches in the KO-Rounds must be updated if the group tables change etc.
Should i create Proxies for every Match, every Group etc? One Problem is, that the Group Proxies must have access to the GroupMatch Proxies to calculate the group table. Should i give references of the MatchProxies to the Group Proxies?
Or would you prefer to keep the relations between these chunks of data outside of the puremvc world and generate the structure in an proxy. And this specific Proxy updates the data structure triggered by commands.
I have also a link to the current version, so you can get an overview http://em2008spielplan.bungartbessler.com/