|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of State in cs4099 |
---|
Methods in cs4099 that return State | |
---|---|
State |
State.copy()
Create an exact copy of this state, with duplicates of all piles and cards. |
State |
StateStack.get()
Removes the first state from the stack |
State |
State.getSortedState()
Returns a new state with piles in order of properties, based on this state. |
State |
Interpreter.setupGame(java.lang.String filename)
A large method to go through the entire process of reading the properties of the XML file (game, piles, fixed cards and tactics) and storing them in a State ready for use by the program. |
Methods in cs4099 with parameters of type State | |
---|---|
void |
StateStack.add(State state)
Adds a state to the stack |
void |
Desktop.drawPiles(State state)
Draws the piles of the given state in plain form. |
void |
Desktop.drawPilesWithCards(State state)
Draws a state using images that resemble cards. |
boolean |
State.equals(State newstate)
Method to test the state against another to check for duplicates. |
void |
StateWriter.writeState(State state)
Writes a state to the file "./dump.xml" in the expected XML format, so that it can be restored by using the Open command. |
Constructors in cs4099 with parameters of type State | |
---|---|
Desktop(State rootstate,
boolean cardview)
Constructs a new Desktop. |
|
Game(State rootstate,
java.lang.String xmlname)
Constructor for creating a new Game window. |
|
Solver(State rootstate,
int depthlimit)
Initializes a new Solver. |
|
State(State parent)
Creates a new State |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |