 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.smoothface;
22 import java.util.Collections;
23 import java.util.Iterator;
25 import java.util.Map.Entry;
26 import java.util.TreeMap;
30 import org.jetbrains.annotations.NotNull;
31 import org.jetbrains.annotations.Nullable;
37 public class SmoothFaces implements Iterable<Entry<String, SmoothFace>> {
43 private final Map<String, SmoothFace>
smoothFaces =
new TreeMap<>();
66 if (oldSmoothFace !=
null) {
67 if (oldSmoothFace.
getValue().equals(smoothFace.getValue())) {
86 if (faceName ==
null) {
87 faceName = gameObject.getArchetype().getFaceName();
89 if (faceName ==
null) {
98 public Iterator<Entry<String, SmoothFace>>
iterator() {
99 return Collections.unmodifiableMap(
smoothFaces).entrySet().iterator();
Smoothing information for one face name.
Base package of all Gridarta classes.
E get(@NotNull String objectName)
Gets a AbstractNamedObject.
final FaceObjects faceObjects
The FaceObjects for looking up faces.
Reflects a game object (object on a map).
Iterator< Entry< String, SmoothFace > > iterator()
GameObjects are the objects based on Archetypes found on maps.
void add(@NotNull final SmoothFace smoothFace)
Adds a SmoothFace instance.
Thrown to indicate that a SmoothFace instance is not unique.
FaceObjects is a container for FaceObjects.
String getValue()
Returns the smooth information.
SmoothFaces(@NotNull final FaceObjects faceObjects)
Creates a new instance.
Common interface for FaceObject.
final Map< String, SmoothFace > smoothFaces
The defined SmoothFaces.
Collection of all smoothing information.
The face is the appearance of an object.
String getFaceName()
Get the faceName, which is the name of the face as usable by the "face" attribute.
FaceObject getSmoothFace(@NotNull final GameObject<?, ?, ?> gameObject)
Returns the smooth faces for a GameObject.