|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.entity.Entity
Entity defines a core game element. An entity defines any object
within the game world. The Entity will contain all relevant
game information allowing for easy data reference and control.
| Constructor Summary | |
Entity(java.lang.String id)
Constructor creates a new Entity object. |
|
Entity(java.lang.String id,
java.util.Properties props)
Constructor creates a new Entity object. |
|
| Method Summary | |
java.lang.String |
getId()
getId returns this entity's id. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get a property of this entity. |
Spatial |
getSpatial()
getSpatial retrieves the spatial object of the entity. |
void |
setProperty(java.lang.String propertyName,
java.lang.Object property)
Binds a property name of the entity with it's property object. |
void |
setSpatial(Spatial spatial)
setSpatial sets the spatial object used to define the
entitie's graphical representation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Entity(java.lang.String id)
Entity object. During creation
a string id is used to denote a unique entity.
id - the entity id.
public Entity(java.lang.String id,
java.util.Properties props)
Entity object. During creation
a string id is used to denote a unique entity, with predefined properties.
id - the entity id.props - the entity properties.| Method Detail |
public void setSpatial(Spatial spatial)
setSpatial sets the spatial object used to define the
entitie's graphical representation.
spatial - the spatial object used to describe the geometry of the
entity.public Spatial getSpatial()
getSpatial retrieves the spatial object of the entity.
public java.lang.String getId()
getId returns this entity's id.
public java.lang.Object getProperty(java.lang.String propertyName)
propertyName - the property name to retrieve.
public void setProperty(java.lang.String propertyName,
java.lang.Object property)
propertyName - the property name.property - the propery to bind with the name.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||