public class SpriteContent extends Content
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<java.lang.Integer> |
itypes
Indicates the int - types of the sprite (hierarchical identifiers).
|
java.lang.String |
referenceClass
Class of the element defined by this content.
|
java.util.ArrayList<java.lang.Integer> |
subtypes
All types under this type in the hierarchy, including itself.
|
identifier, is_definition, line, lineNumber, parameters
Constructor and Description |
---|
SpriteContent()
Default constructor.
|
SpriteContent(java.lang.String line)
Constructor that extracts the contents from a String line
|
SpriteContent(java.lang.String id,
java.lang.String refClass)
Simple constructor that receives and identifier and a reference class
|
Modifier and Type | Method and Description |
---|---|
void |
assignTypes(java.util.ArrayList<java.lang.String> types) |
void |
decorate(java.util.HashMap<java.lang.String,ParameterContent> pcs)
Takes a ParameterContent object to decorate the current Content object.
|
java.lang.String |
toString()
Returns the original line of the content.
|
public java.lang.String referenceClass
public java.util.ArrayList<java.lang.Integer> itypes
public java.util.ArrayList<java.lang.Integer> subtypes
public SpriteContent()
public SpriteContent(java.lang.String id, java.lang.String refClass)
id
- object identifier.refClass
- class this object is mapped to.public SpriteContent(java.lang.String line)
line
- String with the contents in VGDL format, to be mapped to the
data structures of this class.public void assignTypes(java.util.ArrayList<java.lang.String> types)
public java.lang.String toString()
public void decorate(java.util.HashMap<java.lang.String,ParameterContent> pcs)
Content