components
Class LeftFlipper

java.lang.Object
  extended by java.awt.event.KeyAdapter
      extended by components.GameObject
          extended by components.Flipper
              extended by components.LeftFlipper
All Implemented Interfaces:
ActionListener, KeyListener, EventListener

public class LeftFlipper
extends Flipper

A LeftFlipper extends Flipper, and flips in the left direction.

A LeftFlipper has no unique properties that its parent does not have. The only stipulation is that it has a negative Z_HAT Orientation Vector, as opposed to the positive Z_HAT Orientation Vector found in a RightFlipper.


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
LeftFlipper(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()
          for flippers, diff depends on orientation
 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

LeftFlipper

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

getDiff

public Vect3 getDiff()
for flippers, diff depends on orientation

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