Package characters
Class CharacterFactory
java.lang.Object
characters.CharacterFactory
public class CharacterFactory
extends java.lang.Object
In charge of instantiating a new character.
-
Constructor Summary
Constructors Constructor Description CharacterFactory()
-
Method Summary
Modifier and Type Method Description DungeonCharacter
getCharacter(java.lang.String characterType)
Return a new instance of the specified character type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CharacterFactory
public CharacterFactory()
-
-
Method Details
-
getCharacter
Return a new instance of the specified character type.- Parameters:
characterType
- The character to be played as.
-