Package net.sf.gridarta.model.autojoin
Class AutojoinLists<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.autojoin.AutojoinLists<G,A,R>
-
- All Implemented Interfaces:
java.io.Serializable
public class AutojoinLists<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements java.io.SerializableManages a mapping between archetypes toAutojoinLists.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AutojoinLists()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAutojoinList(@NotNull AutojoinList<G,A,R> autojoinList)Adds a new autojoin list.@Nullable AutojoinList<G,A,R>getAutojoinList(@NotNull Archetype<G,A,R> archetype)Returns anAutojoinListfor a given archetype.
-
-
-
Method Detail
-
addAutojoinList
public void addAutojoinList(@NotNull @NotNull AutojoinList<G,A,R> autojoinList) throws IllegalAutojoinListExceptionAdds a new autojoin list.- Parameters:
autojoinList- the autojoin list to add- Throws:
IllegalAutojoinListException- if the autojoin list cannot be added
-
getAutojoinList
@Nullable public @Nullable AutojoinList<G,A,R> getAutojoinList(@NotNull @NotNull Archetype<G,A,R> archetype)
Returns anAutojoinListfor a given archetype.- Parameters:
archetype- the archetype- Returns:
- the autojoin list or
nullif none is defined for the archetype
-
-