Hi everyone,
I'm working on a AS3 game using PureMVC and got literally stuck on the middle of the road. Any help or advice is highly appreciated, maybe I'm completely on the wrong track...
On the model side I have a number of drivers and each driver has a list of cars he has created before. Drivers and cars can appear in different views at the same time.
I have separate VOs for cars and drivers and service delegates for server communication. When requesting a driver, I only know its unique ID. The service responds some attributes and a list of assigned car IDs. After parsing the data I request lightweight instances of the referenced cars based on their IDs.
At the moment, every driver VO is assigned to its own DriverProxy instance, car VOs are accessed via CarProxy instances respectively. I access those proxies via the unique driver and car IDs like this:
var proxy:CarProxy = facade.retrieveProxy(car.id) as CarProxy;
I'm stuck in the question of how to model the relationship between a driver and its cars:
I hope I explained the problem clearly enough, in my head things are getting quite mixed up.
Thanks for your advice, Cheers, Oliver