|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgizmoball.gameworld.GameObject
gizmoball.gameworld.Gizmo
gizmoball.gameworld.gameobjects.ToggleGizmo
public class ToggleGizmo
A ToggleGizmo adds two internal states to an underlying Gizmo.
gizmo
: Gizmo // the underlying gizmo
state
: boolean // either on or off
Field Summary |
---|
Fields inherited from class gizmoball.gameworld.Gizmo |
---|
orientation, totalTranslation |
Constructor Summary | |
---|---|
ToggleGizmo(Gizmo gizmo)
|
Method Summary | |
---|---|
void |
doActivate()
Immediately "activates" this gizmo. |
void |
doUpdate(double dt)
The effect of update is the same as that of the underlying Gizmo |
Vect3Pair |
getBoundingBox()
A ToggleGizmo has the same bounding box as its underlying gizmo |
GraphicsProperties |
getGraphicsProperties()
Returns an object that holds the information necessary for drawing this object. |
PhysicsModel |
getPhysicsModel()
Returns the physical model of this gizmo. |
boolean |
getState()
|
java.lang.String |
getXMLString(java.lang.String name)
returns the XML string that would be used to save this game object |
void |
setState(boolean state)
|
void |
toggle()
|
Methods inherited from class gizmoball.gameworld.Gizmo |
---|
activate, copy, getCoeffReflectionString, getColorString, getCommonAttributesString, getDefaultTriggers, getOrientationDoubleString, getOrientationString, getReflectionCoeff, getTextureString, getTranslationString, getXMLDelay, getXMLDelayString, rotateAboutAxis, setCoefficientOfReflection, setCommonAttributes, setDelay, translateBy, update |
Methods inherited from class gizmoball.gameworld.GameObject |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ToggleGizmo(Gizmo gizmo)
Method Detail |
---|
public void doActivate()
Gizmo
doActivate
in class Gizmo
public void toggle()
public boolean getState()
public void setState(boolean state)
public PhysicsModel getPhysicsModel()
Gizmo
getPhysicsModel
in class Gizmo
public GraphicsProperties getGraphicsProperties()
GameObject
getGraphicsProperties
in class GameObject
public void doUpdate(double dt)
doUpdate
in class Gizmo
public java.lang.String getXMLString(java.lang.String name)
GameObject
getXMLString
in class GameObject
public Vect3Pair getBoundingBox()
getBoundingBox
in class Gizmo
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |