public class TetrisStack
extends java.lang.Object
Used to keep track of last tab panes seen that are enabled.
| Constructor and Description |
|---|
TetrisStack(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPuffable(int puff)
Add a puffable value.
|
boolean |
isEmpty()
Test whether stack is empty.
|
int |
pop()
Get last element in stack.
|
void |
push(int value)
Push new element on stack.
|
public void addPuffable(int puff)
puff - Integer value that is puffed or
overwritten if new value pushed uponpublic void push(int value)
value - Integer value of new elementpublic int pop()
java.lang.IndexOutOfBoundsException - if stack is emptypublic boolean isEmpty()