Class ModelUpdater<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.panel.selectedsquare.ModelUpdater<G,A,R>
-
public class ModelUpdater<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectUpdates aDefaultListModelinstance to reflect the contents of aMapSquareinstance.
-
-
Constructor Summary
Constructors Constructor Description ModelUpdater(@NotNull javax.swing.DefaultListModel<G> model, @NotNull MapViewSettings mapViewSettings)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intupdate(@Nullable GameObjectContainer<G,A,R> mapSquare, G gameObject)Updates the model to reflect aMapSquare.
-
-
-
Constructor Detail
-
ModelUpdater
public ModelUpdater(@NotNull @NotNull javax.swing.DefaultListModel<G> model, @NotNull @NotNull MapViewSettings mapViewSettings)Creates a new instance.- Parameters:
model- the model to updatemapViewSettings- the map view settings to use
-
-