de.rico.editor.datamodel
Class AbstractEntityData

java.lang.Object
  extended by de.rico.editor.datamodel.AbstractEntityData
Direct Known Subclasses:
CharacterData, ItemData, PropData

public abstract class AbstractEntityData
extends java.lang.Object

Data model class of an entity for use in the editor.

Author:
Frank Bruns

Constructor Summary
AbstractEntityData(MeshData mesh, java.lang.String name, java.lang.String scriptId)
           
 
Method Summary
 MeshData getMesh()
          Returns the mesh that is used for this entity.
 java.lang.String getName()
          Returns the entity's name.
 java.lang.String getScriptId()
          Returns the reference id for this entity which is used in a script file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEntityData

public AbstractEntityData(MeshData mesh,
                          java.lang.String name,
                          java.lang.String scriptId)
Method Detail

getName

public java.lang.String getName()
Returns the entity's name.

Returns:
name of the entity

getMesh

public MeshData getMesh()
Returns the mesh that is used for this entity.

Returns:
the mesh for the entity

getScriptId

public java.lang.String getScriptId()
Returns the reference id for this entity which is used in a script file.

Returns:
reference id in a script file
Throws:
java.lang.NullPointerException - Occurs when no id has been specified for the entity.