edu.ou.pacman.character
Class ImmutablePacmanCharacter
java.lang.Object
edu.ou.pacman.character.ImmutablePacmanCharacter
public final class ImmutablePacmanCharacter
- extends java.lang.Object
Class used to define a character for the pac-man gameboard.
- Author:
- Derek Rushing
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImmutablePacmanCharacter
public ImmutablePacmanCharacter(CharacterType characterType,
Location2D location)
ImmutablePacmanCharacter
public ImmutablePacmanCharacter(ImmutablePacmanCharacter c)
ImmutablePacmanCharacter
public ImmutablePacmanCharacter(PacmanCharacter c)
location
public Location2D location()
- Current location of the character.
type
public CharacterType type()
- The character type for the given character.