|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunc.cdva.utils.TaggedObject
unc.cdva.interactiveitems.InteractiveItem
unc.cdva.interactiveitems.PathwayEnd
public class PathwayEnd
Pathway end object keeps track of the state of the pathway end. The pathway end object is the object at the end of the pathway obviously (the dam).
Field Summary |
---|
Fields inherited from class unc.cdva.interactiveitems.InteractiveItem |
---|
direction, position, scaling |
Constructor Summary | |
---|---|
PathwayEnd()
constructor for a pathway end, it initializes the state of the pathway end. |
Method Summary | |
---|---|
void |
crack()
Sets the state of the dam to cracked (one hit) |
void |
destroy()
Sets the state of the dam to destroyed (a terminal state, game should end). |
void |
hitBySomething()
A method to indicate that the pathway end was hit by something, advances the state of the dam. |
boolean |
isCracked()
|
boolean |
isDestroyed()
|
boolean |
isLeaking()
|
boolean |
isOk()
|
void |
leak()
Sets the state of the dam to leaking (two hits, almost destroyed) |
void |
ok()
Sets the state of the pathway end. |
Methods inherited from class unc.cdva.interactiveitems.InteractiveItem |
---|
getDirection, getPdsBean, getPosition, getScaling, getState, setDirection, setPds, setPosition, setScaling, setState |
Methods inherited from class unc.cdva.utils.TaggedObject |
---|
createId, equals, getId, hashCode, setId, setId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathwayEnd()
Method Detail |
---|
public void hitBySomething()
public void ok()
public void crack()
public void leak()
public void destroy()
public boolean isOk()
public boolean isCracked()
public boolean isLeaking()
public boolean isDestroyed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |