Groovy Documentation

de.dewarim.goblin
[Groovy] Class Creature

java.lang.Object
  de.dewarim.goblin.Creature

class Creature

Property Summary
static java.lang.Object constraints

Dice damage

java.lang.String description

java.lang.Long gold

static java.lang.Object hasMany

java.lang.Integer hp

Dice initiative

java.lang.Boolean male

java.lang.Integer maxHp

java.lang.String name

Dice parry

Dice strike

 
Constructor Summary
Creature()

 
Method Summary
java.lang.Integer addCreatureCombatAttributes(java.lang.Object resistanceAttributeMap, java.lang.Object dam)

CombatMessage attack(Creature opponent)

java.lang.Boolean canEquipItem(Item item)

Check if this creature can equip an item.

java.lang.Integer computeCombatSkill(java.lang.String prop, java.lang.Object creatureSkills)

java.lang.Integer computeDamage()

java.lang.Integer computeInitiative()

java.lang.Integer computeParry()

java.lang.Integer computeStrike()

boolean equals(java.lang.Object o)

java.lang.Boolean equipItem(Item item, java.lang.Boolean dryRun)

java.lang.Boolean equipItem(Item item)

java.util.Collection fetchCombatSkills(java.lang.String filterAttribute)

java.util.Collection fetchCombatSkills()

java.util.List fetchEquipment()

java.util.Map fetchItemCombatAttributeMap()

java.util.Collection fetchProductionSkills()

java.util.Map fetchResistanceAttributeMap(Creature opponent)

java.util.List getItems()

int hashCode()

void unequipItem(Item item)

 
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

constraints

static java.lang.Object constraints


damage

Dice damage


description

java.lang.String description


gold

java.lang.Long gold


hasMany

static java.lang.Object hasMany


hp

java.lang.Integer hp


initiative

Dice initiative


male

java.lang.Boolean male


maxHp

java.lang.Integer maxHp


name

java.lang.String name


parry

Dice parry


strike

Dice strike


 
Constructor Detail

Creature

Creature()


 
Method Detail

addCreatureCombatAttributes

java.lang.Integer addCreatureCombatAttributes(java.lang.Object resistanceAttributeMap, java.lang.Object dam)


attack

CombatMessage attack(Creature opponent)


canEquipItem

java.lang.Boolean canEquipItem(Item item)
Check if this creature can equip an item.
Parameters:
item
Returns:
true if the necessary conditions are met, false otherwise


computeCombatSkill

java.lang.Integer computeCombatSkill(java.lang.String prop, java.lang.Object creatureSkills)


computeDamage

java.lang.Integer computeDamage()


computeInitiative

java.lang.Integer computeInitiative()


computeParry

java.lang.Integer computeParry()


computeStrike

java.lang.Integer computeStrike()


equals

boolean equals(java.lang.Object o)


equipItem

java.lang.Boolean equipItem(Item item, java.lang.Boolean dryRun)


equipItem

java.lang.Boolean equipItem(Item item)


fetchCombatSkills

java.util.Collection fetchCombatSkills(java.lang.String filterAttribute)


fetchCombatSkills

java.util.Collection fetchCombatSkills()


fetchEquipment

java.util.List fetchEquipment()


fetchItemCombatAttributeMap

java.util.Map fetchItemCombatAttributeMap()


fetchProductionSkills

java.util.Collection fetchProductionSkills()


fetchResistanceAttributeMap

java.util.Map fetchResistanceAttributeMap(Creature opponent)


getItems

java.util.List getItems()


hashCode

int hashCode()


unequipItem

void unequipItem(Item item)


 

Groovy Documentation