O
oblivion
Hello!
I am writing simple client-server network game using RMI.
Client side has three classes:
- view: simple GUI
- model: engine, which invokes methods on server
- controller: connecting view with model
Client-server communication uses callback, so server
can invoke methods on client.
When server invokes model method it modify its
fields values. Controller and view don't know that
fields values has been changed.
My question is:
How to immediately notify controller or view about invoking
remote method on model? How to do it in MVC?
Is this possible to bind model's fields with view items?
Is there more suitable design pattern for such an application?
Thanks in advance,
Piotr Piwko
I am writing simple client-server network game using RMI.
Client side has three classes:
- view: simple GUI
- model: engine, which invokes methods on server
- controller: connecting view with model
Client-server communication uses callback, so server
can invoke methods on client.
When server invokes model method it modify its
fields values. Controller and view don't know that
fields values has been changed.
My question is:
How to immediately notify controller or view about invoking
remote method on model? How to do it in MVC?
Is this possible to bind model's fields with view items?
Is there more suitable design pattern for such an application?
Thanks in advance,
Piotr Piwko