public class ModelUpdater<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
DefaultListModel
instance to reflect the contents of a
MapSquare
instance.Constructor and Description |
---|
ModelUpdater(@NotNull javax.swing.DefaultListModel<G> model,
@NotNull MapViewSettings mapViewSettings)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
update(@Nullable GameObjectContainer<G,A,R> mapSquare,
G gameObject)
Updates the model to reflect a
MapSquare . |
public ModelUpdater(@NotNull @NotNull javax.swing.DefaultListModel<G> model, @NotNull @NotNull MapViewSettings mapViewSettings)
model
- the model to updatemapViewSettings
- the map view settings to use