|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunc.cdva.utils.TaggedObject
unc.cdva.interactiveitems.InteractiveItem
unc.cdva.interactiveitems.Reticle
public class Reticle
Reticle object, merely stores the state of the object. The id of a reticle should be set to that of a problem! Reticle objects turn out to be a placeholder and glue between the time a user clicks, enter their answer, and fires. Every reticle is associated with exactly one problem.
Field Summary |
---|
Fields inherited from class unc.cdva.interactiveitems.InteractiveItem |
---|
direction, position, scaling |
Constructor Summary | |
---|---|
Reticle()
Initializes a reticle object, the position of the reticle needs to be set, as it is is initialized to a default value. |
Method Summary | |
---|---|
void |
advanceInTime(long delta)
Advances the reticle in time, essentially the reticles are all frozen after a shot, advancing the reticle in time will get it closer to being unfrozen. |
boolean |
isWaitingForFire()
|
boolean |
isWaitingForGun()
|
boolean |
isWaitingForValue()
|
void |
revertState()
Used to revert the state of the reticle (typically used when the gun is finished reloading) |
void |
waitForFire()
Puts the reticle in teh 'wait for fire' state. |
void |
waitForGun(long reloadTime)
'P |
void |
waitForValue()
Puts the reticle into the 'wait for value' state. |
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 Reticle()
Method Detail |
---|
public void advanceInTime(long delta)
public void revertState()
public void waitForValue()
public void waitForFire()
public void waitForGun(long reloadTime)
reloadTime
- public boolean isWaitingForValue()
public boolean isWaitingForFire()
public boolean isWaitingForGun()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |