edu.ou.pacman.character
Class ImmutablePacmanCharacter

java.lang.Object
  extended by 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

Constructor Summary
ImmutablePacmanCharacter(CharacterType characterType, Location2D location)
           
ImmutablePacmanCharacter(ImmutablePacmanCharacter c)
           
ImmutablePacmanCharacter(PacmanCharacter c)
           
 
Method Summary
 Location2D location()
          Current location of the character.
 CharacterType type()
          The character type for the given character.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutablePacmanCharacter

public ImmutablePacmanCharacter(CharacterType characterType,
                                Location2D location)

ImmutablePacmanCharacter

public ImmutablePacmanCharacter(ImmutablePacmanCharacter c)

ImmutablePacmanCharacter

public ImmutablePacmanCharacter(PacmanCharacter c)
Method Detail

location

public Location2D location()
Current location of the character.


type

public CharacterType type()
The character type for the given character.