|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oo.Mattress3
public class Mattress3
A mattress and its orientations; state implemented as a single object of an inner class.
Constructor Summary | |
---|---|
Mattress3()
Constructs a mattress with red-end at top, blue-end at left, and green-surface at top. |
Method Summary | |
---|---|
boolean |
headRed()
True iff the red end is at the top. |
boolean |
leftBlue()
True iff the blue side is at the left. |
Orientation |
orientation()
The mattress's orientation. |
PRYable |
pitch()
Pitches the thing a half-turn (180 degrees). |
PRYable |
roll()
Rolls the thing a half-turn (180 degrees). |
boolean |
topGreen()
True iff the green surface is on the top. |
java.lang.String |
toString()
A string representing the orientation, matching [HF][LR][TB]. The string contains H if headRed() and F otherwise; L if leftBlue() and R otherwise; and T if topGreen() and B otherwise. |
PRYable |
yaw()
Yaws the thing a half-turn (180 degrees). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Mattress3()
Method Detail |
---|
public java.lang.String toString()
HasHLT
toString
in interface HasHLT
toString
in class java.lang.Object
public boolean headRed()
HasHLT
headRed
in interface HasHLT
public boolean leftBlue()
HasHLT
leftBlue
in interface HasHLT
public boolean topGreen()
HasHLT
topGreen
in interface HasHLT
public Orientation orientation()
public PRYable pitch()
PRYable
pitch
in interface PRYable
public PRYable roll()
PRYable
roll
in interface PRYable
public PRYable yaw()
PRYable
yaw
in interface PRYable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |