public class KeyFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static int |
count
The Key counter used for assigning the numerical portion of an ObjID
|
private static int |
INITIAL_ENERGY
The initial energy constant of a Key
|
private static int |
X
The initial x value constant of a Key
|
| Modifier | Constructor and Description |
|---|---|
private |
KeyFactory()
Restricts factory instantiation since all class data is static
|
| Modifier and Type | Method and Description |
|---|---|
static Key |
produce(java.lang.String button,
java.lang.String description,
java.util.Map<ObjID,NetPuzlObject> cache)
Produces a Key with a unique ID and the given parameters
|
private static int count
private static final int INITIAL_ENERGY
private static final int X
private KeyFactory()
public static Key produce(java.lang.String button, java.lang.String description, java.util.Map<ObjID,NetPuzlObject> cache)
button - The name (button) of the Keydescription - The text (description) of the Keycache - The Map to cache the Key in