wyvern.lib.monsters
Class StealGoldAttack
java.lang.Object
wyvern.lib.monsters.DefaultCustomAttack
wyvern.lib.monsters.StealAttack
wyvern.lib.monsters.StealGoldAttack
- All Implemented Interfaces:
- Attack, CustomAttack
- public class StealGoldAttack
- extends StealAttack
A custom attack in which the monster tries to take some
of your money, then teleport away.
- Version:
- 1.0, May 20, 2002
- Author:
- Steve Yegge
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StealGoldAttack
public StealGoldAttack()
performDamage
public void performDamage(Commandable attacker,
GameObject defender,
CommandEvent event)
- Tells the attack to perform its special damage effect.
Called if the attack's to-hit was successful and the
attack wasn't vetoed.
- Parameters:
attacker
- the leprechaun or whoeverdefender
- the player being attackedevent
- the HitCommand event
stealCoins
public void stealCoins(GameObject coins,
java.lang.String type,
Inventory src,
Inventory dest)
- Steals some coins from the defender.
stealPurse
public void stealPurse(GameObject purse,
Inventory src,
Inventory dest)
- Steals a coin purse from the defender.