|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgizmoball.gameworld.triggers.MissionTrigger
public class MissionTrigger
A MissionTrigger runs an underlying trigger if activated and resets the activating trigger when done
activator
: ActivateMissionTrigger // the trigger activating this
activated
: boolean // true if this is on, false otherwise
trigger
: GroupTrigger // the underlying trigger
Constructor Summary | |
---|---|
MissionTrigger(ActivateMissionTrigger activator,
GroupTrigger trigger)
|
Method Summary | |
---|---|
void |
activate()
|
Trigger |
activateThisTrigger()
|
void |
deActivate()
|
java.util.List<Gizmo> |
getAssociatedGizmos()
The trigger list of this is the same as that of the underlying trigger |
double |
priority()
The priority of this trigger. |
void |
run(GameObject triggerObject,
GameObject otherObject,
GameObject triggerObjectCopy,
GameObject otherObjectCopy)
Runs this trigger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MissionTrigger(ActivateMissionTrigger activator, GroupTrigger trigger)
activator
- trigger
- Method Detail |
---|
public Trigger activateThisTrigger()
public void run(GameObject triggerObject, GameObject otherObject, GameObject triggerObjectCopy, GameObject otherObjectCopy)
Trigger
run
in interface Trigger
triggerObject
- the GameObject that is linked to this triggerotherObject
- the other GameObject that was involved in this eventtriggerObjectCopy
- a copy that should be modifiedotherObjectCopy
- a copy that should be modifiedpublic java.util.List<Gizmo> getAssociatedGizmos()
getAssociatedGizmos
in interface Trigger
public void activate()
public void deActivate()
public double priority()
Trigger
priority
in interface Trigger
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |