components
Class RightFlipper

java.lang.Object
  extended by java.awt.event.KeyAdapter
      extended by components.GameObject
          extended by components.Flipper
              extended by 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.


Field Summary
 
Fields inherited from class components.GameObject
center, coRef, delay, depth, frozen, g, height, name, orientAngle, orientVect, selected, shape, targets, velocity, visible, width
 
Constructor Summary
RightFlipper(Map<String,String> props, GameSpace gs)
           
 
Method Summary
 void getBasicPropertyMap(Map<String,String> m)
          changes the map to represent the values of this GameObject required by the xml spec
 Vect3 getDiff()
          Difference between TLF and center.
 GameObjectClassification getGOClassification()
          Requires that all obejects return their own classification
 
Methods inherited from class components.Flipper
actionPerformed, defaults, getAngularVelocity, getOccupiedPositions, getOrientAngle, shape, stepFrame
 
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
 
Methods inherited from class java.awt.event.KeyAdapter
keyPressed, keyReleased, keyTyped
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RightFlipper

public RightFlipper(Map<String,String> props,
                    GameSpace gs)
Method Detail

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