public class InteractionContent extends Content
Modifier and Type | Field and Description |
---|---|
java.lang.String |
function
Name of the function/effect.
|
long |
hashCode
'Unique' hashcode for this effect
|
java.lang.String |
object1
First sprite of the interaction
|
java.lang.String[] |
object2
Array of sprites that the first sprite interacts with.
|
identifier, is_definition, line, lineNumber, parameters
Constructor and Description |
---|
InteractionContent()
Default constructor.
|
InteractionContent(java.lang.String line)
Constructor that extracts the contents from a String line
|
InteractionContent(java.lang.String id1,
java.lang.String id2List,
java.lang.String function)
Simple constructor that receives an identifier and a reference class
|
Modifier and Type | Method and Description |
---|---|
void |
decorate(java.util.HashMap<java.lang.String,ParameterContent> pcs)
Takes a ParameterContent object to decorate the current Content object.
|
public java.lang.String object1
public java.lang.String[] object2
public java.lang.String function
public long hashCode
public InteractionContent()
public InteractionContent(java.lang.String id1, java.lang.String id2List, java.lang.String function)
id1
- identifier of the first object in the interaction.id2List
- list of identifiers of the second part in the interaction.public InteractionContent(java.lang.String line)
line
- String with the contents in VGDL format, to be mapped to the
data structures of this class.public void decorate(java.util.HashMap<java.lang.String,ParameterContent> pcs)
Content