components
Class SquareBumper
java.lang.Object
java.awt.event.KeyAdapter
components.GameObject
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.
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, 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 |
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
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