Stendhal code design: Difference between revisions
Content deleted Content added
imported>Chad3f No edit summary |
imported>Chad3f |
||
Line 5:
=== Entities ===
Entity's are created using '''EntityFactory.createEntity()'''
The design is being transitioned to a Model-View-Controller (MVC) like framework. This will allow different visual implementations (like 2D, 3D) to be plugged in with minimal (or no) changes of the model class.
'''Example:'''
RPObject object = ...
Entity entity = EntityFactory.createEntity(object);
// Force the view to be created
entity.getView();
...
Line 15 ⟶ 22:
// Done with entity - free up resources
entity.release();
=== Sound System ===
| |||