Class WordListStringObject

java.lang.Object
  extended by WordListStringObject

public class WordListStringObject
extends java.lang.Object

This class is basically a word. It represents a word that has already been used in a game. When a player uses a word, (@link WordRacerGameRoom) creates this class with the given word and adds it to an ArrayList. This list holds all the words that have been used already. This class is important because the stored list of words that (@link WordRacerGameRoom) creates must be an ArrayList because the size of the list is unknown and can vary. The ArrayList must be a list of Objects which is where this class comes in.

Author:
Adam Hanover ID: 105507204 email: sorcos@optonline.net CSE219

Constructor Summary
WordListStringObject(java.lang.String initWord)
          Constructor When a new (@link WordListStringObject) is created, it must set itself to the given word.
 
Method Summary
 java.lang.String getString()
          Accessor Used to get the word that this (@link WordRacerStringObject) represents.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordListStringObject

public WordListStringObject(java.lang.String initWord)
Constructor When a new (@link WordListStringObject) is created, it must set itself to the given word.

Parameters:
initWord - the given word that (@link WordListStringObject) will represent.
Method Detail

getString

public java.lang.String getString()
Accessor Used to get the word that this (@link WordRacerStringObject) represents.

Returns:
word the word(string) that this (@link WordRacerStringObject) represents.