components
Class SquareBumper

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

public class SquareBumper
extends GameObject

a SquareBumper is a mutable object that represents a cube shaped bumper.


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
SquareBumper(Map<String,String> p, GameSpace g)
           
SquareBumper(Vect3 tlf, String name, GameSpace g)
           
SquareBumper(Vect3 tlf, Vect3 ov, Angle oa, String name, GameSpace g)
           
 
Method Summary
 void getBasicPropertyMap(Map<String,String> m)
          changes the map to represent the values of this GameObject required by the xml spec
 GameObjectClassification getGOClassification()
          Requires that all obejects return their own classification
 Set<Vect3> getOccupiedPositions()
           
protected  Shape shape()
          the Shape of the object
 
Methods inherited from class components.GameObject
action, actionPerformed, addTarget, clearTargets, defaults, equals, getBounds, getCenter, getCoRef, getDelay, getDepth, getDiff, getGameSpace, getHeight, getName, getNonRoundedTLF, getOrientAngle, 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, stepFrame, 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

SquareBumper

public SquareBumper(Vect3 tlf,
                    Vect3 ov,
                    Angle oa,
                    String name,
                    GameSpace g)
Effects:
creates a new SquareBumper

SquareBumper

public SquareBumper(Vect3 tlf,
                    String name,
                    GameSpace g)
Effects:
creates a new SquareBumper

SquareBumper

public SquareBumper(Map<String,String> p,
                    GameSpace g)
Effects:
creates a new SquareBumper
Method Detail

getGOClassification

public GameObjectClassification getGOClassification()
Description copied from class: GameObject
Requires that all obejects return their own classification

Specified by:
getGOClassification in class GameObject
Returns:
the GameObjectClassification of this object

shape

protected Shape shape()
Description copied from class: GameObject
the Shape of the object

Specified by:
shape in class GameObject

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

getOccupiedPositions

public Set<Vect3> getOccupiedPositions()
Specified by:
getOccupiedPositions in class GameObject
Returns:
the top left front corners of the grid locations occupied by the bumper, where the x grid positions go from 0-20, y from 0-20, and z from 0-10