components
Class RightFlipper
java.lang.Object
java.awt.event.KeyAdapter
components.GameObject
components.Flipper
components.RightFlipper
- All Implemented Interfaces:
- ActionListener, KeyListener, EventListener
public class RightFlipper
- extends Flipper
A RightFlipper extends Flipper, and flips in the left direction.
A RightFlipper has no unique properties that its parent does not have. The only stipulation is that
it has a positive Z_HAT Orientation Vector, as opposed to the negative Z_HAT Orientation Vector found
in a LeftFlipper.
Fields inherited from class components.GameObject |
center, coRef, delay, depth, frozen, g, height, name, orientAngle, orientVect, selected, shape, targets, velocity, visible, width |
Methods inherited from class components.GameObject |
action, addTarget, clearTargets, equals, getBounds, getCenter, getCoRef, getDelay, getDepth, getGameSpace, getHeight, getName, getNonRoundedTLF, getOrientVector, getRoundedTLF, getShape, getTargets, getTLF, getVelocity, getWidth, hashCode, isFrozen, isSelected, isVisible, onCollision, putInVect3, putInVect3, removeTarget, setCenter, setCoRef, setDelay, setDepth, setFrozen, setHeight, setOrientAngle, setOrientVect, setProperty, setSelected, setTLF, setVelocity, setVisible, setWidth, toString |
RightFlipper
public RightFlipper(Map<String,String> props,
GameSpace gs)
getDiff
public Vect3 getDiff()
- Description copied from class:
GameObject
- Difference between TLF and center. ZERO for balls, so should be overridden
- Specified by:
getDiff
in class Flipper
- Returns:
- a Vect3 that points from TLF to center. by default this is the center by width, height, depth
getBasicPropertyMap
public void getBasicPropertyMap(Map<String,String> m)
- Description copied from class:
GameObject
- changes the map to represent the values of this GameObject required by the xml spec
- Overrides:
getBasicPropertyMap
in class GameObject
getGOClassification
public GameObjectClassification getGOClassification()
- Description copied from class:
GameObject
- Requires that all obejects return their own classification
- Overrides:
getGOClassification
in class Flipper
- Returns:
- the GameObjectClassification of this object