edu.ou.pacman.template
Class TemplateUploader

java.lang.Object
  extended by edu.ou.pacman.template.TemplateUploader

public final class TemplateUploader
extends java.lang.Object

Class used to create gameBoards from txt file templates. Keeps track of the aspects of the layout for use in the gameBoard.

Author:
Derek Rushing

Constructor Summary
TemplateUploader(java.lang.String template)
           
 
Method Summary
 boolean[][] blockedDownLocations()
           
 boolean[][] blockedLeftLocations()
           
 boolean[][] blockedRightLocations()
           
 boolean[][] blockedUpLocations()
           
 java.util.ArrayList<Location2D> blueLocations()
           
 int boardHeight()
           
 int boardWidth()
           
 boolean[][] bonusItemLocations()
           
 Location2D goalState()
           
 java.util.ArrayList<Location2D> orangeLocations()
           
 java.util.ArrayList<Location2D> pacmanLocations()
           
 boolean[][] pelletLocations()
           
 java.util.ArrayList<Location2D> pinkLocations()
           
 java.util.ArrayList<Location2D> redLocations()
           
 boolean[][] upgradeLocations()
           
 boolean[] xThroughways()
           
 boolean[] yThroughways()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateUploader

public TemplateUploader(java.lang.String template)
Method Detail

blockedDownLocations

public boolean[][] blockedDownLocations()

blockedLeftLocations

public boolean[][] blockedLeftLocations()

blockedRightLocations

public boolean[][] blockedRightLocations()

blockedUpLocations

public boolean[][] blockedUpLocations()

boardHeight

public int boardHeight()

boardWidth

public int boardWidth()

bonusItemLocations

public boolean[][] bonusItemLocations()

blueLocations

public java.util.ArrayList<Location2D> blueLocations()

goalState

public Location2D goalState()

orangeLocations

public java.util.ArrayList<Location2D> orangeLocations()

pinkLocations

public java.util.ArrayList<Location2D> pinkLocations()

redLocations

public java.util.ArrayList<Location2D> redLocations()

pacmanLocations

public java.util.ArrayList<Location2D> pacmanLocations()

pelletLocations

public boolean[][] pelletLocations()

upgradeLocations

public boolean[][] upgradeLocations()

xThroughways

public boolean[] xThroughways()

yThroughways

public boolean[] yThroughways()