Groovy Documentation

de.dewarim.goblin.item
[Groovy] Class ItemTypeFeature

java.lang.Object
  de.dewarim.goblin.item.ItemTypeFeature

class ItemTypeFeature

Mapping class between ItemType and Feature. The config field can help to parametrize the selected Feature class, so you can have a "Heal Player" feature, which is configured to heal 1 or 10 points, depending on the item type it is combined with.


Property Summary
static java.lang.Object belongsTo

java.lang.String config

Configuration parameters for the associated feature.

static java.lang.Object constraints

 
Constructor Summary
ItemTypeFeature()

ItemTypeFeature(ItemType itemType, Feature feature)

Constructor to create a correctly initialized ItemTypeFeature instance.

 
Method Summary
boolean equals(java.lang.Object o)

int hashCode()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

belongsTo

static java.lang.Object belongsTo


config

java.lang.String config
Configuration parameters for the associated feature. You should use XML.


constraints

static java.lang.Object constraints


 
Constructor Detail

ItemTypeFeature

ItemTypeFeature()


ItemTypeFeature

ItemTypeFeature(ItemType itemType, Feature feature)
Constructor to create a correctly initialized ItemTypeFeature instance.
Parameters:
itemType - the ItemType
feature - the Feature


 
Method Detail

equals

boolean equals(java.lang.Object o)


hashCode

int hashCode()


 

Groovy Documentation