Gridarta Editor
net.sf.gridarta.model.smoothface.SmoothFaces Class Reference

Collection of all smoothing information. More...

+ Inheritance diagram for net.sf.gridarta.model.smoothface.SmoothFaces:
+ Collaboration diagram for net.sf.gridarta.model.smoothface.SmoothFaces:

Public Member Functions

void add (@NotNull final SmoothFace smoothFace) throws DuplicateSmoothFaceException
 Adds a SmoothFace instance. More...
 
FaceObject getSmoothFace (@NotNull final GameObject<?, ?, ?> gameObject)
 Returns the smooth faces for a GameObject. More...
 
Iterator< Map.Entry< String, SmoothFace > > iterator ()
 
 SmoothFaces (@NotNull final FaceObjects faceObjects)
 Creates a new instance. More...
 

Private Attributes

final FaceObjects faceObjects
 The FaceObjects for looking up faces. More...
 
final Map< String, SmoothFacesmoothFaces = new TreeMap<>()
 The defined SmoothFaces. More...
 

Detailed Description

Collection of all smoothing information.

Author
Andreas Kirschbaum

Definition at line 36 of file SmoothFaces.java.

Constructor & Destructor Documentation

◆ SmoothFaces()

net.sf.gridarta.model.smoothface.SmoothFaces.SmoothFaces ( @NotNull final FaceObjects  faceObjects)

Creates a new instance.

Parameters
faceObjectsthe face objects for looking up faces

Definition at line 54 of file SmoothFaces.java.

References net.sf.gridarta.model.smoothface.SmoothFaces.faceObjects.

Member Function Documentation

◆ add()

void net.sf.gridarta.model.smoothface.SmoothFaces.add ( @NotNull final SmoothFace  smoothFace) throws DuplicateSmoothFaceException

Adds a SmoothFace instance.

Parameters
smoothFacethe smooth face instance
Exceptions
DuplicateSmoothFaceExceptionif the smooth face is not unique

Definition at line 63 of file SmoothFaces.java.

References net.sf.gridarta.model.smoothface.SmoothFace.getValue().

Referenced by net.sf.gridarta.var.crossfire.model.io.ArchetypeParser.processLine().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSmoothFace()

FaceObject net.sf.gridarta.model.smoothface.SmoothFaces.getSmoothFace ( @NotNull final GameObject<?, ?, ?>  gameObject)

Returns the smooth faces for a GameObject.

Parameters
gameObjectthe game object
Returns
the smooth face or
null
if the game object has no attached smooth face

Definition at line 83 of file SmoothFaces.java.

References net.sf.gridarta.model.data.NamedObjects< E extends NamedObject >.get(), net.sf.gridarta.model.face.FaceObject.getFaceName(), and net.sf.gridarta.model.smoothface.SmoothFace.getValue().

Referenced by net.sf.gridarta.var.crossfire.gui.map.renderer.SmoothingRenderer.paintSmooth().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ iterator()

Iterator<Map.Entry<String, SmoothFace> > net.sf.gridarta.model.smoothface.SmoothFaces.iterator ( )

Definition at line 100 of file SmoothFaces.java.

Member Data Documentation

◆ faceObjects

final FaceObjects net.sf.gridarta.model.smoothface.SmoothFaces.faceObjects
private

The FaceObjects for looking up faces.

Definition at line 48 of file SmoothFaces.java.

Referenced by net.sf.gridarta.model.smoothface.SmoothFaces.SmoothFaces().

◆ smoothFaces

final Map<String, SmoothFace> net.sf.gridarta.model.smoothface.SmoothFaces.smoothFaces = new TreeMap<>()
private

The defined SmoothFaces.

Definition at line 42 of file SmoothFaces.java.


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