Groovy Documentation

de.dewarim.goblin
[Groovy] Class Feature

java.lang.Object
  de.dewarim.goblin.Feature

class Feature

Features allow Items to have scripts associated with them which the user can execute by activating the item. For example, a healing potion will have a healing feature which upon execution adds one or more health points to a player character.
This class enables the creation of item types which A Feature object defines a reference to a script class which implements the ICombatScript interface. At the moment, items may be activated only during combat. An item with an associated Feature will have a link or button to click upon which is labeled with the I18n-ed name of the feature. Once the link is clicked, the script is executed and creates the desired effect (if appropriate in the current situation, for example, a drain life spell should not work on an undead monster).


Property Summary
static java.lang.Object hasMany

java.lang.String internalName

java.lang.String name

java.lang.Class script

 
Constructor Summary
Feature()

 
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

hasMany

static java.lang.Object hasMany


internalName

java.lang.String internalName


name

java.lang.String name


script

java.lang.Class script


 
Constructor Detail

Feature

Feature()


 
Method Detail

equals

boolean equals(java.lang.Object o)


hashCode

int hashCode()


 

Groovy Documentation