Gridarta Editor
net.sf.gridarta.model.autojoin.InsertionResult< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

The result of an insertion operation involving autojoining. More...

+ Collaboration diagram for net.sf.gridarta.model.autojoin.InsertionResult< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

getArchetype ()
 Returns the Archetype that should be inserted. More...
 
getGameObject ()
 Returns the GameObject that has been modified. More...
 
 InsertionResult (@Nullable final G gameObject, @Nullable final R archetype)
 Creates a new instance. More...
 

Private Attributes

final R archetype
 The Archetype that should be inserted. More...
 
final G gameObject
 The GameObject that has been modified. More...
 

Detailed Description

The result of an insertion operation involving autojoining.

The result can be one of:

  1. a new archetype should be inserted
  2. an existing game object has been modified
  3. the operation failed; nothing has been modified or should be inserted
Author
Andreas Kirschbaum

Definition at line 37 of file InsertionResult.java.

Constructor & Destructor Documentation

◆ InsertionResult()

net.sf.gridarta.model.autojoin.InsertionResult< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.InsertionResult ( @Nullable final G  gameObject,
@Nullable final R  archetype 
)

Creates a new instance.

Parameters
gameObjectthe game object that has been modified or
null
if no game object has been modified
archetypethe archetype that should be inserted or
null
if no archetype should be inserted

Definition at line 60 of file InsertionResult.java.

References net.sf.gridarta.model.autojoin.InsertionResult< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archetype, and net.sf.gridarta.model.autojoin.InsertionResult< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.gameObject.

Member Function Documentation

◆ getArchetype()

◆ getGameObject()

G net.sf.gridarta.model.autojoin.InsertionResult< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getGameObject ( )

Returns the GameObject that has been modified.

Returns
the game object that has been modified or
null
if no game object has been modified

Definition at line 75 of file InsertionResult.java.

References net.sf.gridarta.model.autojoin.InsertionResult< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.gameObject.

Referenced by net.sf.gridarta.model.mapmodel.DefaultMapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.insertBaseObject().

+ Here is the caller graph for this function:

Member Data Documentation

◆ archetype

◆ gameObject


The documentation for this class was generated from the following file: