Package characters.heroes
Class Thief
java.lang.Object
characters.DungeonCharacter
characters.heroes.Hero
characters.heroes.Thief
- All Implemented Interfaces:
java.lang.Comparable<java.lang.Object>
public class Thief extends Hero
Thief character.
-
Field Summary
Fields inherited from class characters.heroes.Hero
chanceToBlock, numTurns
Fields inherited from class characters.DungeonCharacter
attackSpeed, chanceToHit, damageMax, damageMin, hitPoints, name, randomInt
-
Constructor Summary
Constructors Constructor Description Thief()
Constructor. -
Method Summary
Modifier and Type Method Description void
battleChoices(DungeonCharacter opponent)
Provides the user with possible actions to perform during their turn.void
surpriseAttack(DungeonCharacter opponent)
Special move.Methods inherited from class characters.heroes.Hero
numOfTurns, readName, subtractHitPoints
Methods inherited from class characters.DungeonCharacter
addHitPoints, attack, compareTo, getAttackSpeed, getHitPoints, getName, isAlive
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Thief
public Thief()Constructor.
-
-
Method Details
-
surpriseAttack
Special move.- Parameters:
opponent
- The opponent to attack.
-
battleChoices
Provides the user with possible actions to perform during their turn.- Specified by:
battleChoices
in classDungeonCharacter
- Parameters:
opponent
- The opponent to attack.
-