Uses of Class
characters.DungeonCharacter
Package | Description |
---|---|
<Unnamed> | |
characters | |
characters.heroes | |
characters.monsters |
-
Uses of DungeonCharacter in <Unnamed>
Methods in <Unnamed> that return DungeonCharacter Modifier and Type Method Description static DungeonCharacter
Dungeon. chooseHero()
Allows the user to select a hero, creates that hero, and returns it.static DungeonCharacter
Dungeon. generateMonster()
Randomly selects a Monster and returns it.Methods in <Unnamed> with parameters of type DungeonCharacter Modifier and Type Method Description static void
Dungeon. battle(DungeonCharacter theHero, DungeonCharacter theMonster)
Perform the combat portion of the game. -
Uses of DungeonCharacter in characters
Methods in characters that return DungeonCharacter Modifier and Type Method Description DungeonCharacter
CharacterFactory. getCharacter(java.lang.String characterType)
Return a new instance of the specified character type.Methods in characters with parameters of type DungeonCharacter Modifier and Type Method Description void
DungeonCharacter. attack(DungeonCharacter opponent)
Allows characters to attempt an attack on an opponent.abstract void
DungeonCharacter. battleChoices(DungeonCharacter opponent)
Abstract of the battleChoices class, to be implemented by the Hero class. -
Uses of DungeonCharacter in characters.heroes
Subclasses of DungeonCharacter in characters.heroes Modifier and Type Class Description class
Hero
Abstract base class for a hierarchy of heroes.class
Sorceress
Sorceress character.class
Thief
Thief character.class
Warrior
Warrior character.Methods in characters.heroes with parameters of type DungeonCharacter Modifier and Type Method Description void
Sorceress. attack(DungeonCharacter opponent)
void
Warrior. attack(DungeonCharacter opponent)
void
Sorceress. battleChoices(DungeonCharacter opponent)
Provides the user with possible actions to perform during their turn.void
Thief. battleChoices(DungeonCharacter opponent)
Provides the user with possible actions to perform during their turn.void
Warrior. battleChoices(DungeonCharacter opponent)
Provides the user with possible actions to perform during their turn.void
Warrior. crushingBlow(DungeonCharacter opponent)
Special move.void
Hero. numOfTurns(DungeonCharacter opponent)
void
Thief. surpriseAttack(DungeonCharacter opponent)
Special move. -
Uses of DungeonCharacter in characters.monsters
Subclasses of DungeonCharacter in characters.monsters Modifier and Type Class Description class
Gremlin
Gremlin character.class
Monster
Abstract base class for a hierarchy of Monsters.class
Ogre
Ogre character.class
Skeleton
Skeleton character.Methods in characters.monsters with parameters of type DungeonCharacter Modifier and Type Method Description void
Gremlin. attack(DungeonCharacter opponent)
void
Ogre. attack(DungeonCharacter opponent)
void
Skeleton. attack(DungeonCharacter opponent)
void
Monster. battleChoices(DungeonCharacter theMonster)