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 ()
 Creates an empty new instance. More...
 
 InsertionResult (@NotNull final G gameObject)
 Creates a new instance for a game object. More...
 
 InsertionResult (@NotNull final R archetype)
 Creates a new instance for an archetype. 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 38 of file InsertionResult.java.

Constructor & Destructor Documentation

◆ InsertionResult() [1/3]

◆ InsertionResult() [2/3]

◆ InsertionResult() [3/3]

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

Member Function Documentation

◆ getArchetype()

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

Returns the Archetype that should be inserted.

Returns
the archetype that should be inserted or
null
if no archetype should be inserted

Definition at line 97 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.

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:

◆ 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 87 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: