|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcore.Piece
rules.NoneSquare
public abstract class NoneSquare
A powerup or empty
| Field Summary |
|---|
| Fields inherited from class core.Piece |
|---|
color |
| Constructor Summary | |
|---|---|
NoneSquare()
Constructs a new Empty instance |
|
| Method Summary | |
|---|---|
Collection<Move> |
moveCandidates(GameState g,
Position here)
Empty instances cannot move |
boolean |
threatens(GameState g,
Position from,
Position to)
Empty instances cannot threaten |
| Methods inherited from class core.Piece |
|---|
getColor, getLastMove, getName, hashCode, pieceString, postMove, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NoneSquare()
| Method Detail |
|---|
public Collection<Move> moveCandidates(GameState g,
Position here)
moveCandidates in class Piece
public boolean threatens(GameState g,
Position from,
Position to)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||