A set of key/value pairs.
More...
A set of key/value pairs.
- Author
- Andreas Kirschbaum
Definition at line 28 of file Attributes.java.
◆ getAttributeDouble()
| double net.sf.gridarta.model.baseobject.Attributes.getAttributeDouble |
( |
@NotNull String |
attributeName | ) |
|
Returns an attribute value of this Archetype as double.
- Parameters
-
| attributeName | the name of the attribute value to return |
- Returns
- the attribute value or (zero) if not found
- See also
- #getAttributeString(String)
◆ getAttributeInt()
| int net.sf.gridarta.model.baseobject.Attributes.getAttributeInt |
( |
@NotNull String |
attributeName | ) |
|
Returns an attribute value of this Archetype as int.
- Parameters
-
| attributeName | the name of the attribute value to return |
- Returns
- the attribute value or (zero) if not found
- See also
- #getAttributeString(String)
◆ getAttributeLong()
| long net.sf.gridarta.model.baseobject.Attributes.getAttributeLong |
( |
@NotNull String |
attributeName | ) |
|
Returns an attribute value of this Archetype as long.
- Parameters
-
| attributeName | the name of the attribute value to return |
- Returns
- the attribute value or (zero) if not found
- See also
- #getAttributeString(String)
◆ getAttributeString()
| String net.sf.gridarta.model.baseobject.Attributes.getAttributeString |
( |
@NotNull String |
attributeName | ) |
|
Returns the requested attribute value of this GameObject as String.
The attribute value is first searched in this GameObject. If the attribute value is not found and this GameObject is not an Archetype itself, the attribute value is searched in this GameObject's Archetype as well.
- Parameters
-
| attributeName | the name of the attribute to search |
- Returns
- the attribute value or an empty String ("") if no such attribute
◆ hasAttribute()
| boolean net.sf.gridarta.model.baseobject.Attributes.hasAttribute |
( |
@NotNull String |
attributeName | ) |
|
Returns whether an attribute name exists.
- Parameters
-
| attributeName | the attribute name |
- Returns
- whether the attribute name exists
◆ removeAttribute()
| void net.sf.gridarta.model.baseobject.Attributes.removeAttribute |
( |
@NotNull String |
attributeName | ) |
|
◆ setAttributeInt()
| void net.sf.gridarta.model.baseobject.Attributes.setAttributeInt |
( |
@NotNull String |
attributeName, |
|
|
int |
value |
|
) |
| |
The documentation for this interface was generated from the following file:
- gridarta-gridarta/src/model/src/main/java/net/sf/gridarta/model/baseobject/Attributes.java