|
|||||||||
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.BallShooter
gizmoball.gameworld.gameobjects.Absorber
gizmoball.gameworld.gameobjects.LimitedAbsorber
public class LimitedAbsorber
A LimitedAbsorber is an Absorber that runs only when a given counter is positive.
counter
: Counter // the counter controlling thisField Summary |
---|
Fields inherited from class gizmoball.gameworld.Gizmo |
---|
orientation, totalTranslation |
Constructor Summary | |
---|---|
LimitedAbsorber(Vect3 corner1,
Vect3 corner2,
Counter counter)
Creates a new LimitedAbsorber with the desired parameters |
|
LimitedAbsorber(Vect3 corner1,
Vect3 corner2,
Vect3 shootSpeed,
Counter counter)
Creates a new LimitedAbsorber with the desired parameters |
Method Summary | |
---|---|
void |
doActivate()
Activates only if counter is positive. |
Methods inherited from class gizmoball.gameworld.gameobjects.Absorber |
---|
getGraphicsProperties, getPhysicsModel, getXMLString |
Methods inherited from class gizmoball.gameworld.gameobjects.BallShooter |
---|
addBall, doUpdate, getBallPlacementDiff, getDefaultTriggers, getDelay, getFirstBallLocation, getShootSpeed, getShootTranslate, rotateAboutAxis, translateBy |
Methods inherited from class gizmoball.gameworld.Gizmo |
---|
activate, copy, getBoundingBox, getCoeffReflectionString, getColorString, getCommonAttributesString, getOrientationDoubleString, getOrientationString, getReflectionCoeff, getTextureString, getTranslationString, getXMLDelay, getXMLDelayString, setCoefficientOfReflection, setCommonAttributes, setDelay, 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 LimitedAbsorber(Vect3 corner1, Vect3 corner2, Vect3 shootSpeed, Counter counter)
corner1
- one of the corners of thiscorner2
- the opposite cornershootSpeed
- the velocity with which the ball is shotcounter
- the counter that controls thispublic LimitedAbsorber(Vect3 corner1, Vect3 corner2, Counter counter)
corner1
- one of the corners of thiscorner2
- the opposite cornercounter
- the counter that controls thisMethod Detail |
---|
public void doActivate()
doActivate
in class BallShooter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |