org.vizzini.ui.game.boardgame
Class GridBoardUISupport

java.lang.Object
  extended by org.vizzini.ui.game.boardgame.GridBoardUISupport

public abstract class GridBoardUISupport
extends Object

Provides support methods for grid board environment user interfaces in the game framework.

Since:
v0.1
Version:
v0.2
Author:
Jeffrey M. Thompson

Constructor Summary
GridBoardUISupport()
           
 
Method Summary
static int getFileIndex(String name)
          Return the index of the given file name.
static String getFileName(int index)
          Return the file name for the given index.
protected static List getFileNames()
          Return the file names.
static int getLevelIndex(String name)
          Return the index of the given level name.
static String getLevelName(int index)
          Return the level name for the given index.
protected static List getLevelNames()
          Return the level names.
protected static List getNameList(String baseString)
          Return the name list for the given base string.
static int getRankIndex(String name)
          Return the index of the given rank name.
static String getRankName(int index)
          Return the rank name for the given index.
static List getRankNames()
          Return the rank names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridBoardUISupport

public GridBoardUISupport()
Method Detail

getFileIndex

public static int getFileIndex(String name)
Return the index of the given file name.

Parameters:
name - File name.
Since:
v0.1

getFileName

public static String getFileName(int index)
Return the file name for the given index.

Parameters:
index - File index.
Since:
v0.1

getLevelIndex

public static int getLevelIndex(String name)
Return the index of the given level name.

Parameters:
name - Level name.
Since:
v0.1

getLevelName

public static String getLevelName(int index)
Return the level name for the given index.

Parameters:
index - Level index.
Since:
v0.1

getRankIndex

public static int getRankIndex(String name)
Return the index of the given rank name.

Parameters:
name - Rank name.
Since:
v0.1

getRankName

public static String getRankName(int index)
Return the rank name for the given index.

Parameters:
index - Rank index.
Since:
v0.1

getRankNames

public static List getRankNames()
Return the rank names.

Since:
v0.1

getFileNames

protected static List getFileNames()
Return the file names.

Since:
v0.1

getLevelNames

protected static List getLevelNames()
Return the level names.

Since:
v0.1

getNameList

protected static List getNameList(String baseString)
Return the name list for the given base string.

Parameters:
baseString - Base string.
Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02