Package net.sf.gridarta.model.autojoin
Class InsertionResult<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.autojoin.InsertionResult<G,A,R>
-
public class InsertionResult<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectThe result of an insertion operation involving autojoining. The result can be one of:- a new archetype should be inserted
- an existing game object has been modified
- the operation failed; nothing has been modified or should be inserted
-
-
Constructor Summary
Constructors Constructor Description InsertionResult()Creates an empty new instance.InsertionResult(G gameObject)Creates a new instance for a game object.InsertionResult(R archetype)Creates a new instance for an archetype.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RgetArchetype()Returns theArchetypethat should be inserted.GgetGameObject()Returns theGameObjectthat has been modified.
-
-
-
Constructor Detail
-
InsertionResult
public InsertionResult()
Creates an empty new instance.
-
InsertionResult
public InsertionResult(@NotNull G gameObject)Creates a new instance for a game object.- Parameters:
gameObject- the game object that has been modified
-
InsertionResult
public InsertionResult(@NotNull R archetype)Creates a new instance for an archetype.- Parameters:
archetype- the archetype that should be inserted ornullif no archetype should be inserted
-
-
Method Detail
-
getGameObject
@Nullable public G getGameObject()
Returns theGameObjectthat has been modified.- Returns:
- the game object that has been modified or
nullif no game object has been modified
-
-